Skip to content

Popup option missing from default usage and panning problem #4

Closed
Toutouwai opened this Issue Mar 15, 2012 · 5 comments

3 participants

@Toutouwai

The "popup" option for having a marker's info window open by default is only available on the addMarker additional method. It would be nice to have it available via the default usage. Either that or add "address" as an option on the addMarker method.

Also, when popup is set to true, it doesn't pan the map as it should - it seems to not pan down far enough meaning that the top of the info window can be cut off. Compare the panning that occurs when an info window is opened by click versus open using popup: true.

@marioestrada
Owner

Thanks, I'll look into it when I have the time.

@wjbryant

The missing popup option was confusing to me as well. Adding marker.popup to the array of arguments on lines 196 and 202 should fix this.

Also, changing line 168

popup && infowindow.open($gmap, gmarker);

to

if (popup) {
    google.maps.event.addListenerOnce($gmap, 'tilesloaded', function () {
        infowindow.open($gmap, gmarker);
    });
}

seems to help with the info window auto-panning problem.

@wjbryant

That fixed it for me. Thanks!

@marioestrada
Owner

Fixed in 2.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.