diff --git a/src/leaflet/icon/GenericIcon.ts b/src/leaflet/icon/GenericIcon.ts index 3f5bbb4..d7a51db 100644 --- a/src/leaflet/icon/GenericIcon.ts +++ b/src/leaflet/icon/GenericIcon.ts @@ -75,7 +75,7 @@ export class GenericIcon extends DivIcon { this._image.src = url; // @ts-ignore - super._setIconStyles.call(div, 'icon'); + super._setIconStyles(div, 'icon'); div.appendChild(this._image); div.classList.add('marker');