[OpenLayers-Users] How to do Google+TMS+Marker layers

Jochen Topf jochen at remote.org
Tue Aug 14 08:59:18 EDT 2007


Thanks for your quick reponse.

On Tue, Aug 14, 2007 at 08:43:17AM -0400, Christopher Schmidt wrote:
> On Tue, Aug 14, 2007 at 02:29:30PM +0200, Jochen Topf wrote:
> > I want to create an OpenLayers map with switchable Google and TMS base
> > layers and some markers on top. I only want to use WGS84 geographical
> > coordinates and had hoped that OpenLayers would do everything else behind
> > my back.
> 
> Nope. Not going to happen in the near future. OpenLayers doesn't do
> client-side reprojection, and will not in 2.5. 
> 
> > But whatever I try I can't get this to run without having to reproject
> > everything when I switch baselayers etc. because the Google layer works
> > with lat/lon while the TMS layer uses the Mercator projection. The
> > Markers layer will then use whatever the base layer uses.
> 
> Yep. This behavior will be improving in 2.5, because Google will no
> longer be treated as lat/lon data, and instead projected data. You can
> use this now in the GoogleMercator code that Tim is working on:
> 
> http://svn.openlayers.org/sandbox/tschaub/google/
> 
> This setup will improve the situation that you're currently suffering
> under, and I think will solve the problem of switching -- but you're
> still going to have to reproject your vector data and input x/y coords. 

I would need exactly the opposite: Keep the Google layer as it is and
have a MoreLikeGoogle layer that is like the LikeGoogle layer, but also
uses lat/lon coords.

If the reprojection in GoogleMercator can be done, it should be possible
to do it the other way round, isn't it?

Jochen
-- 
Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/  +49-721-388298




More information about the Users mailing list