GeoTIFF.parse function
jmbajo opened this issue · comments
Hi,
I am having problems using this plugin in leaflet.
Apparently this plugin uses a function called "parse" which theoretically should be in the geotiff library.
When I run the attached example code, it throws me an error that "GeoTIFF.parse" is not a function. The line error belongs to "leaflet-geotiff.js"
I am wondering if something has change in geotiff library that has broken compatibility.
Thanks for the info.
J
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"
integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
crossorigin=""></script>
<script src="geotiff.js/dist/geotiff.bundle.js"></script>
<script src="leaflet-geotiff/leaflet-geotiff.js"></script>
</head>
<body>
<style>
#mapid {height: 600px;}
</style>
<div id="mapid"> </div>
<script>
var mymap = L.map('mapid').setView([39.75621, -104.99404], 23);
var layer = L.leafletGeotiff("http://localhost:8888/mapas/demo.TIF").addTo(mymap);
</script>
</body>
</html>
I have this problem when using the 1.0.0-beta
releases of geotiff
. The problem is solved when I use 0.4.1
instead.