Skip to content

Class: Layer

Hierarchy

  • any

    Layer

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Layer(id, source, opts): Layer

Parameters

NameType
idstring
sourceSourceType
optsBaseLayerOptionType

Returns

Layer

Overrides

maptalks.TileLayer.constructor

Defined in

maptalks/src/layer.ts:260

Properties

type

type: string

Defined in

maptalks/src/layer.ts:253


_needsUpdate

_needsUpdate: boolean = true

Defined in

maptalks/src/layer.ts:254


_coordCache

_coordCache: Object = {}

Defined in

maptalks/src/layer.ts:255


layer

layer: WithNull<BaseLayer>

Defined in

maptalks/src/layer.ts:256

Methods

onMoveStart

onMoveStart(): void

Returns

void

Defined in

maptalks/src/layer.ts:300


onMoving

onMoving(): void

Returns

void

Defined in

maptalks/src/layer.ts:307


onMoveEnd

onMoveEnd(): void

Returns

void

Defined in

maptalks/src/layer.ts:311


onDragRotateStart

onDragRotateStart(): void

Returns

void

Defined in

maptalks/src/layer.ts:318


onDragRotateEnd

onDragRotateEnd(): void

Returns

void

Defined in

maptalks/src/layer.ts:324


onResize

onResize(): void

Returns

void

Defined in

maptalks/src/layer.ts:330


onZoomStart

onZoomStart(): void

Returns

void

Defined in

maptalks/src/layer.ts:334


onZooming

onZooming(): void

Returns

void

Defined in

maptalks/src/layer.ts:338


onZoomEnd

onZoomEnd(): void

Returns

void

Defined in

maptalks/src/layer.ts:345


update

update(): void

Returns

void

Defined in

maptalks/src/layer.ts:349


getWorlds

getWorlds(): { world: number ; offset: number ; xmin: number ; xmax: number }[]

Returns

{ world: number ; offset: number ; xmin: number ; xmax: number }[]

Defined in

maptalks/src/layer.ts:355


calcWitchWorld

calcWitchWorld(center, worlds): undefined | number

Parameters

NameType
centernumber[]
worlds{ world: number ; offset: number ; xmin: number ; xmax: number }[]

Returns

undefined | number

Defined in

maptalks/src/layer.ts:411


getClipMask

getClipMask(): any

Returns

any

Defined in

maptalks/src/layer.ts:429


setClipMask

setClipMask(mask): void

Parameters

NameType
maskany

Returns

void

Defined in

maptalks/src/layer.ts:502


prepareToDraw

prepareToDraw(gl, scene): undefined | false

Parameters

NameType
glany
sceneany

Returns

undefined | false

Defined in

maptalks/src/layer.ts:511


isRendering

isRendering(): boolean

Returns

boolean

Defined in

maptalks/src/layer.ts:715


draw

draw(gl, view, scene, camera, timeStamp, context): void

Parameters

NameType
glany
viewany
sceneany
cameraany
timeStampany
contextany

Returns

void

Defined in

maptalks/src/layer.ts:723


drawOnInteracting

drawOnInteracting(gl, view, scene, camera, event, timeStamp, context): void

Parameters

NameType
glany
viewany
sceneany
cameraany
eventany
timeStampany
contextany

Returns

void

Defined in

maptalks/src/layer.ts:727


getObjects

getObjects(): any[]

Returns

any[]

Defined in

maptalks/src/layer.ts:731


clear

clear(): Layer

Returns

Layer

Defined in

maptalks/src/layer.ts:746


clearObject

clearObject(): Layer

Returns

Layer

Defined in

maptalks/src/layer.ts:750


getCamera

getCamera(): WithNull<PerspectiveCamera | OrthographicCamera>

Returns

WithNull<PerspectiveCamera | OrthographicCamera>

Defined in

maptalks/src/layer.ts:764


getScene

getScene(): WithNull<Scene>

Returns

WithNull<Scene>

Defined in

maptalks/src/layer.ts:772


renderScene

renderScene(context?, layer?): Layer

Parameters

NameType
context?any
layer?any

Returns

Layer

Defined in

maptalks/src/layer.ts:780


onAdd

onAdd(): Layer

Returns

Layer

Defined in

maptalks/src/layer.ts:793


onRemove

onRemove(): Layer

Returns

Layer

Defined in

maptalks/src/layer.ts:805


getEvents

getEvents(): Object

Returns

Object

NameType
_zoomstart() => void
_zooming() => void
_zoomend() => void
_resize() => void
_movestart() => void
_moving() => void
_moveend() => void
_dragrotatestart() => void
_dragrotateend() => void

Defined in

maptalks/src/layer.ts:819

Released under the MIT License.