From: Farrukh N. <fa...@we...> - 2009-03-20 15:56:18
|
I am using MapWidget inside another GWT toolkit. I find that sometime when the container for MapWidget is repainted the MapWidget does not get repainted. Is there a way to force repaint of MapWidget (Sorry if this may be a generic GWT question). Thanks. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com |
From: Farrukh N. <fa...@we...> - 2009-03-20 16:50:20
|
Hi Evgeny, I believe you are using gwt-openlayers with SmartGWT. Did you run into repaint problems when UI was resized etc.? If so, how did you fix the problem? I sometime see the MapWidget disappear alltogether and sometimes see just the scale control. In the latter case clciking on scale control shows the map. Farrukh Najmi wrote: > I am using MapWidget inside another GWT toolkit. > I find that sometime when the container for MapWidget is repainted > the MapWidget does not get repainted. Is there a way to force repaint > of MapWidget (Sorry if this may be a generic GWT question). Thanks. > > -- Regards, Farrukh Web: http://www.wellfleetsoftware.com |
From: Curtis J. <cur...@gm...> - 2009-03-20 19:43:39
|
It could be a zIndex problem. I haven't been using SmartGWT, but I've ran into this problem. I've seen different browsers render it differently. OpenLayers uses zIndexes that are as high as 2000. If there is something higher than that, it could make the map appear to not show up. -- Curtis On Fri, Mar 20, 2009 at 9:49 AM, Farrukh Najmi < fa...@we...> wrote: > > Hi Evgeny, > > I believe you are using gwt-openlayers with SmartGWT. Did you run into > repaint problems when UI was resized etc.? > If so, how did you fix the problem? > > I sometime see the MapWidget disappear alltogether and sometimes see > just the scale control. In the latter case clciking > on scale control shows the map. > > > Farrukh Najmi wrote: > > I am using MapWidget inside another GWT toolkit. > > I find that sometime when the container for MapWidget is repainted > > the MapWidget does not get repainted. Is there a way to force repaint > > of MapWidget (Sorry if this may be a generic GWT question). Thanks. > > > > > > > -- > Regards, > Farrukh > > Web: http://www.wellfleetsoftware.com > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |
From: Farrukh N. <fa...@we...> - 2009-03-20 19:49:24
|
Thanks for the info. I am not familiar with zIndexes. Is there a solution to the problem? Curtis Jensen wrote: > It could be a zIndex problem. I haven't been using SmartGWT, but I've > ran into this problem. I've seen different browsers render it > differently. OpenLayers uses zIndexes that are as high as 2000. If > there is something higher than that, it could make the map appear to > not show up. > > -- > Curtis > > > On Fri, Mar 20, 2009 at 9:49 AM, Farrukh Najmi > <fa...@we... <mailto:fa...@we...>> > wrote: > > > Hi Evgeny, > > I believe you are using gwt-openlayers with SmartGWT. Did you run into > repaint problems when UI was resized etc.? > If so, how did you fix the problem? > > I sometime see the MapWidget disappear alltogether and sometimes see > just the scale control. In the latter case clciking > on scale control shows the map. > > > Farrukh Najmi wrote: > > I am using MapWidget inside another GWT toolkit. > > I find that sometime when the container for MapWidget is repainted > > the MapWidget does not get repainted. Is there a way to force > repaint > > of MapWidget (Sorry if this may be a generic GWT question). Thanks. > -- Regards, Farrukh Web: http://www.wellfleetsoftware.com |
From: Curtis J. <cu...@th...> - 2009-03-20 20:08:13
|
zIndexes are how CSS defines what div blocks appear on top of overlapping div blocks. It's the normal concept of 3D space coordinates, where the z axis is perpendicular to the screen. The highest zIndex will be on top. I'm not expert either, this is the basics of what I know. It's isn't difficult to change the default zIndexes of OpenLayers (but is was difficult for me figure it out). It is very likely that someone else knows a better way. In my case, I was actually trying to make the map go lower in the z ordering. You may want yours to go higher. I used FireBug (Firefox plugin) to find the zIndex of the objects that were conflicting with my map. It took me a little while to find where OpenLayers was setting it's z indexes. They have a set of base indexes, and then build from there. If you over write the defaults, you can modify the z ordering of OpenLayers objects. This is the code I used: // OpenLayers default Z bases are 1000, 250, 750, 2000 private native JSObject getLowerMapZBase() /*-{ return { BaseLayer: -1000, Overlay: -750, Popup: -500, Control: 0 }; }-*/; MapOptions mapOptions = new MapOptions(); mapOptions.setAttribute("Z_INDEX_BASE", getLowerMapZBase()); On Fri, Mar 20, 2009 at 12:48 PM, Farrukh Najmi < fa...@we...> wrote: > > Thanks for the info. I am not familiar with zIndexes. Is there a solution > to the problem? > > Curtis Jensen wrote: > >> It could be a zIndex problem. I haven't been using SmartGWT, but I've ran >> into this problem. I've seen different browsers render it differently. >> OpenLayers uses zIndexes that are as high as 2000. If there is something >> higher than that, it could make the map appear to not show up. >> >> -- >> Curtis >> >> >> On Fri, Mar 20, 2009 at 9:49 AM, Farrukh Najmi < >> fa...@we... <mailto:fa...@we...>> >> wrote: >> >> >> Hi Evgeny, >> >> I believe you are using gwt-openlayers with SmartGWT. Did you run into >> repaint problems when UI was resized etc.? >> If so, how did you fix the problem? >> >> I sometime see the MapWidget disappear alltogether and sometimes see >> just the scale control. In the latter case clciking >> on scale control shows the map. >> >> >> Farrukh Najmi wrote: >> > I am using MapWidget inside another GWT toolkit. >> > I find that sometime when the container for MapWidget is repainted >> > the MapWidget does not get repainted. Is there a way to force >> repaint >> > of MapWidget (Sorry if this may be a generic GWT question). Thanks. >> >> > -- > Regards, > Farrukh > > Web: http://www.wellfleetsoftware.com > > > |