In the screenshot below in Image 1, when the Sampler/Maps/map with directions page is opened, it opens up google maps but doesn’t show the route until you move the mouse or press a key. This is the same in chrome/firefox/ie.
-
Refreshing the page and clicking on ‘Map with Directions’ results in the route not being shown
-
I’m seeing the same behaviour in my code. It’s an issue where a dialog box is opening that displays a map immediately that it is opened.
-
I’m only seeing it when there are polylines being used. If the map is just showing markers and labels it initialises immediately
-
The issue is intermittent. Several times it seemed to randomly resolve itself and then stop again when the project was restarted
-
I’m see that the MapInitListener is delayed from firing until there’s a mouse movement or key press
MapInitListener mapInitListener = new MapInitListener() {
@Override
public void init(GeoPoint center, int zoom, GeoPoint boundNE, GeoPoint boundSW) {bInit = true; drawRoute(); }
};
TrackMap.addMapInitListener(mapInitListener);
Any thoughts?
Thanks