Skip to contents

Update the OSM-Buildings Data

Usage

setBuildingData(map, data)

Arguments

map

A map widget object created from leaflet.

data

A GeoJSON object containing Polygon features representing the buildings. The properties of these polygons can include attributes like height, color, roofColor, and others as specified in the OSM Buildings documentation.

See also

Other OSM-Buildings Plugin: addBuildings(), setBuildingStyle(), updateBuildingTime()