Closed GoogleCodeExporter closed 9 years ago
Original comment by zundel@google.com
on 16 Oct 2010 at 10:44
I got a similar error when I added a sample to the InfoWindowDemo class in
HelloMaps.
The problem was that the marker needed to be added to the map before calling
InfoWindow.open(marker, ...)
This patch updates the sample and the javadoc.
http://gwt-code-reviews.appspot.com/1021801/show
Original comment by zundel@google.com
on 16 Oct 2010 at 6:37
I had a similar problem as original poster, and in my case it was because the
Icon used during Marker creation wasn't initialized correctly. My
initialisation code was:
MarkerOptions options = MarkerOptions.newInstance();
options.setIcon(Icon.newInstance("some_image_url"));
marker = new Marker(point, options);
something is missing in the icon, resulting in the above mentioned exception.
The following change fixed the problem:
MarkerOptions options = MarkerOptions.newInstance();
Icon icon = Icon.DEFAULT_ICON;
icon.setImageUrl("some_image_url");
options.setIcon(icon);
marker = new Marker(point, options);
Original comment by ivo...@gmail.com
on 16 Sep 2011 at 3:07
Maps API v2 has been deprecated.
Original comment by zundel@google.com
on 28 Oct 2011 at 4:12
Original issue reported on code.google.com by
obsidianx
on 13 Aug 2010 at 10:24