[OpenLayers-Users] LayerSwitcher - current base map
Christopher Schmidt
crschmidt at metacarta.com
Wed Jun 13 10:41:36 EDT 2007
On Wed, Jun 13, 2007 at 07:09:32PM +1000, bradleyspencer wrote:
> List,
>
> I need to know which map is selected as the current base map from those
> available in layerSwitcher so that I can add a watermark to the map.
>
> Is there anyway to place an event on layerSwitcher that can tell me which
> layer has been interactively selected?
As defined in the Map object:
EVENT_TYPES: [
"addlayer", "removelayer", "changelayer", "movestart", "move",
"moveend", "zoomend", "popupopen", "popupclose",
"addmarker", "removemarker", "clearmarkers", "mouseover",
"mouseout", "mousemove", "dragstart", "drag", "dragend",
"changebaselayer"],
One of those will probably help you get what you want.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list