[OpenLayers-Users] Question on having multiple layers

Ali Khan akhan at unfpa.org
Wed Aug 8 15:41:36 EDT 2007


some what. This much I knew already but I was hoping to grab the layer 
visible as well so I knew which layer to query data for.

Eric Lemoine wrote:
> On 8/8/07, Ali Khan <akhan at unfpa.org> wrote:
>   
>> I'm planning to use the layers param, is there any way to switch the
>> click event to go to a specific url for a specific layer doing this though?
>>     
>
> You can register your own "click on map" callback using something like:
>
> map.events.register('click', map, yourOwnClickCallback);
>
> Does that answer your question?
> --
> Eric
>   




More information about the Users mailing list