(protected) new renderer.MapCanvasRenderer(map) [source]
Parameter | Type | Description |
---|---|---|
map
|
Map | map for the renderer |
Extends:
Methods
renderFrame() [source]
render layers in current frame
Returns:
Boolean: return false to cease frame loop_checkLayerRedraw(layer) [source]
check if need to call layer's draw/drawInteracting
Parameter | Type | Description |
---|---|---|
layer
|
Layer |
Returns:
Boolean:drawLayerCanvas() [source]
Renders the layers
initContainer() [source]
initialize container DOM of panels
isViewChanged() [source]
Is current map's state changed?
Returns:
Boolean:_frameLoop() [source]
Main frame loop
(inherited) offsetPlatform(offset) [source]
Move map platform with offset
Parameter | Type | Description |
---|---|---|
offset
|
Point |
Inherited From:
Returns:
this:(inherited) callInitHooks() [source]
Visit and call all the init hooks defined on Class and its parents.
Inherited From:
Returns:
Class: this(inherited) setOptions(options) [source]
Merges options with the default options of the object.
Parameter | Type | Description |
---|---|---|
options
|
Object | options to set |
Inherited From:
Returns:
Class: this(inherited) config(conf) [source]
1. Return object's options if no parameter is provided.
2. update an option and enable/disable the handler if a handler with the same name existed.
2. update an option and enable/disable the handler if a handler with the same name existed.
// Get marker's options;
var options = marker.config();
// Set map's option "draggable" to false and disable map's draggable handler.
map.config('draggable', false);
// You can update more than one options like this:
map.config({
'scrollWheelZoom' : false,
'doubleClickZoom' : false
});
Parameter | Type | Description |
---|---|---|
conf
|
Object | config to update |
Inherited From:
Returns:
Class: this(inherited) onConfig() [source]
Default callback when config is called