mapbox tile as a datasource
See original GitHub issueIs it possible to use data from mapbox tiles directly as a datasource for a component layer?
This would be really nice for things like buildings or enterprise boundaries that are already part of the tiles. e.g., for buildings, from the mapbox docs you can simply reference the building
source layer:
map.addLayer({
'id': '3d-buildings',
'source': 'composite',
'source-layer': 'building',
'filter': ['==', 'extrude', 'true'],
'type': 'fill-extrusion',
'minzoom': 15,
'paint': {
'fill-extrusion-color': '#aaa',
'fill-extrusion-height': {
'type': 'identity',
'property': 'height'
},
'fill-extrusion-base': {
'type': 'identity',
'property': 'min_height'
},
'fill-extrusion-opacity': .6
}
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
Mapbox data | Help
Mapbox tilesets offer developers access to a wide variety of map data, including road networks, place names, points of interest, satellite and aerial ......
Read more >Tileset sources | Mapbox Tiling Service
A tileset source is raw geographic data formatted as line-delimited GeoJSON and uploaded to Mapbox. Tileset sources are necessary to use Mapbox Tiling...
Read more >Vector tiles introduction | Tilesets - Mapbox docs
Vector tiles make huge maps fast while offering full design flexibility. The vector tile format is the vector data equivalent of raster image...
Read more >Sources | Style Specification | Mapbox GL JS
A map or layer source states which data the map should display. Specify the type of source with the "type" property, which must...
Read more >Tilesets | Mapbox
Mapbox tilesets contain all the map data that appears in Mapbox default styles. Mapbox Satellite is a data source for the Mapbox Satellite...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any updates on this ?
I’m trying to understand if deck.gl can be used as a full replacement of mapbox-gl capabilities, and thus if we can show vector tiles on deck.gl
@cyrilchapon , @williaster
Not sure if either of you are still thinking about this, but for anyone else who ends up here looking for an answer to this question:
It looks like there’s an experiment TileLayer available https://github.com/uber/deck.gl/blob/master/modules/experimental-layers/src/tile-layer/tile-layer.md
I haven’t tried it yet, but it looks like it fits pretty much perfectly with what I need. Hope it helps