[OSM-dev] OSM and OpenLayers Projections

mike mike at bristolbeat.co.uk
Fri Aug 10 15:52:37 BST 2007


hang on a minute - that's the original KML layer showing correctly, not the
modified KML_OSM layer.

Now I'm really confused!  I thought we'd just agreed that was never going to
work.  Oh well, at least it's working.


> > * Reproject your KML data. This means changing the coordinates from
> >    Lat/Lon to projected x/y coodinates in the "Google Projection":
> >    http://spatialreference.org/ref/user/6/
>
>
> This seems the best option.  The OpenLayers/Format/KML.js file can be
> modified to translate the co-ordinates as they are read, but I'm not sure
> that I'm totally happy with this solution - it feels like a hack.  However
> it does work!
>
> In fact, using the same method I can load OSM data directly into a vector
> layer as well - see http://www.bristolbeat.co.uk/phpmap/openstreetmap2.html
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070810/6f8b902b/attachment.html>


More information about the dev mailing list