WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google maps] GMap2 initialization setUIToDefault resets settings (2 posts)

  1. maffo
    Member
    Posted 4 years ago #

    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/

  2. Pierre_02
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic