Class: default
The main pmtile custom source
Param
Hierarchy
-
VectorTileSourceImpl
↳
default
Constructors
constructor
• new default(...args
): default
Parameters
Name | Type |
---|---|
...args | [id: string, implementation: PmTilesOptions, dispatcher: any, eventedParent: any] |
Returns
Overrides
VectorTileSourceImpl.constructor
Defined in
Properties
_collectResourceTiming
• _collectResourceTiming: boolean
= false
Defined in
_dataType
• _dataType: string
Defined in
_implementation
• _implementation: PmTilesOptions
Defined in
_instance
• _instance: PMTiles
Defined in
_loaded
• _loaded: boolean
Defined in
_protocol
• _protocol: Protocol
Defined in
_tileJSONRequest
• _tileJSONRequest: undefined
| Promise
<any
>
Defined in
_tileWorkers
• _tileWorkers: Object
Index signature
▪ [string: string
]: any
Defined in
attribution
• attribution: undefined
| string
Defined in
contentType
• contentType: string
Defined in
dispatcher
• dispatcher: any
Defined in
fire
• fire: Function
Defined in
header
• header: any
Defined in
id
• id: string
Defined in
loadTile
• loadTile: (tile
: Tile
, callback
: Callback
<void
>) => void
Type declaration
▸ (tile
, callback
): void
Parameters
Name | Type |
---|---|
tile | Tile |
callback | Callback <void > |
Returns
void
Defined in
map
• map: MapboxMap
Defined in
maxTileCacheSize
• maxTileCacheSize: undefined
| number
Defined in
maxzoom
• maxzoom: number
Defined in
minTileCacheSize
• minTileCacheSize: undefined
| number
Defined in
minzoom
• minzoom: number
Defined in
promoteId
• promoteId: undefined
| string
Defined in
reparseOverscaled
• reparseOverscaled: boolean
Defined in
roundZoom
• roundZoom: boolean
= true
Defined in
scheme
• scheme: string
Defined in
scope
• scope: undefined
| string
Defined in
setEventedParent
• setEventedParent: any
Defined in
tileBounds
• tileBounds: undefined
| TileBounds
Defined in
tileSize
• tileSize: number
Defined in
tileType
• tileType: TileType
Defined in
tiles
• tiles: string
[]
Defined in
type
• type: string
= 'vector'
Defined in
SOURCE_TYPE
▪ Static
SOURCE_TYPE: string
= SOURCE_TYPE
Defined in
Methods
hasTile
▸ hasTile(tileID
): boolean
Parameters
Name | Type |
---|---|
tileID | TileID |
Returns
boolean
Defined in
load
▸ load(callback?
): void
Parameters
Name | Type |
---|---|
callback? | Callback <void > |
Returns
void
Defined in
loadRasterTile
▸ loadRasterTile(tile
, callback
): void
Parameters
Name | Type |
---|---|
tile | Tile |
callback | Callback <void > |
Returns
void
Defined in
loadRasterTileData
▸ loadRasterTileData(tile
, data
): void
Parameters
Name | Type |
---|---|
tile | Tile |
data | any |
Returns
void
Defined in
loadVectorTile
▸ loadVectorTile(tile
, callback
): void
Parameters
Name | Type |
---|---|
tile | Tile |
callback | Callback <void > |
Returns
void
Defined in
loaded
▸ loaded(): boolean
Returns
boolean
Defined in
zoomToExtent
▸ zoomToExtent(): void
Returns
void
Defined in
getMetadata
▸ getMetadata(url
): Promise
<any
>
Parameters
Name | Type | Description |
---|---|---|
url | string | The pmTiles URL |
Returns
Promise
<any
>
A Json object of the PmTile's metadata