IvanSanchez / Leaflet.ImageOverlay.Rotated

Displays rotated/slanted image overlays in Leaflet
94 stars 24 forks source link

L.imageOverlay.rotated gives "is Not constructor error" #15

Open zicvic opened 5 years ago

zicvic commented 5 years ago

When using the lib like stated in the readme (see below), the following error occurs:

const overlay = Leaflet.imageOverlay.rotated("../office.png", topleft, topright, bottomleft, {
        opacity: 0.7,
        interactive: false
    }).addTo(mapRef)

image

Is it me doing something wrong or is something broken? Leaflet = 1.5.1