CanvasOverlayer
Extends:
Direct Subclass:
initCanvasOverlayer based on mapboxgl-canvas
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
blurWidth: * |
|
public |
canvas: * |
|
public |
initTrackCtx: * |
|
public |
keepTrack: * |
|
public |
labelOn: * |
|
public |
lineColor: * |
|
public |
|
|
public |
redraw: * |
|
public |
shadow: * |
|
public |
trackCtx: * |
|
public |
trackLayer: * |
|
public |
tracks: *[] |
|
public |
xfield: * |
|
public |
yfield: * |
Method Summary
Public Methods | ||
public |
getTracks(): * |
|
public |
render cached tracks to line when map moved.. |
|
public |
setTracks(tracks: *array of track points.): * set tracks coordinates of overlayer. |
Private Methods | ||
private |
|
|
private |
init track ctx for each track segment rendering.. |
Inherited Summary
From class Overlayer | ||
public |
map: * |
|
public |
lnglat2pix(lng: *, lat: *): undefined[] use Global map or this.map instance to project |
|
public |
setMap(map: *): * |
|
private |
_init() to be overwrite in subClass |
Public Constructors
Public Members
public blurWidth: * source
public canvas: * source
public initTrackCtx: * source
public keepTrack: * source
public labelOn: * source
public lineColor: * source
public redraw: * source
public shadow: * source
public trackCtx: * source
public trackLayer: * source
public tracks: *[] source
public xfield: * source
public yfield: * source
Public Methods
public setTracks(tracks: *array of track points.): * source
set tracks coordinates of overlayer.
Params:
Name | Type | Attribute | Description |
tracks | *array of track points. |
Return:
* |
Private Methods
private _init(shadow: boolean, keepTrack: boolean): * source
to be overwrite in subClass
Override:
Overlayer#_initReturn:
* |