give popups a reference back to map

git-svn-id: http://svn.openlayers.org/trunk/openlayers@335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-25 00:06:35 +00:00
parent b55debdd48
commit 4dcd798e59

View File

@@ -170,6 +170,7 @@ OpenLayers.Map.prototype = {
* @param {OpenLayers.Popup} popup
*/
addPopup: function(popup) {
popup.map = this;
this.popups.push(popup);
var px = this.getLayerPxFromLonLat(popup.lonlat)
var popupDiv = popup.draw(px);