Created
October 22, 2012 15:57
-
-
Save psibi/3932219 to your computer and use it in GitHub Desktop.
Popup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setHTML(response){ | |
document.getElementById('nodelist').innerHTML = response.responseText; | |
var popup_info = response.responseText; | |
if (popup != null) { | |
popup.destroy(); | |
popup = null; | |
} | |
popup = new OpenLayers.Popup("Sample", | |
mouseloc, | |
new OpenLayers.Size(250,120), | |
popup_info, | |
null, | |
true); | |
popup.setBackgroundColor("#bcd2ee"); | |
// popup.setOpacity(.7); | |
map.addPopup(popup); | |
popup.events.register("click", map, popupDestroy); | |
} | |
function popupDestroy(e) { | |
popup.destroy(); | |
popup = null; | |
OpenLayers.Util.safeStopPropagation(e); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment