Class: PMTilesLayer

bemap.PMTilesLayer(options)

Layer for PMTiles vector tile sources. Handles PMTiles protocol registration and authenticated access.

Constructor

new PMTilesLayer(options)

Parameters:
Name Type Description
options Object See below.
Properties
Name Type Description
url String PMTiles file URL (e.g. 'https://server.com/tiles.pmtiles').
style String Style JSON URL or object for rendering the vector tiles.
token String Authentication token (e.g. JWT) sent as X-Session-Token header.
tokenHeader String Custom header name for authentication (default: 'X-Session-Token').
sourceName String Source name used in the style (default: 'tiles').
maxZoom Number Max zoom level for the source (default: 14).
glyphs String URL template for font glyphs.
Source:

Extends

Members

(protected) base

Inherited From:
Source:

glyphs :String

@protected
Type:
  • String
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:

pmtilesMaxZoom :Number

@protected
Type:
  • Number
Source:

sourceName :String

@protected
Type:
  • String
Source:

style :Object|String

@protected
Type:
  • Object | String
Source:

token :String

@protected
Type:
  • String
Source:

tokenHeader :String

@protected
Type:
  • String
Source:

(protected) transparent :Boolean

Type:
  • Boolean
Inherited From:
Source:

url :String

@protected
Type:
  • String
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