04 · Style spec
A raster OSM basemap with a GeoJSON polygon on top. Buttons swap the fill and stroke colours at runtime — no layer is re-added.
Full source: 04-style-spec.ts
midtown.setStyle({ fillColor: '#f43f5e', color: '#f43f5e' })
// or, on a VectorTileMapLayer:
map.setPaintProperty('roads', 'line-color', '#0ea5e9')