urbica / react-map-gl

React Component Library for Mapbox GL JS

Home Page:https://urbica.github.io/react-map-gl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple pbf source or style.json

lavrenkov-sketch opened this issue · comments

Multiple pbf source.
Hello, I would like to know abouth pbf source.
for MapGL component we use style.json source how to display other vector tiles on top of these styles, I tried to add one more style.json on top, but this is a bad idea and simply won't work, I would like to see how non-standard * .pbf tiles can be displayed on top of the finished MapGL map

in original mapbox you could use something like:

"sources": {
  "osm2vectortiles": {
    "type": "vector",
    "url": "https://osm2vectortiles.tileserver.com/v2.json"
  },
  "naturalearth": {
    "type": "vector",
    "maxzoom": 7,
    "tiles": [
       "http://naturalearthtiles.org/tiles/natural_earth.vector/{z}/{x}/{y}.pbf"
    ]
  }
},

roughly speaking, I need to select information from different servers that contain various information (for example, a map of a country, a map of gas pipelines)