[OpenLayers-Users] Unable to use both OpenLayers.Layer.Google and OpenLayers.Layer.TMS

Eric Lemoine Eric.Lemoine at camptocamp.com
Tue Jun 5 00:47:07 EDT 2007


On 6/4/07, Nick Burch <nick at torchbox.com> wrote:
> On Mon, 4 Jun 2007, Christopher Schmidt wrote:
> > There isn't one. Other than that, I can't offer any assistance.
>
> Is the reason there isn't a fix because the google maps stuff all assumes
> it's in lat+long (and internally translates to mercator), and openlayers
> therefore adjusts it so things are?
>
> If so, could we not tweak the google layer code to detect if the main
> openlayer is in mercator, and in that case, re-project the co-ordinates
> and bounds before passing them into the google js?

Nick,

As pointed out by Christopher you can use Tim Schaub's GoogleMercator
layer, his openlayers tree is located here
<http://dev.openlayers.org/sandbox/tschaub/google/.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list