[SOLVED] onhover for the google map plugin itself ?

  • hI,

    is there onover or onhover when mousecursor over the map plugin ?
    because there :

    Code
    onmapready=""
     	onmapmoved=""
     	onmapzoomed="">

    i just want controls appear when mouse over map and disappear when cursor out,

    i've tried to add onover="" and onhover="" as attributes in the map plugin, but this seems not working,
    after i've tried to call an action on the onstart="action(show_map_control);"
    with this action :

    Code
    <action name="show_map_control">
    	if(plugin[maps].onover, set(plugin[maps].zoomcontrol.visible, true), set(plugin[maps].zoomcontrol.visible, false));
    	</action>


    but no more luck,
    is there any working example out there ?

    thanks *smile*

    z

    Edited once, last by zadda (November 26, 2010 at 5:38 PM).

  • Hi,

    try that code:

    Code
    onover="set(plugin[map].zoomcontrol.visible, true); plugin[map].updatecontrols();"
    onout="set(plugin[map].zoomcontrol.visible, false); plugin[map].updatecontrols();"

    the googlemaps plugin needs the updatecontrols function to be called for updating
    the state of the control at the moment:
    https://krpano.com/plugins/googlemaps/#updatecontrols

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!