[OpenLayers-Users] Google and Markers and Vectors ... oh my!

Peterson Eric-EEP002 Eric.Peterson at motorola.com
Wed Nov 28 10:36:35 EST 2007


Okay, that I can understand. But why does the Marker layer seem to
behave properly but the Vector layer doesn't?

-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
Sent: Wednesday, November 28, 2007 10:32 AM
To: Peterson Eric-EEP002
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] Google and Markers and Vectors ... oh
my!

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