[OpenLayers-Users] Adding parameters to ArcGISCache

Andreas Hocevar ahocevar at opengeo.org
Wed Feb 29 09:31:23 EST 2012


Maybe this helps: https://github.com/openlayers/openlayers/pull/259

Andreas.

On Wed, Feb 29, 2012 at 2:13 PM, Tobias Reinicke <ramotswa at gmail.com> wrote:
> Hi Andreas,
>
> I have been given a arc gis tile cache url, but I need to supply a
> security token at the end of any tile request in order for them to
> pass security. I don't know if this is inherit in their arcgis server
> set up, or if they have wrapped it up in a separate security layer.
>
> A valid tile request looks like this:
>
> http://mapcache/cache/nationwide_prime_wm/layers/_alllayers/L04/R00000007/C0000000a.jpg?Signature=xxxxxxx&Key-Pair-Id=yyyyyyyyyy&Policy=zzzzzzzzzz
>
> I've just read though, and I should have done this before, that they
> have created a custom OL js file to enable what I'm trying to do.
> (http://mapservices.datadoors.net/examples/simple.html)
> They seem to have extended the ArcGISCACHE layer:
>  cflayer = new OpenLayers.Layer.ArcGISCache({
>                            name: "i3 Edge Cache (CloudFront)", upperCase: false,
>                            url: [
>
> "http://mapcache/cache/nationwide_prime_wm/layers/_alllayers"],
>                            type: "jpg",
>                            params: {
>                                Signature: objSigned.Signature,
>                                "Key-Pair-Id": objSigned.KeyPairId,
>                               Policy: objSigned.Policy
>                            },
>                            tileOrigin: new OpenLayers.LonLat(
>                    maxExtent.left, maxExtent.top
>                ),
>                            zoomOffset: ZOOM_OFFSET,
>                            'buffer': 0
>                        });
>
> which is fairly annoying as I want to use this in my current OL page
> which clearly is not going to be the same version as the one they are
> using. Meh.
>
> So I guess I'm out of options.
>
> Toby
>
> On 29 February 2012 12:19, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>> Hi,
>>
>> what exactly are you trying to achieve? The only thing you can change
>> is the url. The tile path will always be /${z}/${y}/${x}. And I'm not
>> aware of AGS supporting any url params.
>>
>> Andreas.
>>
>> On Wed, Feb 29, 2012 at 10:06 AM, Tobias Reinicke <ramotswa at gmail.com> wrote:
>>> Hello all,
>>>
>>> Sorry, this is my second attempt to get some clarity! I'm a bit stumped here;
>>>
>>> I want to add some custom parameters to the end of my ArcGISCache
>>> layer type, but haven't got a clue how to do it!
>>> Clearly in WMS layer land adding stuff to the params object might do
>>> the trick, but should that work for the ArcGISCache layer too?
>>>
>>> Any help or workarounds would be greatly appreciated.
>>>
>>> Regards,
>>>
>>> Toby
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
>>
>> --
>> Andreas Hocevar
>> OpenGeo - http://opengeo.org/
>> Expert service straight from the developers.



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list