Merge pull request #436 from jderrough/master
Marker._map is undefined in Marker.bindPopup()
This commit is contained in:
commit
e087a59f0c
@ -5,7 +5,9 @@
|
||||
L.Marker.include({
|
||||
openPopup: function () {
|
||||
this._popup.setLatLng(this._latlng);
|
||||
this._map.openPopup(this._popup);
|
||||
if (this._map) {
|
||||
this._map.openPopup(this._popup);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user