[OpenLayers-Users] Mapserver labels, Google and WMS in one map

Christopher Schmidt crschmidt at crschmidt.net
Tue Aug 29 16:21:01 CDT 2006


On Tue, Aug 29, 2006 at 05:44:14PM -0300, José Vilson de Mello de Farias wrote:
> Christopher Schmidt wrote:
> >On Tue, Aug 29, 2006 at 07:22:36PM +0200, Arnd Wippermann wrote:
> >  
> >>Hello,
> >>
> >>What is the use of having google and wms in the same map? With Openlayers 
> >>it
> >>is yet not possible to get the two matching each other. That's what I have
> >>understand from previous posts. 
> >>    
> >
> >Google and WMS can both be used as basemaps for the same map: in that
> >way, you can swap between a WMS and Google, and compare the data, or use
> >the Google interface to browse to your location, then switch to viewing
> >your WMS data. 
> >
> >Currently, the only kind of WMS you would want to lay down on top of
> >Google Maps would be untiled WMS, which does properly respect the base
> >map and 'stretch' itself appropriately.
> >  
> Using GoogleMap and WMS on the same map seems more difficult than I 
> expected. I was able to put them together, but they "don't fit". It 
> seems to be a projection problem. I even found a reference on the web, 
> but it doesn't work here (I got a msProcessProjection(): Projection 
> Library error. latitude or longitude exceeded limits).
> 
> http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-wms.html
> 
> If someone had better luck on this issue, please share it ;)
> 
> By the way, thank you very much for such great help.

I misunderstood your goals. Currently, OpenLayers does not allow the use
of Tiled WMS  on top of Google Maps.

If you wish to place WMS data on top of Google Maps, you can do it with
Untiled WMS layer. Additionally, there is a bug filed to support
displaying WMS on top of different basemaps: This is filed as a bug
against OpenLayers 2.2, with a description:
  http://trac.openlayers.org/ticket/196

If someone wants to code it, and the content there isn't enough to
explain what is neccesary, please let me know what I can do to assist in
adding this functionality.

Regards,
-- 
Christopher Schmidt
Web Developer


More information about the Users mailing list