question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mapbox tile as a datasource

See original GitHub issue

Is 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

7reactions
cyrilchaponcommented, Jul 16, 2018

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

1reaction
Harrisandwichcommented, Nov 2, 2018

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found