From 9cf595df015ca9b0d52805e5a4da252687345200 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 13 Sep 2006 08:25:40 +0000 Subject: [PATCH] did not mean to commit modifications to examples in r1438. Have set them back to how they were but for one small change to the popups.html example, which I give a hyperlink inside it to show off the new functionality git-svn-id: http://svn.openlayers.org/trunk/openlayers@1439 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/BaseLayers.html | 2 +- examples/popups.html | 23 ++++++----------------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/examples/BaseLayers.html b/examples/BaseLayers.html index be92269b42..6428110c7a 100644 --- a/examples/BaseLayers.html +++ b/examples/BaseLayers.html @@ -4,7 +4,7 @@ @@ -24,15 +24,7 @@ map.zoomToMaxExtent(); } - - function bar(e) { - alert("body"); - } - function foo(e) { - alert("yo"); - return true; - } - + function changer() { popup.setBackgroundColor("red"); popup.setSize(new OpenLayers.Size(100,600)); @@ -82,7 +74,6 @@ popup.setContentHTML("click me"); popup.setBackgroundColor("yellow"); popup.setOpacity(0.7); -// popup.events.register("mousedown", popup, onPopupMouseDown); markers.map.addPopup(popup); } else { markers.map.removePopup(popup); @@ -122,14 +113,12 @@
-
click to add Popup to map
+
click to add Popup to map
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 me -
+
marker.onscreen()?
+
click to destroy the popup from map