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:
Frédéric Junod
2010-01-27 14:36:46 +00:00
parent c1f9945838
commit e5aab2453d
6 changed files with 21 additions and 3 deletions
+3 -1
View File
@@ -5,7 +5,7 @@
<script type="text/javascript">
function test_Format_OSM_constructor(t) {
t.plan(4);
t.plan(5);
var options = {'foo': 'bar'};
var format = new OpenLayers.Format.OSM(options);
@@ -14,6 +14,8 @@
t.eq(format.foo, "bar", "constructor sets options correctly");
t.eq(typeof format.read, "function", "format has a read function");
t.eq(typeof format.write, "function", "format has a write function");
t.eq(format.externalProjection.getCode(), "EPSG:4326",
"default external projection is EPSG:4326");
}
function test_Format_OSM_node(t) {
t.plan(4);