From b5e525e1187bc192146413eb503ac9cb4c261ba1 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 7 Jun 2006 18:59:34 +0000 Subject: [PATCH] more demo work git-svn-id: http://svn.openlayers.org/trunk/openlayers@549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/popups.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/popups.html b/examples/popups.html index a0c20ad5cf..9ccd897b2d 100644 --- a/examples/popups.html +++ b/examples/popups.html @@ -22,6 +22,12 @@ map.addLayer(layer); + layer = new OpenLayers.Layer.WMS( "OpenLayers WMS2", + "http://octo.metacarta.com/cgi-bin/mapserv", + {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} ); + + map.addLayer(layer); + map.setCenter(new OpenLayers.LonLat(0, 0), 0); map.addControl(new OpenLayers.Control.LayerSwitcher()); } @@ -103,6 +109,11 @@ markers.removeMarker(marker); } + function removelayer() { + layer.destroy(); +// map.removeLayer(markers); + } + // --> @@ -113,5 +124,8 @@
click to add a Marker with an AnchoredBubble popup
click to modify popup's attributes
click to remove the popup from map
+
click to remove the markers layer
+
marker.onscreen()?
+
click to destroy the popup from map