I am using com.googlecode.maps3
and faced a similar problem. I found
the method below in the Maps V3 API group,
and implemented it in JSNI:
google.maps.event.trigger(map, 'resize');
map.setZoom( map.getZoom() );
It apparently forces the map to refresh.
On Aug 21, 11:18 am, hans <hans.dulima...@gmail.com> wrote:
> I need help solving a rendering problem with GMaps v3. I'm developing a GWT
> app using the following SDK/JAR:
>
> - GWT 2.3.0
> - gwt-maps-3.0.2b.gwt22.jar (Google Maps API V3)
>
> Using the great resource of Google I/O 2009+2010 video presentations by Ray
> Ryan, I developed the app using the Activity-Place framework described in
> the presentations. My app can switch between two Activities (call them
> MapAct and ListAct).
> The MapAct::start() method is in charge of a view widget built using
> GWT::UiBinder, and its [simplified] ui.xml file includes the following
> structure:
>
> <g:DockLayoutPanel>
> <g:east>
> <g:StackLayoutPanel>....</g:StackLayoutPanel>
> </g:east>
> <g:center>
> <map:MapWidget ui:field="theMap" />
> </g:center>
> </g:DockLayoutPanel>
>
> The map is displayed perfectly on the first rendering by MapAct, but when
> switching my activity from ListAct back to MapAct, the map would only render
> partially (the StackLayoutPanel always renders correctly). *Manual resizing
> of the browser window redraws the map correctly*.
>
> From previous postings in this group, I learn that users of previous version
> of Google Maps (V1 and V2) solved this problem by calling
> MapWidget::checkResize(), but I could not find this method (or other similar
> method) in Maps V3.
> I would like to stay with GMaps V3 (if I could).
>
> Any help for solving this issue would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment