Category : mapbox-gl-js

I have many georaster files ".geotiff" and I would like add them in my html page with MapBox library (https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.js, https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.css) Until now I added mbtiles files with following code: map.addSource(‘file’, { ‘type’: ‘vector’, ’tiles’: [‘https://tileserver/file/{z}/{x}/{y}.pbf’], ‘minzoom’: 1, ‘maxzoom’: 20 }); map.addLayer({‘id’: ‘file’, ‘type’: ‘fill’, ‘source’: ‘file’, ‘source-layer’: ‘file’, ‘filter’: ["==", ‘value’, livello.toString()], ‘paint’: { ..

Read more