[OpenLayers-Users] Re: Duplicate labels display in ArcGIS Server REST map service when viewing through OpenLayers API

Andreas Hocevar ahocevar at opengeo.org
Tue Feb 21 05:16:52 EST 2012


Hi,

singleTile is an option, not a param of the layer. So you have to move
it from your params object literal to the options one.

Andreas.

On Tue, Feb 21, 2012 at 12:16 AM, crb <chris at windsorsolutions.com> wrote:
> Thanks Andreas.  Much appreciated, as always.
>
> I tried using 'singleTile: true' but it's still returning duplicate labels.
> Don't think it matters, but I'm using an ArcGIS93Rest OL layer w/ ArcGIS
> server v10.  My OL layer is configured thus:
>
> var ml = new OpenLayers.Layer.ArcGIS93Rest(
>                        name,
>                        url,
>                        {
>                            // params
>                            'layers': 'show:0',
>                            'singleTile': true,
>                            'srs': map.projection,  // EPSG:102113
>                            'transparent': true
>                        },
>                        {
>                            // options
>                            'alwaysInRange': true,
>                            'displayInLayerSwitcher': true,
>                            'isBaseLayer': false,
>                            'isSelectable': false,  // custom property
>                            'opacity': 0.5,
>                            'visibility': false
>                        }
>                    );
>
> The request that it is making to AGS has the SINGLETILE parameter in it:
>
> http://myAgsServer/ArcGIS/rest/services/myService/MapServer/export&LAYERS=show%3A0&*SINGLETILE=true*&SRS=EPSG%3A102113&TRANSPARENT=true&FORMAT=png&BBOX=-11603752.382735%2C4676723.1258%2C-11564616.624259%2C4715858.884277&SIZE=256%2C256&F=image&BBOXSR=102113&IMAGESR=102113
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Duplicate-labels-display-in-ArcGIS-Server-REST-map-service-when-viewing-through-OpenLayers-API-tp3910724p4489370.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list