[OpenLayers-Users] reproject vector data
Jim White
jbw2003 at earthlink.net
Tue Feb 18 20:01:20 PST 2014
Hi,
Answer to my own question.
var geojson_format = new OpenLayers.Format.GeoJSON({
'internalProjection': new
OpenLayers.Projection("EPSG:900913"),
'externalProjection': new
OpenLayers.Projection("EPSG:4326")
});
On 02/18/2014 10:48 PM, Jim White wrote:
> Hi,
>
> I am trying to load vector data onto a map(sperical mercator). The
> vector data is lat/lon degrees. I have tried setting the projection of
> the vector layer to both 5436 and 900913 and it still ends of as a dot
> off the coast of Africa.
>
> How to tell Openlayers to reproject?
>
> Thanks,
> Jim
> --
> James B. White
> Cary, NC
> H: 919-380-9615
> M: 919-698-1765
> White Coding and Maps <http://whitecodingandmaps.com/>
--
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps <http://whitecodingandmaps.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140218/8598c171/attachment.html>
More information about the Users
mailing list