[OpenLayers-Users] Users Digest, Vol 80, Issue 41

Ashok Vanam ashokkumarvanam at gmail.com
Mon May 27 20:23:18 PDT 2013


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,
<openlayers-users-request at lists.osgeo.org>wrote:

> Send Users mailing list submissions to
>         openlayers-users at lists.osgeo.org
>
> 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
>         openlayers-users-request at lists.osgeo.org
>
> You can reach the person managing the list at
>         openlayers-users-owner at lists.osgeo.org
>
> 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 <pascal2833 at gmail.com>
> To: openlayers-users at lists.osgeo.org
> Subject: [OpenLayers-Users] Google map layers and WMS overlay layers.
> Message-ID: <1369600936913-5055836.post at n6.nabble.com>
> 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 ." <gamejihou at hotmail.com>
> To: pascal <pascal2833 at gmail.com>
> Cc: "openlayers-users at lists.osgeo.org"
>         <openlayers-users at lists.osgeo.org>
> Subject: Re: [OpenLayers-Users] Google map layers and WMS overlay
>         layers.
> Message-ID: <DUB402-EAS700F1EB2F96BA46C052EC2B0950 at phx.gbl>
> 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" <pascal2833 at gmail.com> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 27 May 2013 11:09:26 +1200
> From: Phil Scadden <p.scadden at gns.cri.nz>
> To: openlayers-users at lists.osgeo.org
> Subject: Re: [OpenLayers-Users] WMS layer not visible...
> Message-ID: <51A29626.2010209 at gns.cri.nz>
> 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 <dasintelligence at gmail.com>
> To: openlayers-users at lists.osgeo.org
> Subject: [OpenLayers-Users] Select multiple features by drawing
>         polygon
> Message-ID: <1369620049528-5055851.post at n6.nabble.com>
> 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 <pascal2833 at gmail.com>
> To: "Gery ." <gamejihou at hotmail.com>
> Cc: "openlayers-users at lists.osgeo.org"
>         <openlayers-users at lists.osgeo.org>
> Subject: Re: [OpenLayers-Users] Google map layers and WMS overlay
>         layers.
> Message-ID:
>         <CANKzPDCsGiGADfN5u28ofiwCQa+syov0a=
> iqqiFK-ZwQ1s69bA at mail.gmail.com>
> 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 . <gamejihou at hotmail.com>
>
> > 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" <pascal2833 at gmail.com> 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
> > Users at lists.osgeo.org
> > 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> End of Users Digest, Vol 80, Issue 41
> *************************************
>



-- 
Regards,
*Ashok Kumar*
*Mob: 9885606100*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130528/f07199e8/attachment.html>


More information about the Users mailing list