[OpenLayers-Users] SphericalMercator with Text layer

Eric Lemoine eric.c2c at gmail.com
Thu Nov 22 08:55:48 EST 2007


On Nov 20, 2007 2:19 PM, Fred van Beelen <fred at waterwegwijzer.nl> wrote:
> Hi,
>
> I have a map with Goolge baselayer and a few Text - and GML layers (OL
> 2.4). The same configuration I will be used in OL 2.5 setting Goolge
> layer SphericalMercator: true, units: 'm' etc.
> The defined markers in text layer have lon/lat degrees and not meters.
> How can I do this properly?
> - changing Text.js file, 'Parsdata' add:  location =
> OpenLayers.Layer.SphericalMercator.forwardMercator(parseFloat(coord....e
> tc.?
> - changing source data in .txt files by replacing degrees in meters?
> - or something else?

I'm not a text layer expert but using EPSG:900913 projected data in
your .txt file makes more sense to me.

--
Eric



More information about the Users mailing list