Class: RasterLayer

bemap.RasterLayer(options)

Layer for raster tile sources (satellite, custom tiles).

Constructor

new RasterLayer(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
url String Raster tile URL template with {z}/{x}/{y}.
tileSize Number Tile size in pixels (default: 256).
opacity Number Layer opacity 0-1 (default: 1).
attribution String Attribution text.
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