|
From: Edwin C. <com...@gm...> - 2009-07-07 11:44:11
|
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
>
>
|