Add Layer Switcher to main example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@94 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
map.addLayer(layer);
|
map.addLayer(layer);
|
||||||
map.setCenter(new OpenLayers.LatLon(0, 0), 0);
|
map.setCenter(new OpenLayers.LatLon(0, 0), 0);
|
||||||
|
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||||
}
|
}
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user