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>