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@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


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

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to