0

I have uploaded in my tile server a mbtile which I have created from a shapefile. I am trying to display this using the mapbox style but I am not sure what parameters to pass in the source-layer The source is like

    "data_vector":{
    "type": "vector",
    "tiles": [
      "http://localhost:8080/data/KingCo_2000_Census_BlockGroups/{z}/{x}/{y}.pbf"]
  }

The layer is:

{
      "id": "KingCo_2000_Census_BlockGroupsgeojson",
      "type": "polygon",
      "source": "data_vector",
      "source-layer": "KingCo_2000_Census_BlockGroupsgeojson",
      "filter": [
        ">",
        "households",
        1
    ],
      "paint": {
        "fill-color": "rgba(0, 0, 255, 0.7)"
      }
    },

Where do I get the info related to the source-layer parameter?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.