Hi Alexey, I don't think you are doing anything wrong. This sounds like the same problem as issue 156 to me:
http://code.google.com/p/gwt-google-apis/issues/detail?id=156 I thought it was fixed in 1.0 RC1, but apparently not when the info window is used with a Marker class. Please start the issue if you want to keep track of your progress. -Eric. On Sat, Sep 27, 2008 at 1:17 PM, Alexey Frishman <[EMAIL PROTECTED]>wrote: > > 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. > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
