Hi

I use GWT Google Maps API and I have next problem.

I have click handler on each marker on my map. This handler opens info
window and creates Grid subclass widget inside it with some info.

The problem is that after clicking several times on different markers
and seeing appropriate info windows, I close next window and after
this all next windows are empty. So the widget inside all new windows
is not created or is created in wrong way...

That is the method in the click handler:

        public void onClick(MarkerClickEvent event) {
                Marker marker = event.getSender();
                map.getInfoWindow().open(marker, new InfoWindowContent(new
MapObjectInfo(data)));
                map.setCenter(marker.getLatLng());
        }

Here MapObjectInfo is subclass of the Grid Widget with some basic
initialization stuff.

Please advise me, if I do something wrong. May be this eats much
memory in Javascript, but I don't want to make RPC call every time I
open window on the marker. I want a group of markers be on client side
with all info for info window.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to