From: Edwin C. <com...@gm...> - 2010-02-18 11:56:54
|
Hi Andrew, If you want to ensure that the map centers on the same center you may want to listen to the beforeresize and afterresize event of the Panel in which the map is embedded, if the panel throws these (GXT does). Then you would have to get the center and store it before resize and do setCenter after resize. Otherwise I think OpenLayers will apply it's own logic to where it recenters. Greetings, Edwin On 18 February 2010 11:56, Philipp Verhoeven <phi...@go...> wrote: > Greetings, > > I'm not sure if this is the right answer to your problem, but when I was > working with resizing the map using relative sizes the map had to be in a > DockPanel. > > Something like this: > > DockPanel dp = new DockPanel(); > dp.setHeight("100%"); > dp.setWidth("100%"); > dp.add(map.getMapWidget(), DockPanel.CENTER); > addItem(dp); > > Maybe this helped!? > > Cheers! > > > 2010/2/18 Andrew Hughes <ahh...@gm...> >> >> Hi AGAIN, >> I've got a 100%x100% MapWidget inside a SplitPanel. Since the split panel >> is resizeable (via a mouse drag), how can gwt-openlayers keep the map >> focused on the centroid on resize. At the moment it just maintains the >> minX/minY in the upper left top cnr. >> Thanks AGAIN! :) >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |