Hi Pascal, Do the following steps when overlaying any Spatial data Layers on Google Maps.
1. Set the Map object of OpenLayers with following parameters _map.projection = 'EPSG:900913'; _map.maxResolution = 156543.0339; _map.units = 'm'; _map.numZoomLevels = 20; _map.maxExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34); _map.restrictedExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34); 2. Re-project the WMS/Other layers data to EPSG:900913 at dataserver (not in OpenLayers). Ensure the WMS layer service are with this Projection System when adding in the OpenLayers. Please feel free to contact for any clarifications. Regards Ashok On Tue, May 28, 2013 at 12:30 AM, <[email protected]>wrote: > Send Users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/openlayers-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. Google map layers and WMS overlay layers. (pascal) > 2. Re: Google map layers and WMS overlay layers. (Gery .) > 3. Re: WMS layer not visible... (Phil Scadden) > 4. Select multiple features by drawing polygon (zgembo) > 5. Re: Google map layers and WMS overlay layers. (pascal evano) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 26 May 2013 13:42:16 -0700 (PDT) > From: pascal <[email protected]> > To: [email protected] > Subject: [OpenLayers-Users] Google map layers and WMS overlay layers. > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > Hi, > > I'm trying to add overlay WMS layers to google maps layers but they doesn't > have the same nivel (see image ). > What could happen and how to fix it? > Note : I've used the same WMS (countries) in other applications and all was > OK so the WMS server accept the google projection. > > <http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png> > > Thanks a lot, > > Pascal. > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 2 > Date: Sun, 26 May 2013 23:05:45 +0200 > From: "Gery ." <[email protected]> > To: pascal <[email protected]> > Cc: "[email protected]" > <[email protected]> > Subject: Re: [OpenLayers-Users] Google map layers and WMS overlay > layers. > Message-ID: <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > Hi Pasca, > > What is your code? Any error message? based in the image the overlay has a > misalignment, this could be caused by a projection problem. > > Cheers, > > Gery > > Sent from my iRon > > On May 26, 2013, at 22:42, "pascal" <[email protected]> wrote: > > Hi, > > I'm trying to add overlay WMS layers to google maps layers but they doesn't > have the same nivel (see image ). > What could happen and how to fix it? > Note : I've used the same WMS (countries) in other applications and all was > OK so the WMS server accept the google projection. > > <http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png> > > Thanks a lot, > > Pascal. > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > ------------------------------ > > Message: 3 > Date: Mon, 27 May 2013 11:09:26 +1200 > From: Phil Scadden <[email protected]> > To: [email protected] > Subject: Re: [OpenLayers-Users] WMS layer not visible... > Message-ID: <[email protected]> > Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" > > You should always use maxExtent - if you dont OL guesses which I think > works okay if the map projection is 4326 or 900913 in 2.12. MaxExtent is > used in calculating whether to make WMS calls (is the layer in range). A > mismatch in the projection information between the WMS layer, map > projection and baseLayer projection is probably cause of havoc. > > Notice: This email and any attachments are confidential. > If received in error please destroy and immediately notify us. > Do not copy or disclose the contents. > > > > ------------------------------ > > Message: 4 > Date: Sun, 26 May 2013 19:00:49 -0700 (PDT) > From: zgembo <[email protected]> > To: [email protected] > Subject: [OpenLayers-Users] Select multiple features by drawing > polygon > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > I need openlayers expert that will give me complete solution for my map > application. > I need to be able to select multiple features on layer( region boundaries), > highlight selected regions,give the name for that selection( for example > west1) so it it is possible to later on to redraw all previously selected > regions based on selection name( west1).I need also to be able to click on > surrounding regions and add to existing selection or to remove already > selected regions from selection. > If you are interested please contact me to talk about details and your > rate. > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Select-multiple-features-by-drawing-polygon-tp5055851.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 5 > Date: Mon, 27 May 2013 15:02:15 +0200 > From: pascal evano <[email protected]> > To: "Gery ." <[email protected]> > Cc: "[email protected]" > <[email protected]> > Subject: Re: [OpenLayers-Users] Google map layers and WMS overlay > layers. > Message-ID: > <CANKzPDCsGiGADfN5u28ofiwCQa+syov0a= > [email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Thanks Gery, > > I've tried with the same code but with an OSM layer (base layer) and in > this case, there are not this misalignment (all is fine), I don't > understand ! > > Thanks for your help, > > Pascal. > > > > > 2013/5/26 Gery . <[email protected]> > > > Hi Pasca, > > > > What is your code? Any error message? based in the image the overlay has > a > > misalignment, this could be caused by a projection problem. > > > > Cheers, > > > > Gery > > > > Sent from my iRon > > > > On May 26, 2013, at 22:42, "pascal" <[email protected]> wrote: > > > > Hi, > > > > I'm trying to add overlay WMS layers to google maps layers but they > doesn't > > have the same nivel (see image ). > > What could happen and how to fix it? > > Note : I've used the same WMS (countries) in other applications and all > was > > OK so the WMS server accept the google projection. > > > > <http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png> > > > > Thanks a lot, > > > > Pascal. > > > > > > > > -- > > View this message in context: > > > http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > > Users mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130527/0ab6db34/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > End of Users Digest, Vol 80, Issue 41 > ************************************* > -- Regards, *Ashok Kumar* *Mob: 9885606100*
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
