PopupsLayer.js

PopupsLayer()


constructor
Inherits from BaseLayer

PopupsLayer class is responsible for adding popups on the map

Options:
  • opacity(Number)The opacity of the layer. Values from 0 to 1 (Default: 1)
Parameter Type Description
options Object The PopupsLayer's options

addPopup()


method

Add a popup to the layer

Parameter Type Description
popup Popup The popup that will be added to the layer

removePopup()


method

Removes a popup from the layer

Parameter Type Description
popup Popup The popup that will be removed from the layer

removeAllPopups()


method

Removes all popups from the layer

setOpacity()


method

Sets the layers' opacity

Parameter Type Description
opacity Number The new opacity of the layer. Values from 0 to 1