Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoTIFF.parse function #23

Open
jmbajo opened this issue Oct 17, 2018 · 1 comment
Open

GeoTIFF.parse function #23

jmbajo opened this issue Oct 17, 2018 · 1 comment

Comments

@jmbajo
Copy link

jmbajo commented Oct 17, 2018

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/[email protected]/dist/leaflet.css"
      integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
      crossorigin=""/>

      <script src="https://unpkg.com/[email protected]/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>
@ghost
Copy link

ghost commented Aug 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant