[OpenLayers-Users] Question on having multiple layers

Eric Lemoine eric.c2c at gmail.com
Wed Aug 8 15:17:18 EDT 2007


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