[OpenLayers-Users] Google and Markers and Vectors ... oh my!
Christopher Schmidt
crschmidt at metacarta.com
Wed Nov 28 10:32:14 EST 2007
On Wed, Nov 28, 2007 at 10:23:12AM -0500, Peterson Eric-EEP002 wrote:
> Okay, here's my test case ... Any idea what I'm missing?
> // Google Maps
> myMap.addLayer (new OpenLayers.Layer.Google("Google Normal",
> { type: G_NORMAL_MAP }, { 'sphericalMercator': true }));
^^ These should be both in the same hash. {'type': Foo,
'sphericalMercator': true}
> myMap.setCenter (new OpenLayers.LonLat (-80, 26), 10);
You're going to have to reproject all your vectors, and your centers, an
everything else, using the myMap.layers[0].forwardMercator function.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list