Skip to content

Schools not loading #29

@olafveerman

Description

@olafveerman

What's wrong

When the layer Schools is enabled, nothing shows up on the map. Also no error message in the console, nor any failed tile requests in the network tab.

Troubleshooting

✔️ The tiles themselves are working: https://aep-tiles.staging.derilinx.com/tiles/ke/schools/mapbox.html

✔️ The metadata.json seems ok and in line with the Mapbox config: https://aep-tiles.staging.derilinx.com/tiles/ke/schools/metadata.json

Source:

    "schools": {
      "tiles": [
        "https://aep-tiles.staging.derilinx.com/tiles/ke/schools/{z}/{x}/{y}.pbf"
      ],
      "type": "vector"
    }

Layer:

    {
      "id": "schools",
      "type": "circle",
      "source": "schools",
      "source-layer": "data_layer"
    }

❌ Interestingly enough console.log(theMap.getLayer('schools')) returns this:

filter: (3) ["all", Array(3), Array(3)]
id: "schools"
layout: di {_properties: wi, _values: {…}}
maxzoom: undefined
metadata: {mapbox:group: "a636a5194689e7c1dede11bf3cd8dcac"}
minzoom: undefined
paint: di {_properties: wi, _values: {…}}
source: "composite"
sourceLayer: "landuse"
type: "fill"
visibility: "visible"

My guess is that the layer name clashes with the layer name in the base style. Any thoughts @danielfdsilva ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions