[OpenLayers-Users] WMS overlay on Google Map v3 on Mobile

Andreas Hocevar ahocevar at opengeo.org
Fri Nov 25 11:48:53 EST 2011


On Fri, Nov 25, 2011 at 2:11 PM, Alex <zeitalex at googlemail.com> wrote:
> Dear All,
> Do I have to use Google Map v3 on Mobile?
> If so how to overlay Google Layer v3 with WMS
> I found:
> http://blog.sumbera.com/2010/11/02/tiled-wms-overlay-on-google-map-v3/
> Is it really so complicated?

Much easier with OpenLayers:

var map = new OpenLayers.Map({
    div: "map",
    maxExtent: new
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
    center: new OpenLayers.LonLat(0,0),
    zoom: 1,
    layers: [
        new OpenLayers.Layer.Google(),
        new OpenLayers.Layer.WMS(
            "states", "http://demo.opengeo.org/geoserver/wms",
            {layers: "topp:states", transparent: true}
        )
    ]
});

Andreas.

> Thanks a lot in advance
> Alex
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list