Skip to main content

BwMap | bw-map

Overview

BwMap is a wrapper around leaflet.

Usage

BasicExample

  <bw-map style="height: 500px" zoom="13" center="41.3917159, -82.1210002">
<bw-map-search></bw-map-search>
</bw-map>

Overlays

When using BwMap in an overlay, such as BwModal or BwDrawer, you will have to defer the rendering of the component until it's in the viewport. You can achieve this using the init and destroy props on our overlay components, or using the OverlayDirective + <ng-template> if you are in an angular app.

Properties

PropertyAttributeDescriptionTypeDefault
centercenterInitial center coordinates of the map in format "latitude,longitude"[number, number] | string[0, 0]
zoomzoomInitial zoom level of the mapnumber13

Events

EventDescriptionType
readyEvent emitted when the map is readyCustomEvent<void>

Methods

setMarker(lat: number, lng: number) => Promise<void>

Set a marker at the given coordinates

Parameters

NameTypeDescription
latnumber
lngnumber

Returns

Type: Promise<void>


© 2025 United Systems & Software - All Rights Reserved.