move Layer.OSM in its own script file

This commit is contained in:
Éric Lemoine
2012-01-12 21:22:58 +01:00
parent 2d7fa6810a
commit 3cbd7b4b40
8 changed files with 66 additions and 42 deletions
+16
View File
@@ -0,0 +1,16 @@
<html>
<head>
<script src="../OLLoader.js"></script>
<script type="text/javascript">
function test_clone(t) {
t.plan(1);
var layer = new OpenLayers.Layer.OSM();
var clone = layer.clone();
t.ok(clone instanceof OpenLayers.Layer.OSM, "clone is a Layer.OSM instance");
}
</script>
</head>
<body>
<div id="map" style="width:500px;height:550px"></div>
</body>
</html>
+2 -8
View File
@@ -251,17 +251,11 @@
}
function test_clone(t) {
t.plan(2);
var clone;
t.plan(1);
layer = new OpenLayers.Layer.XYZ(name, url, options);
clone = layer.clone();
var clone = layer.clone();
t.ok(clone instanceof OpenLayers.Layer.XYZ, "clone is a Layer.XYZ instance");
layer = new OpenLayers.Layer.OSM();
clone = layer.clone();
t.ok(clone instanceof OpenLayers.Layer.OSM, "clone is a Layer.OSM instance");
}
</script>
+1
View File
@@ -167,6 +167,7 @@
<li>Layer/WMTS.html</li>
<li>Layer/WrapDateLine.html</li>
<li>Layer/XYZ.html</li>
<li>Layer/OSM.html</li>
<li>Map.html</li>
<li>Marker.html</li>
<li>Marker/Box.html</li>