set a default EPSG:4326 externalProjection to the KML, OSM and GPX formats. r=pgiraud (closes #2424)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
* @requires OpenLayers/Geometry/Point.js
|
||||
* @requires OpenLayers/Geometry/LineString.js
|
||||
* @requires OpenLayers/Geometry/Polygon.js
|
||||
* @requires OpenLayers/Projection.js
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -73,6 +74,9 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
area[layer_defaults.areaTags[i]] = true;
|
||||
}
|
||||
layer_defaults.areaTags = area;
|
||||
|
||||
// OSM coordinates are always in longlat WGS84
|
||||
this.externalProjection = new OpenLayers.Projection("EPSG:4326");
|
||||
|
||||
OpenLayers.Format.XML.prototype.initialize.apply(this, [layer_defaults]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user