Support » Plugins and Hacks » [Plugin: Google maps] GMap2 initialization setUIToDefault resets settings

  • Hello,
    I just started using your plugin… Thanks for your work, it really saved a lot of my time.
    I’d like to point out a little bug in your code, during GMap2 object’s initialization:

    map_'.$count.'.enableDoubleClickZoom();
    map_'.$count.'.enableContinuousZoom();
    ...
    map_'.$count.'.setUIToDefault();

    The last line resets all your map’s settings, thus invalidating the lines above it. To solve this you only need to move that line right before any configuration method (before enableDoubleClickZoom() in this example)…

    Hope this helps

    http://wordpress.org/extend/plugins/google-maps/

Viewing 1 replies (of 1 total)
  • Hi maffo,

    thanks for the tip 😉 i’ll correct it as soon as possible but i can’t do it now because i “lost” my motherboard 🙁

    Amicably,

    Pierre.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google maps] GMap2 initialization setUIToDefault resets settings’ is closed to new replies.