developmentseed / developmentseed/aep
Schools not loading
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
## 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
:heavy_check_mark: The tiles themselves are working: https://aep-tiles.staging.derilinx.com/tiles/ke/schools/mapbox.html
:heavy_check_mark: The metadata.json seems ok and in line with the Mapbox config: https://aep-tiles.staging.derilinx.com/tiles/ke/schools/metadata.json
Source:
```json
"schools": {
"tiles": [
"https://aep-tiles.staging.derilinx.com/tiles/ke/schools/{z}/{x}/{y}.pbf"
],
"type": "vector"
}
```
Layer:
``` json
{
"id": "schools",
"type": "circle",
"source": "schools",
"source-layer": "data_layer"
}
```
:x: 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 ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.