Open olafveerman opened 3 years ago
@olafveerman That is correct. The layer and source names cannot match an existing one. This could be validated in the frontend, but it is perhaps easier to run this through the validator.
Any layer id to be added must not be any one:
background
landcover_foliage
national_park
landcover_snow
industrial
schools
hospitals
cemeteries
parks
pitch
sand
water
waterway-river-canal
barrier_line-land-polygon
barrier_line-land-line
aeroway-polygon
aeroway-runway
aeroway-taxiway
ferries
road-construction
road-sidewalks
road-path
road-steps
road-trunk_link
road-motorway_link
road-pedestrian
road-service-link-track
road-street_limited
road-street
road-secondary-tertiary
road-primary
road-trunk
road-motorway
road-rail
road-subway
admin-3-4-boundaries
wb-boundaries-bg
wb-boundaries
wb-boundaries-disputed
admin-2-boundaries-bg
admin-2-boundaries
admin-2-boundaries-dispute
waterway-label
water-label
poi-scalerank1
airport-label
ferry-label
road-label-small
road-label-medium
road-label-large
place-islets-archipelago-aboriginal
place-neighbourhood
place-suburb
place-hamlet
place-village
place-town
place-islands
place-city-sm
place-city-md
place-city-lg
marine-label-sm-ln
marine-label-sm-pt
marine-label-md-ln
marine-label-md-pt
marine-label-lg-ln
marine-label-lg-pt
state-label-sm
state-label-md
state-label-lg
country-label-sm
country-label-md
country-label-lg
Any source id to be added must not be any one:
composite
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:
Layer:
:x: Interestingly enough
console.log(theMap.getLayer('schools'))
returns this:My guess is that the layer name clashes with the layer name in the base style. Any thoughts @danielfdsilva ?