diff --git a/examples/markerss.html b/examples/markerss.html deleted file mode 100644 index 55c62d7cc7..0000000000 --- a/examples/markerss.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - -

OpenLayers Example

-
-
click to add popup to map
-
click to get lon/lat for pixel point(0,0)
-
click to destroy the popup
-
click to remove the popup from map
- - diff --git a/examples/wms.html b/examples/wms.html index 67ab96faf4..d803fd656e 100644 --- a/examples/wms.html +++ b/examples/wms.html @@ -22,31 +22,14 @@ "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); - markers = new OpenLayers.Layer.Markers("markers"); - map.addLayer(markers); - map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); map.addControl( new OpenLayers.Control.LayerSwitcher() ); } - function add() { - var icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png',new OpenLayers.Size(10,17)); - marker = new OpenLayers.Marker(new OpenLayers.LonLat(2, 41), icon); - markers.addMarker(marker); - } - - - function remove() { - markers.removeMarker(marker); - } - - // -->
-
click to add the marker to the map
-
click to remove the marker from the map