<div dir="ltr">Hi Pascal,<div><br></div><div style>Do the following steps when overlaying any Spatial data Layers on Google Maps.</div><div style><br></div><div style>1. Set the Map object of OpenLayers with following parameters</div>
<div style><table><tbody><tr><td class=""> _map.projection = 'EPSG:900913';
</td></tr><tr><td class=""></td><td class="">                                            _map.maxResolution = 156543.0339;
</td></tr><tr><td class=""></td><td class="">                                            _map.units = 'm';
</td></tr><tr><td class=""></td><td class="">                                            _map.numZoomLevels = 20;
</td></tr><tr><td class=""></td><td class="">                                            _map.maxExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34);
</td></tr><tr><td class=""></td><td class="">                                            _map.restrictedExtent = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34); </td></tr></tbody></table></div>
<div style><br></div><div style>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.<br></div>
<div style><br></div><div style>Please feel free to contact for any clarifications.</div><div style><br></div><div style>Regards</div><div style>Ashok</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, May 28, 2013 at 12:30 AM,  <span dir="ltr"><<a href="mailto:openlayers-users-request@lists.osgeo.org" target="_blank">openlayers-users-request@lists.osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Users mailing list submissions to<br>
        <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:openlayers-users-request@lists.osgeo.org">openlayers-users-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:openlayers-users-owner@lists.osgeo.org">openlayers-users-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Google map layers and WMS overlay layers. (pascal)<br>
   2. Re: Google map layers and WMS overlay layers. (Gery .)<br>
   3. Re: WMS layer not visible... (Phil Scadden)<br>
   4. Select multiple features by drawing polygon (zgembo)<br>
   5. Re: Google map layers and WMS overlay layers. (pascal evano)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 26 May 2013 13:42:16 -0700 (PDT)<br>
From: pascal <<a href="mailto:pascal2833@gmail.com">pascal2833@gmail.com</a>><br>
To: <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
Subject: [OpenLayers-Users] Google map layers and WMS overlay layers.<br>
Message-ID: <<a href="mailto:1369600936913-5055836.post@n6.nabble.com">1369600936913-5055836.post@n6.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi,<br>
<br>
I'm trying to add overlay WMS layers to google maps layers but they doesn't<br>
have the same nivel (see image ).<br>
What could happen and how to fix it?<br>
Note : I've used the same WMS (countries) in other applications and all was<br>
OK so the WMS server accept the google projection.<br>
<br>
<<a href="http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png</a>><br>
<br>
Thanks a lot,<br>
<br>
Pascal.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 26 May 2013 23:05:45 +0200<br>
From: "Gery ." <<a href="mailto:gamejihou@hotmail.com">gamejihou@hotmail.com</a>><br>
To: pascal <<a href="mailto:pascal2833@gmail.com">pascal2833@gmail.com</a>><br>
Cc: "<a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>"<br>
        <<a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>><br>
Subject: Re: [OpenLayers-Users] Google map layers and WMS overlay<br>
        layers.<br>
Message-ID: <DUB402-EAS700F1EB2F96BA46C052EC2B0950@phx.gbl><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi Pasca,<br>
<br>
What is your code? Any error message? based in the image the overlay has a misalignment, this could be caused by a projection problem.<br>
<br>
Cheers,<br>
<br>
Gery<br>
<br>
Sent from my iRon<br>
<br>
On May 26, 2013, at 22:42, "pascal" <<a href="mailto:pascal2833@gmail.com">pascal2833@gmail.com</a>> wrote:<br>
<br>
Hi,<br>
<br>
I'm trying to add overlay WMS layers to google maps layers but they doesn't<br>
have the same nivel (see image ).<br>
What could happen and how to fix it?<br>
Note : I've used the same WMS (countries) in other applications and all was<br>
OK so the WMS server accept the google projection.<br>
<br>
<<a href="http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png</a>><br>
<br>
Thanks a lot,<br>
<br>
Pascal.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 27 May 2013 11:09:26 +1200<br>
From: Phil Scadden <<a href="mailto:p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>><br>
To: <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
Subject: Re: [OpenLayers-Users] WMS layer not visible...<br>
Message-ID: <<a href="mailto:51A29626.2010209@gns.cri.nz">51A29626.2010209@gns.cri.nz</a>><br>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"<br>
<br>
You should always use maxExtent - if you dont OL guesses which I think<br>
works okay if the map projection is 4326 or 900913 in 2.12. MaxExtent is<br>
used in calculating whether to make WMS calls (is the layer in range). A<br>
mismatch in the projection information between the WMS layer, map<br>
projection and baseLayer projection is probably cause of havoc.<br>
<br>
Notice: This email and any attachments are confidential.<br>
If received in error please destroy and immediately notify us.<br>
Do not copy or disclose the contents.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sun, 26 May 2013 19:00:49 -0700 (PDT)<br>
From: zgembo <<a href="mailto:dasintelligence@gmail.com">dasintelligence@gmail.com</a>><br>
To: <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
Subject: [OpenLayers-Users] Select multiple features by drawing<br>
        polygon<br>
