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 <[email protected]> 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
