Changeset 346
- Timestamp:
- 05/24/06 22:09:33 (3 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Popup.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Popup/Anchored.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r335 r346 173 173 popup.map = this; 174 174 this.popups.push(popup); 175 var px = this.getLayerPxFromLonLat(popup.lonlat) 176 var popupDiv = popup.draw(px); 175 var popupDiv = popup.draw(); 177 176 if (popupDiv) { 178 177 popupDiv.style.zIndex = this.Z_INDEX_BASE['Popup'] + trunk/openlayers/lib/OpenLayers/Popup.js
r339 r346 82 82 */ 83 83 draw: function(px) { 84 if ((px == null) && (this.map != null)) { 85 px = this.map.getLayerPxFromLonLat(this.lonlat); 86 } 87 84 88 if (this.div == null) { 85 89 this.div = OpenLayers.Util.createDiv(this.id + "_div", trunk/openlayers/lib/OpenLayers/Popup/Anchored.js
r343 r346 40 40 */ 41 41 draw: function(px) { 42 if ((px == null) && (this.map != null)) { 43 px = this.map.getLayerPxFromLonLat(this.lonlat); 44 } 42 45 43 46 //calculate relative position
