Class: BuildingsLayer

bemap.BuildingsLayer(options)

Layer for 3D building extrusion. MapLibre only.

Constructor

new BuildingsLayer(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
sourceId String Source ID containing building data.
sourceLayer String Source layer name (for vector tiles).
heightProperty String Property name for building height (default: 'height').
baseHeightProperty String Property for base height (default: 'min_height').
color String Building color (default: '#aaa').
opacity Number Building opacity (default: 0.6).
minZoom Number Minimum zoom to show buildings (default: 14).
Source:

Extends

Members

(protected) base

Inherited From:
Source:

(protected) map

Inherited From:
Source:

(protected) maxZoom

maximal zoom level
Inherited From:
Source:

(protected) minZoom

minimal zoom level
Inherited From:
Source:

(protected) name

Inherited From:
Source:

(protected) native

Inherited From:
Source:

(protected) options

Inherited From:
Source:

(protected) transparent :Boolean

Type:
  • Boolean
Inherited From:
Source:

(protected) visible

Inherited From:
Source:

Methods

clear() → {bemap.Layer}

Clear all features from this layer. Delegates to map.clearLayer(this).
Overrides:
Source:
Returns:
this
Type
bemap.Layer

isVisible() → {boolean}

Return the visibility of the layer.
Inherited From:
Source:
Returns:
visible.
Type
boolean

onGetFeatureInfo(options) → {bemap.Listener}

Set get feature info call back.
Parameters:
Name Type Description
options object options.
Properties
Name Type Description
beforeCallback function callback called at data reception and before display the popup.
afterCallback function callback called after display the popup.
Inherited From:
Source:
Returns:
listener;
Type
bemap.Listener

remove() → {bemap.Layer}

Remove the layer from the map.
Inherited From:
Source:
Returns:
this.
Type
bemap.Layer

setVisible() → {bemap.Layer}

Set the visibility of the layer.
Parameters:
Name Type Description
visible. boolean
Inherited From:
Source:
Returns:
this;
Type
bemap.Layer

setZIndex() → {boolean}

Set the visibility of the layer.
Parameters:
Name Type Description
zIndex. boolean
Inherited From:
Source:
Returns:
zIndex.
Type
boolean