Comments inline:
On Thu, Nov 20, 2008 at 12:36 PM, r3v3r3nd
<[EMAIL PROTECTED]>wrote:
>
> Hi,
>
> i've got a problem with my gwt project and its google maps
> integration.
> given is a map, with several markers placed on it. if an special event
> is fired in my application, i call the following method, which opens
> an infowindow over a specified marker.
>
> public void showSingleMarker(final Long id){
>
> //infowindow is a field of the class
> if(infoWindow == null{
> infoWindow = map.getInfoWindow();
> }
You don't need to cache away the info window instance. In the latest rev of
the gwt-maps API, the info window is a singleton anyway.
>
>
> //get the wanted marker through its id
> Marker marker = markerHashMap.get(id);
>
> InfoWindowContent infoContent = new InfoWindowContent("test-foo");
> infoWindow.setMaximizeEnabled(false);
>
> infoWindow.open(marker, infoContent);
> }
>
> the problem is:
> if i call this method at least TWICE in a row (does not depend if the
> marker is the same or a different one), and then CLOSE the infowindow
> - the NEXT TIME it should be shown, there is NO CONTENT shown
> anymore. every following time i call the method, the infowindow is
> empty.
This sounds like a problem that I very much hope was fixed in issue 156:
http://code.google.com/p/gwt-google-apis/issues/detail?id=156.
We worked very hard to get rid of that problem, which had to do with the way
the GWT event system is associated with the InfoWindow contents.
>
>
> is there anything special with infowindows and its content i do not
> know? does anyone know what to do?
If you are not yet using gwt-maps version 1.0.1, please grab it and see if
that solves the problem.
-Eric.
--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---