we should really be sure that this.lonlat is set too.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@348 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-25 02:24:48 +00:00
parent 53f59f25ea
commit 79295569a3
2 changed files with 8 additions and 4 deletions

View File

@@ -81,8 +81,10 @@ OpenLayers.Popup.prototype = {
* @type DOMElement
*/
draw: function(px) {
if ((px == null) && (this.map != null)) {
px = this.map.getLayerPxFromLonLat(this.lonlat);
if (px == null) {
if ((this.lonlat != null) && (this.map != null)) {
px = this.map.getLayerPxFromLonLat(this.lonlat);
}
}
if (this.div == null) {