|
From: AbdElhadi <abd...@gm...> - 2009-07-06 21:47:41
|
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
|