diff --git a/src/layer/marker/DivIcon.js b/src/layer/marker/DivIcon.js index 5e0ffbf1..5766fd72 100644 --- a/src/layer/marker/DivIcon.js +++ b/src/layer/marker/DivIcon.js @@ -11,8 +11,8 @@ L.DivIcon = L.Icon.extend({ createIcon: function () { var div = document.createElement('div'); - if (this.options.innerHTML) { - div.innerHTML = this.options.innerHTML; + if (this.options.html) { + div.innerHTML = this.options.html; } this._setIconStyles(div, 'icon'); return div;