Do not display data:image/ src as text
This commit is contained in:
parent
408bbd81aa
commit
1cbf140f57
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ L.U.Icon.Default = L.U.Icon.extend({
|
||||||
var src = this._getIconUrl('icon');
|
var src = this._getIconUrl('icon');
|
||||||
if (src) {
|
if (src) {
|
||||||
// An url.
|
// An url.
|
||||||
if (src.indexOf('http') === 0 || src.indexOf('/') === 0) {
|
if (src.indexOf('http') === 0 || src.indexOf('/') === 0 || src.indexOf('data:image') === 0) {
|
||||||
this.elements.img = L.DomUtil.create('img', null, this.elements.container);
|
this.elements.img = L.DomUtil.create('img', null, this.elements.container);
|
||||||
this.elements.img.src = src;
|
this.elements.img.src = src;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue