New answers tagged

0

Mapbox GL JS supports OGC WMS. however many people are generating dynamic on the fly vector tiles even with weather data. Mapbox just recently blogged about it with sample code. We've done vector tiles from geoserver or from POSTGIS and from tippecanoe on server


0

Better off using XYZ instead of WMTS from mapbox


1

To highlight all parts of a feature that is spread across tiles, Mapbox needs a way to associate features across tiles. Usually this is done via the id field in the vector tiles. When uploading a shapefile (or other data source) to Mapbox Studio, this is automatically done for you. If you're generating vector tiles yourself, e.g. with Tippecanoe, specify --...


0

You can use mapbox tiles and extract features from it using Get all the layers having "type":"symbol" Define a bounding box var bbox= [[x,y] ,[x,y]]; Query features from tiles with layer having all the layer extracted from step 1 var features = map.queryRenderedFeatures(e.point, { layers: ['place-town'] }); refer https://docs.mapbox.com/mapbox-gl-js/...


1

Tricky but works, You can merge multiple mbtiles to single mbtiles file then use: tileserver-gl {filename}.mbtiles to serve mbtiles as pbf (can launch multiple tileserver with different files but will need to configure that in your style) for pbf to raster: docker run --rm -itd --name rastermap -v $(pwd):/data -p 9090:80 klokantech/tileserver-gl -c ...


1

I have done this in two parts First, apply the filter property as: "filter": [ "<=", "depth", 500 ] Second,then in paint property of line "paint": { "line-color": ["case", ["==", [ "%", [ "to-number", [ "get", "depth" ] ], 100 ], 0], ...


0

The other options will work, but you can also do this in Google Earth Pro https://support.google.com/earth/answer/148099?hl=en


1

One possibility of doing this would be with the help of turf.js library. When adding newly drawn polygon, algorithm for detecting and creating possible holes goes like this: Convert newly created layer/polygon to GeoJSON and then to turf geometry. Iterate through all existing layers/polygons. Convert each layer/polygon to turf geometry and check if it ...


Top 50 recent answers are included