[OpenLayers-Users] SphericalMercator with Text layer
Christopher Schmidt
crschmidt at metacarta.com
Thu Nov 22 09:06:31 EST 2007
On Thu, Nov 22, 2007 at 02:55:48PM +0100, Eric Lemoine wrote:
> 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.
Yep. In the future (2.6?) We'll support reprojecting your data for you
-- until then, projecting your data in the datasource will do it.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list