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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user