a couple of todos

This commit is contained in:
Mourner 2011-01-12 11:44:48 +02:00
parent 3d008eb8f5
commit 9762be03de
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ L.Popup = L.Class.extend({
this._initLayout();
this._container.style.opacity = '0';
}
//TODO accept DOM nodes along with HTML strings
this._contentNode.innerHTML = this._content;
map._panes.popupPane.appendChild(this._container);

View File

@ -1,6 +1,7 @@
L.Map.include({
openPopup: function(latlng, content, offset) {
//TODO ability to pass popup options
if (!this._popup) {
this._popup = new L.Popup();