From: Edwin C. <com...@gm...> - 2009-07-08 07:36:35
|
Hi Abdelhadi, With respect to issue 1. Do you see that in a plain GWT application? And is it across browsers? We have a problem like you are describing when using Ext-GWT, where WMS layers only load in a small corner of the map, until resize. This happens only in Firefox for us. In Firefox 3.5 the map is completely gone. We do not experience this problems in a plain GWT app and it seems to have something to do with the lifecycle of Ext-GWT components (they only get a size when rendered if I am correct). Greetings, Edwin 2009/7/7 AbdElhadi <abd...@gm...> > Thanks Edwin. I appreciate it. > > > On Tue, Jul 7, 2009 at 4:00 AM, Edwin Commandeur < > com...@gm...> wrote: > >> Hi AbdelHadi, >> >> Thanks for giving feedback on using the Google Maps layer. I really >> appreciate that you share your experiences. >> >> Issue 1 you are describing is something that I have seen before for WMS >> layers on Firefox, but only in a Ext-GWT app (strangely enough it does not >> happen in the showcase). Up to now I have not been able to track down the >> problem. This is one to drill down on when I have some time, because it is a >> nasty problem. >> >> Issue 2 could have something to do with the isFixed property of EventPane, >> but that is purely upon glancing the API docs. Anyway, I added >> EventPaneOptions and GoogleOptions now extend this class. >> >> The function setSphericalMercator is a setter for the sphericalMercator >> property of the Goolge Layer in OL. It also strikes me as strange to have >> such a property on the Google Layer itself, as it affects the entire map, >> but it looks like a convenience feature of OL to set a property on the >> Google Layer in order to make vector layers and the like work. >> >> Greetings, >> Edwin >> >> 2009/7/6 AbdElhadi <abd...@gm...> >> >>> Hi all, >>> >>> I was able to get a Google map to show up but not without many issues. >>> All I had to do is to add the google maps api script call to the host html >>> and add the following to my code: >>> >>> // create a google maps layer >>> GoogleOptions ggLayerOptions = new GoogleOptions(); >>> ggLayerOptions.setSphericalMercator(false); >>> Google ggLayer = new Google("Google Base", ggLayerOptions); >>> myMap.addLayer(ggLayer); >>> >>> The issues I am getting are as follow: >>> >>> 1- First, on page load, the GoogleMaps layer seems to cover a small area >>> of the map extent until there is a resize event then it takes the same >>> dimensions as the MapWidget. >>> 2- GM doesn't respond to pan/move events when you use >>> setSphericalMercator(true). Also, why is there such a function since all >>> Google Maps are in Spherical Mercator? >>> >>> I am still playing with this and will report on more as I find them. >>> >>> Thanks, >>> -- >>> Abdelhadi >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Gwt-openlayers-users mailing list >>> Gwt...@li... >>> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >>> >>> >> > > > -- > Abdelhadi > |