spatial-monorepo / editor/src / addOSMBuildingOutline
Function: addOSMBuildingOutline()
addOSMBuildingOutline(
map):void
Defined in: packages/editor/src/layers/osmBuildingOutline.ts:21
Adds the OSM building outline source + layer to the map. Safe to call multiple times — guards against double-add via getSource check.
Issue #989 (NF-59): tile.openstreetmap.org only ever serves raster PNG tiles — it has never been a vector tile endpoint. The source must be typed 'raster' to match, and the layer must be a 'raster' layer with matching paint properties. A 'vector' source pointed at this URL fails to parse as MVT on every tile request, so the outline silently never rendered.
Parameters
map
Map$1
Returns
void
