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 @@