Message-ID: <<a href="mailto:1369620049528-5055851.post@n6.nabble.com">1369620049528-5055851.post@n6.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
I need openlayers expert that will give me complete solution for my map<br>
application.<br>
I need to be able to select multiple features on layer( region boundaries),<br>
highlight selected regions,give the name for that selection( for example<br>
west1) so it  it is possible to later on to redraw all previously selected<br>
regions based on selection name( west1).I need also to be able to click on<br>
surrounding regions and add to existing selection or to remove already<br>
selected regions from selection.<br>
If you are interested please contact me to talk about details and your rate.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Select-multiple-features-by-drawing-polygon-tp5055851.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Select-multiple-features-by-drawing-polygon-tp5055851.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Mon, 27 May 2013 15:02:15 +0200<br>
From: pascal evano <<a href="mailto:pascal2833@gmail.com">pascal2833@gmail.com</a>><br>
To: "Gery ." <<a href="mailto:gamejihou@hotmail.com">gamejihou@hotmail.com</a>><br>
Cc: "<a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>"<br>
        <<a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>><br>
Subject: Re: [OpenLayers-Users] Google map layers and WMS overlay<br>
        layers.<br>
Message-ID:<br>
        <CANKzPDCsGiGADfN5u28ofiwCQa+syov0a=<a href="mailto:iqqiFK-ZwQ1s69bA@mail.gmail.com">iqqiFK-ZwQ1s69bA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks Gery,<br>
<br>
I've tried with the same code but with an OSM layer (base layer) and in<br>
this case, there are not this misalignment (all is fine), I don't<br>
understand !<br>
<br>
Thanks for your help,<br>
<br>
Pascal.<br>
<br>
<br>
<br>
<br>
2013/5/26 Gery . <<a href="mailto:gamejihou@hotmail.com">gamejihou@hotmail.com</a>><br>
<br>
> Hi Pasca,<br>
><br>
> What is your code? Any error message? based in the image the overlay has a<br>
> misalignment, this could be caused by a projection problem.<br>
><br>
> Cheers,<br>
><br>
> Gery<br>
><br>
> Sent from my iRon<br>
><br>
> On May 26, 2013, at 22:42, "pascal" <<a href="mailto:pascal2833@gmail.com">pascal2833@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I'm trying to add overlay WMS layers to google maps layers but they doesn't<br>
> have the same nivel (see image ).<br>
> What could happen and how to fix it?<br>
> Note : I've used the same WMS (countries) in other applications and all was<br>
> OK so the WMS server accept the google projection.<br>
><br>
> <<a href="http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5055836/notsamenivel.png</a>><br>
><br>
> Thanks a lot,<br>
><br>
> Pascal.<br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Google-map-layers-and-WMS-overlay-layers-tp5055836.html</a><br>

> Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130527/0ab6db34/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130527/0ab6db34/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
<br>
End of Users Digest, Vol 80, Issue 41<br>
*************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="background-color:rgb(255,255,255)"><font color="#666666" face="'trebuchet ms', sans-serif">Regards,</font></span></div><div><b><i><font color="#3366ff" size="4" face="'trebuchet ms', sans-serif">Ashok Kumar</font></i></b></div>
<div><b><i><font color="#3366ff" size="4" face="'trebuchet ms', sans-serif">Mob: 9885606100</font></i></b></div>
</div>