[OpenLayers-Users] Tokens for secure ArcGIS Server layers

David R Robison drrobison at openroadsconsulting.com
Thu Oct 8 14:21:56 EDT 2009


I do it this way: David
this.map.addLayer(new OpenLayers.Layer.WMS('Imagery', 
'https://xxx/MapServer/WMSServer', {'layers': '0', 'format': format, 
token: 
'vf-zIGAXkkeci7VLI2AKxID7JkhN9FEcftIvB2VlbVNLmYcuQTYlSbvExrwYNmOjR-Ybum7ozaHv7WWV_N84ibOkdfZOFKCss6zx17No2tc.'}, 
{'numZoomLevels': 20, 'buffer':0}));


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
>   

-- 

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579

This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.  If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited.  If you have received this communication in error, please notify us immediately.  



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091008/8218ac8c/attachment.html


More information about the Users mailing list