The default panTo only pans to the edge of the screen.
I like setCenter but would like to pan to that point. Any ideas welcome
map.setCenter(mymarker.getPoint());
GEvent.trigger(mymarker,"click"); //open the info window
The default panTo only pans to the edge of the screen.
I like setCenter but would like to pan to that point. Any ideas welcome
map.setCenter(mymarker.getPoint());
GEvent.trigger(mymarker,"click"); //open the info window
Fixed Code - First pan to center then open infowindow after 2 seconds
map.panTo(mymarker.getPoint());
window.setTimeout(function(){GEvent.trigger(mymarker,"click");},2000);