Thanks David and Bart for your suggestions. It is an interesting approach to tap the WMS capability of ArcGIS Server services for use in OpenLayers. I was looking for a way to hit the ArcGIS Service interface directly (for best performance). If I'm not mistaken, once you secure an ArcGIS Server service then OGC capabilities (WMS< WCS, and KML) are not accessible since ESRI's security is not part of the OGC spec. I wound up following Christopher Shmidt's xyz-esri.html example which covered my needs to work with tiled map services, and to pass in the token value. Thanks Chris!
function init(){ OpenLayers.Util.onImageLoadError = function() { this.style.display="none";} var layerExtent = new OpenLayers.Bounds(-8037508.34,-8037508.34,8037508.34,8037508.34) map = new OpenLayers.Map( 'map', {'Extent': layerExtent} ); layer = new OpenLayers.Layer.XYZ( "ESRI", "http://mygisserver/ArcGIS/rest/services/mygisservice/MapServer/tile/${z}/${ y}/${x}?token=0000mytoken0000..", {sphericalMercator: true} ); map.addLayer(layer); map.zoomToExtent(map.Extent); } -Dave Wright From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On Behalf Of David Wright Sent: Thursday, October 08, 2009 12:17 PM To: users@openlayers.org Subject: [OpenLayers-Users] Tokens for secure ArcGIS Server layers Hello users, Has anyone found a way to pass the token value associated with secured ESRI ArcGIS Server Dynamic Map service layer in OpenLayers 2.8? Its always passed in as a parameter "&token=mytokenvalue." var agsDaynamicLayer = new OpenLayers.Layer.AgsDynamic( "i3 Nightlights (Dynamic)", "http://myArcGISServer/ArcGIS/rest/services/myDynamicService/MapServer/Expor t?", { LAYERS: 'show:0', IMAGESR: '900913', BBOXSR: '4326', FORMAT: 'png', TRANSPARENT: true, }, { isBaseLayer: false, singleTile: true } ); Many thanks, -Dave
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users