From 6d6c08fbef9dbeed330d6b8aa5ab3bef30b78771 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 19 Dec 2007 22:07:12 +0000 Subject: [PATCH] Formats now support reprojection using internalProjection and externalProjection properties. These allow for the reprojection of data -- OpenLayers users with SphericalMercator get this built in for EPSG:900913, and other users can use the external proj4js library available from MapBuilder SVN to add support for any number of projections. This means that featres can be, for example, transformed from a KML doc in 4326 to Spherical Mercator before being added to a layer, making using SphericalMercator slightly more enticing. r=elemoine (Closes #1039) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/vector-formats.html | 49 +++++++++++++++++++++++++------- lib/OpenLayers/Format.js | 28 ++++++++++++++++++ lib/OpenLayers/Format/GML.js | 9 ++++++ lib/OpenLayers/Format/GeoJSON.js | 9 ++++++ lib/OpenLayers/Format/GeoRSS.js | 11 +++++++ lib/OpenLayers/Format/KML.js | 9 ++++++ lib/OpenLayers/Format/Text.js | 4 +++ lib/OpenLayers/Format/WKT.js | 20 ++++++++++++- 8 files changed, 128 insertions(+), 11 deletions(-) diff --git a/examples/vector-formats.html b/examples/vector-formats.html index 3f3d607af4..46a6abde24 100644 --- a/examples/vector-formats.html +++ b/examples/vector-formats.html @@ -55,6 +55,32 @@