IvanSanchez / Leaflet.ImageOverlay.Rotated

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

Leaflet 1.7.0 - Saying .rotated is not a function! #19

Open BobbyRuby opened 8 months ago

BobbyRuby commented 8 months ago

var topleft = L.latLng(40.52256691873593, -3.7743186950683594), topright = L.latLng(40.5210255066156, -3.7734764814376835), bottomleft = L.latLng(40.52180437272552, -3.7768453359603886); var overlay = L.imageOverlay.rotated(".\common\5A09_NUM_FTG.tif", topleft, topright, bottomleft, { opacity: 0.4, interactive: true, attribution: "&copy; <a href='http://www.ign.es'>Instituto Geográfico Nacional de España</a>" }).addTo(map);

Not working... I'm developing an engineering platform for my company. Just don't understand why this won't work.

load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2 Uncaught TypeError: L.imageOverlay.rotated is not a function at HTMLDocument. (post.php?post=619&action=edit:9500:31) at e (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)

IvanSanchez commented 8 months ago

Can you publish a fiddle/codepen/plunkr that displays this behaviour?