[OpenLayers-Users] Tokens for secure ArcGIS Server layers

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Thu Oct 8 14:20:27 EDT 2009


Does adding it to the params object not work?

{
LAYERS: 'show:0',
IMAGESR: '900913',
BBOXSR: '4326',
FORMAT: 'png',
TRANSPARENT: true,
TOKEN: mytokenvalue
}

Best regards,
Bart

David Wright wrote:
>
> 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/Export?",
>
> {
>
> LAYERS: 'show:0',
>
> IMAGESR: '900913',
>
> BBOXSR: '4326',
>
> FORMAT: 'png',
>
> TRANSPARENT: true,
>
> },
>
> {
>
> isBaseLayer: false,
>
> singleTile: true
>
> }
>
> );
>
> Many thanks,
>
> -Dave
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Users mailing list