[OpenLayers-Users] transform coordinates
Steve Way
Steve.Way at infotech-enterprises.com
Tue Jul 3 04:56:30 PDT 2012
How about adding you layer to the map after you have added the basemap.
From: Pedro Costa [mailto:pedrocostaarma at sapo.pt]
Sent: 03 July 2012 21:54
To: Steve Way; openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] transform coordinates
Em 03-07-2012 12:38, Steve Way escreveu:
I would suggest setting the SRS of your map (EPSG:90913) in the WMS request also.
I've tried like that:
var ruas = new OpenLayers.Layer.WMS(
'ruas',
'http://localhost:8080/geoserver/it.geosolutions/wms',
{layers: 'it.geosolutions:ruas',
styles: 'line',
srs: 'EPSG:900913',
format: 'image/png',
transparent: true
},{isBaseLayer: false});
But doesn't work!
________________________________
DISCLAIMER:
This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech or Mail.Admin at infotech-enterprises.com and delete the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120703/d322dd6e/attachment.html>
More information about the Users
mailing list