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
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#map {
|
#map {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 512px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
background-color: blue;
|
background-color: blue;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-16
@@ -3,8 +3,8 @@
|
|||||||
<meta http-equiv="imagetoolbar" content="no"> <!--ie image gizmo OFF!-->
|
<meta http-equiv="imagetoolbar" content="no"> <!--ie image gizmo OFF!-->
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#map {
|
#map {
|
||||||
width: 400px;
|
width: 512px;
|
||||||
height: 400px;
|
height: 512px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -25,14 +25,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function bar(e) {
|
|
||||||
alert("body");
|
|
||||||
}
|
|
||||||
function foo(e) {
|
|
||||||
alert("yo");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function changer() {
|
function changer() {
|
||||||
popup.setBackgroundColor("red");
|
popup.setBackgroundColor("red");
|
||||||
popup.setSize(new OpenLayers.Size(100,600));
|
popup.setSize(new OpenLayers.Size(100,600));
|
||||||
@@ -82,7 +74,6 @@
|
|||||||
popup.setContentHTML("<a href='http://www.somethingconstructive.net' target='_blank'>click me</a>");
|
popup.setContentHTML("<a href='http://www.somethingconstructive.net' target='_blank'>click me</a>");
|
||||||
popup.setBackgroundColor("yellow");
|
popup.setBackgroundColor("yellow");
|
||||||
popup.setOpacity(0.7);
|
popup.setOpacity(0.7);
|
||||||
// popup.events.register("mousedown", popup, onPopupMouseDown);
|
|
||||||
markers.map.addPopup(popup);
|
markers.map.addPopup(popup);
|
||||||
} else {
|
} else {
|
||||||
markers.map.removePopup(popup);
|
markers.map.removePopup(popup);
|
||||||
@@ -122,14 +113,12 @@
|
|||||||
</head>
|
</head>
|
||||||
<body onload="init()">
|
<body onload="init()">
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
<div id="foo" style="background-color:purple" onclick="add()"> click to add Popup to map</div>
|
<div style="background-color:purple" onclick="add()"> click to add Popup to map</div>
|
||||||
<div style="background-color:green" onclick="addMarker()"> click to add a Marker with an AnchoredBubble popup</div>
|
<div style="background-color:green" onclick="addMarker()"> click to add a Marker with an AnchoredBubble popup</div>
|
||||||
<div style="background-color:blue" onclick="changer()"> click to modify popup's attributes</div>
|
<div style="background-color:blue" onclick="changer()"> click to modify popup's attributes</div>
|
||||||
<div style="background-color:red" onclick="remove()"> click to remove the popup from map</div>
|
<div style="background-color:red" onclick="remove()"> click to remove the popup from map</div>
|
||||||
<div style="background-color:grey" onclick="removelayer()"> click to remove the markers layer</div>
|
<div style="background-color:grey" onclick="removelayer()"> click to remove the markers layer</div>
|
||||||
<div id="yar" style="background-color:orange" onclick="alert(marker.onScreen())"> marker.onscreen()?</div>
|
<div style="background-color:orange" onclick="alert(marker.onScreen())"> marker.onscreen()?</div>
|
||||||
<div id="ar" style="background-color:yellow">
|
<div style="background-color:yellow" onclick="destroy()"> click to destroy the popup from map</div>
|
||||||
<a href='http://www.somethingconstructive.net' target='_blank'>click me</a>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user