Class: Layer ¶
Hierarchy ¶
any
↳
Layer
Table of contents ¶
Constructors ¶
Properties ¶
Methods ¶
- onMoveStart
- onMoving
- onMoveEnd
- onDragRotateStart
- onDragRotateEnd
- onResize
- onZoomStart
- onZooming
- onZoomEnd
- update
- getWorlds
- calcWitchWorld
- getClipMask
- setClipMask
- prepareToDraw
- isRendering
- draw
- drawOnInteracting
- getObjects
- clear
- clearObject
- getCamera
- getScene
- renderScene
- onAdd
- onRemove
- getEvents
Constructors ¶
constructor ¶
• new Layer(id
, source
, opts
): Layer
Parameters ¶
Name | Type |
---|---|
id | string |
source | SourceType |
opts | BaseLayerOptionType |
Returns ¶
Overrides ¶
maptalks.TileLayer.constructor
Defined in ¶
Properties ¶
type ¶
• type: string
Defined in ¶
_needsUpdate ¶
• _needsUpdate: boolean
= true
Defined in ¶
_coordCache ¶
• _coordCache: Object
= {}
Defined in ¶
layer ¶
• layer: WithNull
<BaseLayer
>
Defined in ¶
Methods ¶
onMoveStart ¶
▸ onMoveStart(): void
Returns ¶
void
Defined in ¶
onMoving ¶
▸ onMoving(): void
Returns ¶
void
Defined in ¶
onMoveEnd ¶
▸ onMoveEnd(): void
Returns ¶
void
Defined in ¶
onDragRotateStart ¶
▸ onDragRotateStart(): void
Returns ¶
void
Defined in ¶
onDragRotateEnd ¶
▸ onDragRotateEnd(): void
Returns ¶
void
Defined in ¶
onResize ¶
▸ onResize(): void
Returns ¶
void
Defined in ¶
onZoomStart ¶
▸ onZoomStart(): void
Returns ¶
void
Defined in ¶
onZooming ¶
▸ onZooming(): void
Returns ¶
void
Defined in ¶
onZoomEnd ¶
▸ onZoomEnd(): void
Returns ¶
void
Defined in ¶
update ¶
▸ update(): void
Returns ¶
void
Defined in ¶
getWorlds ¶
▸ getWorlds(): { world
: number
; offset
: number
; xmin
: number
; xmax
: number
}[]
Returns ¶
{ world
: number
; offset
: number
; xmin
: number
; xmax
: number
}[]
Defined in ¶
calcWitchWorld ¶
▸ calcWitchWorld(center
, worlds
): undefined
| number
Parameters ¶
Name | Type |
---|---|
center | number [] |
worlds | { world : number ; offset : number ; xmin : number ; xmax : number }[] |
Returns ¶
undefined
| number
Defined in ¶
getClipMask ¶
▸ getClipMask(): any
Returns ¶
any
Defined in ¶
setClipMask ¶
▸ setClipMask(mask
): void
Parameters ¶
Name | Type |
---|---|
mask | any |
Returns ¶
void
Defined in ¶
prepareToDraw ¶
▸ prepareToDraw(gl
, scene
): undefined
| false
Parameters ¶
Name | Type |
---|---|
gl | any |
scene | any |
Returns ¶
undefined
| false
Defined in ¶
isRendering ¶
▸ isRendering(): boolean
Returns ¶
boolean
Defined in ¶
draw ¶
▸ draw(gl
, view
, scene
, camera
, timeStamp
, context
): void
Parameters ¶
Name | Type |
---|---|
gl | any |
view | any |
scene | any |
camera | any |
timeStamp | any |
context | any |
Returns ¶
void
Defined in ¶
drawOnInteracting ¶
▸ drawOnInteracting(gl
, view
, scene
, camera
, event
, timeStamp
, context
): void
Parameters ¶
Name | Type |
---|---|
gl | any |
view | any |
scene | any |
camera | any |
event | any |
timeStamp | any |
context | any |
Returns ¶
void
Defined in ¶
getObjects ¶
▸ getObjects(): any
[]
Returns ¶
any
[]
Defined in ¶
clear ¶
▸ clear(): Layer
Returns ¶
Defined in ¶
clearObject ¶
▸ clearObject(): Layer
Returns ¶
Defined in ¶
getCamera ¶
▸ getCamera(): WithNull
<PerspectiveCamera
| OrthographicCamera
>
Returns ¶
WithNull
<PerspectiveCamera
| OrthographicCamera
>
Defined in ¶
getScene ¶
▸ getScene(): WithNull
<Scene
>
Returns ¶
WithNull
<Scene
>
Defined in ¶
renderScene ¶
▸ renderScene(context?
, layer?
): Layer
Parameters ¶
Name | Type |
---|---|
context? | any |
layer? | any |
Returns ¶
Defined in ¶
onAdd ¶
▸ onAdd(): Layer
Returns ¶
Defined in ¶
onRemove ¶
▸ onRemove(): Layer
Returns ¶
Defined in ¶
getEvents ¶
▸ getEvents(): Object
Returns ¶
Object
Name | Type |
---|---|
_zoomstart | () => void |
_zooming | () => void |
_zoomend | () => void |
_resize | () => void |
_movestart | () => void |
_moving | () => void |
_moveend | () => void |
_dragrotatestart | () => void |
_dragrotateend | () => void |