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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user