Last updated

API / geotoolkit / map / layers / Heatmap / Heatmap

Class: Heatmap

layers.Heatmap.Heatmap

The Heatmap layer is a visualization used to depict the intensity of data at geographical points (geotoolkit.map.features.Point features). Use vector data source to add features to the layer.

Example

import {Heatmap} from '@int/geotoolkit/map/layers/Heatmap';
import {GeoJSON} from '@int/geotoolkit/map/layers/GeoJSON';
const layer = new Heatmap({
'source': new GeoJSON({ // use geojson formatted file as a data source
'url': './data/points.json' // file url
})
});

Example

const layer = new Heatmap({
'weight': 'magnitude', // use feature attribute as weight
'radius': () => map.getZoomLevel() > 5 ? 10 : 15 // adjust value on-the-fly
});

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
alphanumberThe alpha of the layer
colorproviderColorProviderColor provider for heatmap colors interpolation (for 0-1 values)
colorprovider-maxnumber
colorprovider-minnumber
colorprovider-scaleKnownScales
cssclassstringThe css class name of this node
idstring | numberId of the node, its a unique identifier
limitsRectLimits of this layer
limits-heightnumberHeight
limits-readonlybooleanReadonly
limits-widthnumberWidth
limits-xnumberLeft
limits-ynumberTop
maxintensitynumberHeatmap maximum intensity or a callback that returns current value. If not set, will be calculated automatically based on current features
modeModeHeatmap calculation mode, see enum for details
namestringName of the node. It is often used for debugging purposes or to simplify queries
radiusnumberHeatmap radius (in px) or a callback that returns current radius value
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
sourceAbstractSourceThe layer data source
source-systemstringInitial data coordinate system
source-urlstringData server url
systemGeodeticSystemCoordinate system this layer's data is in
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
urlstringServer url
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
weightstringField name for features' weight value (if needed) or a (feature) => weight callback
z-indexnumberDefine node z-index

Contents

Constructors

new Heatmap(options)

new Heatmap(options?)

Parameters

Name Type Description
Optional optionsOptionsheatmap options

Overrides

AbstractFeatureLayer.constructor

Methods

addCssClass

addCssClass(cssclass): Heatmap

Adds new css class to node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): Heatmap

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.addInvalidateHandler


calculateDefaultModelLimits

Protected calculateDefaultModelLimits(data?): Rect

Returns default model limits (based on the map coordinate system)

Parameters

Name Type Description
Optional dataAbstractFeature[] | Iterator<AbstractFeature>feature data changed (for feature layers), nothing otherwise

Returns

Rect

Inherited from

AbstractFeatureLayer.calculateDefaultModelLimits


checkCollision

checkCollision(context): boolean

Check if this node is within the area being rendered by the context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if object is inside of renderable area

Inherited from

AbstractFeatureLayer.checkCollision


clearCache

clearCache(): Heatmap

Clear cache

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.clearCache


clone

clone(): Node

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

Node

clone

Inherited from

AbstractFeatureLayer.clone


connectStyle

connectStyle(style, type, callback): Heatmap

Connects style.

This convenience method subscribes a listener to given style for the specified type.
And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): Heatmap

Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.

Parameters

Name Type Description
srcAbstractLayerSource to copy from
Optional deepCopybooleandeep copy

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): Heatmap

Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.disconnectStyle


dispose

dispose(): void

Disposes this layer, once disposed it should not be used anymore.

Returns

void

Inherited from

AbstractFeatureLayer.dispose


enableEventPropagation

enableEventPropagation(enable): Heatmap

Enable event propagation from the node hierarchy from bottom to top

This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance.

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) => {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.enableEventPropagation


execute

execute(delegate): Heatmap

Executes delegate and return the result. It allows us to keep all initialization calls in one place,
and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: Heatmap) => voidFunction to execute

Returns

Heatmap

The result if any or this

Inherited from

AbstractFeatureLayer.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: Heatmap) => T

Returns

T

Inherited from

AbstractFeatureLayer.execute


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache cache strategy

Inherited from

AbstractFeatureLayer.getCache


getClassName

getClassName(): string

Returns

string

Inherited from

AbstractFeatureLayer.getClassName


getColorProvider

getColorProvider(): ColorProvider

Returns current heatmap color provider

Returns

ColorProvider


getCoordinateSystem

getCoordinateSystem(): AbstractSystem

Return coordinate system for this layer

Returns

AbstractSystem

Inherited from

AbstractFeatureLayer.getCoordinateSystem


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

AbstractFeatureLayer.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

AbstractFeatureLayer.getCssClasses


getDataSource

getDataSource(): AbstractSource

Returns current data source

Returns

AbstractSource

source

Inherited from

AbstractFeatureLayer.getDataSource


getDefaultModelLimits

getDefaultModelLimits(): Rect

Gets calculated model limits

Returns

Rect

limits calculated model limits

Inherited from

AbstractFeatureLayer.getDefaultModelLimits


getFeatureById

getFeatureById(id): AbstractFeature

Gets feature by feature id.

Parameters

Name Type Description
idstring | numberfeature identifier

Returns

AbstractFeature

feature if found; null otherwise

Inherited from

AbstractFeatureLayer.getFeatureById


getFeatures

getFeatures(filter?): Iterator<AbstractFeature>

Gets features iterator

Parameters

Name Type Description
Optional filterQuery | (feature: AbstractFeature) => booleanfeatures query filter.

Returns

Iterator<AbstractFeature>

feature iterator (over all features if filter is null)

Inherited from

AbstractFeatureLayer.getFeatures


getGeometryToText

getGeometryToText(feature): IGeometryToText

Gets feature_geometry-to-text_anchor_position adapter

Parameters

Name Type Description
featureAbstractFeaturefeature to get adapter for

Returns

IGeometryToText

Overrides

AbstractFeatureLayer.getGeometryToText


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

AbstractFeatureLayer.getId


getLayerAlpha

getLayerAlpha(): number

Return a the alpha of the layer between 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0.

Returns

number

alpha alpha

Inherited from

AbstractFeatureLayer.getLayerAlpha


getMapCoordinateSystem

getMapCoordinateSystem(): AbstractSystem

Return a map coordinate system

Returns

AbstractSystem

Inherited from

AbstractFeatureLayer.getMapCoordinateSystem


getMaxIntensity

getMaxIntensity(): number | IntensityCallback

Returns maximum intensity value (or a callback for it). If not set, returns calculated value

Returns

number | IntensityCallback


getMode

getMode(): Mode

Returns heatmap calculation mode

Returns

Mode


getModelLimits

getModelLimits(): Rect

Gets user defined model limits if set; calculated model limits otherwise

Returns

Rect

limits user defined or calculated model limits

Inherited from

AbstractFeatureLayer.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

AbstractFeatureLayer.getName


getOptions

getOptions(): Options

Gets options

Returns

Options

options options

Inherited from

AbstractFeatureLayer.getOptions


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

AbstractFeatureLayer.getParent


getProperties

getProperties(): OptionsOut

Returns all the properties pertaining to this object

Returns

OptionsOut

the properties to set

Overrides

AbstractFeatureLayer.getProperties


getProperty

getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

AbstractFeatureLayer.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

AbstractFeatureLayer.getPropertyKeys


getRadius

getRadius(): number | RadiusCallback

Returns heatmap radius (or a callback for it)

Returns

number | RadiusCallback


getRoot

getRoot(): Node

Returns root node.
If node doesn't have parent then it returns itself.

Returns

Node

the root node

Inherited from

AbstractFeatureLayer.getRoot


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

AbstractFeatureLayer.getSceneTransform


getServerURL

getServerURL(): string | string[]

Gets the server url from the layer source

Returns

string | string[]

Inherited from

AbstractFeatureLayer.getServerURL


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

AbstractFeatureLayer.getTag


getTooltipFormatter

getTooltipFormatter(): Formatter

Returns the format function to use for the tooltip info (null if tooltips are not visible)

Returns

Formatter

Inherited from

AbstractFeatureLayer.getTooltipFormatter


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

AbstractFeatureLayer.getVisible


getVisibleModelLimits

getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

AbstractFeatureLayer.getVisibleModelLimits


getWeightField

getWeightField(): string | WeightCallback

Returns current weight field name or a callback for it (if exists, null otherwise)

Returns

string | WeightCallback


getWorldTransform

getWorldTransform(): Transformation

getWorldTransform retrieves the local transformation of the inner node coordinates to parent coordinates.

Returns

Transformation

the world transform.

Inherited from

AbstractFeatureLayer.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

AbstractFeatureLayer.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

AbstractFeatureLayer.hasCssClass


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

AbstractFeatureLayer.hasEventListener


hitTest

hitTest(pt, radius?): (AbstractNode | AbstractFeature)[]

Performs selection of the data with its device coordinates. Returns null, if no data available but will be loaded asynchronously later (fires Events.InfoUpdated).

Parameters

Name Type Description
ptPointis the device coordinates to select
Optional radiusnumberthe radius of selection (in px)

Returns

(AbstractNode | AbstractFeature)[]

data data selected

Inherited from

AbstractFeatureLayer.hitTest


invalidate

invalidate(bounds?, force?): Heatmap

Invalidate layer

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleantrue if parent should be invalidated immediately if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.invalidate


invalidateParent

Protected invalidateParent(bounds?, force?): Heatmap

Invalidate parent and notify all listeners. NOTE: Don't keep arguments of the event, because instance can be changed

Fires

Events.Invalidate

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleanforce rendering

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.invalidateParent


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AbstractFeatureLayer.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

AbstractFeatureLayer.isEventPropagationEnabled


isLoading

isLoading(): boolean

Checks if layer data is still loading and not ready

Returns

boolean

Inherited from

AbstractFeatureLayer.isLoading


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

AbstractFeatureLayer.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

AbstractFeatureLayer.isSelectable


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

AbstractFeatureLayer.isSilent


load

load(): Promise<Heatmap>

Returns promise that is resolved when all layer data is loaded and ready to be rendered

Returns

Promise<Heatmap>

Inherited from

AbstractFeatureLayer.load


notify

notify<E>(type, source, args?): Heatmap

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceAbstractFeatureLayersource who called the event
Optional argsEventMap[E]event arguments

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.notify


off

off<E>(type?, callback?): Heatmap

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: Heatmap, args: EventMap[E]) => voidfunction to be called

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.off


on

on<E>(type, callback): Heatmap

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: Heatmap, args: EventMap[E]) => voidto be called

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.on


onParentChanged

Protected onParentChanged(node): Heatmap

This method is called when parent changes. Do not call it directly.

Parameters

Name Type Description
nodeNodenode to change parent

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

This method is called if visibility is changed. Send event Events.VisibilityChanged

Returns

void

Inherited from

AbstractFeatureLayer.onVisibilityChanged


queryFeatures

queryFeatures(query): AbstractFeature[]

queries layer for items that match the search

Parameters

Name Type Description
queryQuery | (feature: AbstractFeature) => booleanquery

Returns

AbstractFeature[]

features selected features

Inherited from

AbstractFeatureLayer.queryFeatures


removeCssClass

removeCssClass(cssclass): Heatmap

Removes css class from node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): Heatmap

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.removeInvalidateHandler


render

render(context): void

Renders node

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node

Returns

void

Inherited from

AbstractFeatureLayer.render


renderAnnotations

renderAnnotations(featuresIt, context): void

Renders annotations (to filtered features only)

Parameters

Name Type Description
featuresItAbstractFeature[] | Iterator<AbstractFeature>features iterator
contextRenderingContextrendering context

Returns

void

Inherited from

AbstractFeatureLayer.renderAnnotations


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. Default implementation creates call method "render" inside

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function

Returns

void

Inherited from

AbstractFeatureLayer.renderAsync


renderContent

renderContent(context): void

Renders content. The implementation:

  1. Applies features filter(s) if set;
  2. Execute "renderFeatures"; If annotations visible then:
  3. Applies annotations filter(s) if set;
  4. Execute "renderAnnotations"

Parameters

Name Type Description
contextRenderingContextto render layer

Returns

void

Inherited from

AbstractFeatureLayer.renderContent


renderContentAsync

renderContentAsync(context, callback): void

Renders async layer content

Parameters

Name Type Description
contextRenderingContextthe Rendering Context
callback() => voidcallback to be called after rendering of layer content

Returns

void

Inherited from

AbstractFeatureLayer.renderContentAsync


renderFeatures

renderFeatures(featuresIt, context): void

Calculates features influence into 2d pixel array for the later rendering

Parameters

Name Type Description
featuresItAbstractFeature[] | Iterator<AbstractFeature>iterator over filtered features
contextRenderingContextrendering context

Returns

void

Overrides

AbstractFeatureLayer.renderFeatures


setCache

setCache(cache): Heatmap

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setCache


setColorProvider

setColorProvider(provider): Heatmap

Sets color provider for heatmap colors interpolation

Parameters

Name Type Description
providerColorProviderheatmap color provider

Returns

Heatmap

this


setCssClass

setCssClass(name): Heatmap

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setCssClass


setId

setId(id): Heatmap

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setId


setLayerAlpha

setLayerAlpha(alpha): Heatmap

Set the alpha of the layer

Parameters

Name Type Description
alphanumberbetween 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0.

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setLayerAlpha


setMapCoordinateSystem

setMapCoordinateSystem(system): Heatmap

Sets a map coordinate system

Parameters

Name Type Description
systemAbstractSystem | GeodeticSystemcoordinate system

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setMapCoordinateSystem


setMaxIntensity

setMaxIntensity(intensity): Heatmap

Sets maximum intensity value

Parameters

Name Type Description
intensitynumber | IntensityCallbackmax intensity (0 to calculate automatically)

Returns

Heatmap

this


setMode

setMode(mode): Heatmap

Sets heatmap calculation mode

Parameters

Name Type Description
modeModeheatmap calculation mode

Returns

Heatmap

this


setModelLimits

setModelLimits(limits): Heatmap

Sets model limits

Parameters

Name Type Description
limitsRectnew model limits

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setModelLimits


setName

setName(name): Heatmap

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setName


setNotification

setNotification(notify, force?): Heatmap

set notification state

Parameters

Name Type Description
notifybooleanflag set to invalidate parent or not
Optional forcebooleantrue if parent should be invalidated immediately

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setNotification


setOptions

setOptions(options?): Heatmap

Sets options

Parameters

Name Type Description
Optional optionsOptionsBaseoptions

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setOptions


setProperties

setProperties(properties?): Heatmap

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsthe properties to set

Returns

Heatmap

this

Overrides

AbstractFeatureLayer.setProperties


setProperty

setProperty(name, value): Heatmap

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setProperty


setRadius

setRadius(radius): Heatmap

Sets heatmap radius

Parameters

Name Type Description
radiusnumber | RadiusCallbackheatmap radius

Returns

Heatmap

this


setSelectable

setSelectable(selectable): Heatmap

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setSelectable


setServerURL

setServerURL(url): Heatmap

Sets the url to the layer source

Parameters

Name Type Description
urlstring | string[]server url

Returns

Heatmap

Inherited from

AbstractFeatureLayer.setServerURL


setSilent

setSilent(bool): Heatmap

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setSilent


setTag

setTag(tag): Heatmap

Allows the user to associate any arbitrary object with the node.

Parameters

Name Type Description
taganyThe object to be associated with the node.

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setTag


setVisible

setVisible(value): Heatmap

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setVisible


setWeightField

setWeightField(field): Heatmap

Sets features' field name to use as the weight value (or a callback for it)

Parameters

Name Type Description
fieldstring | WeightCallbackfeatures' attribute field name (if exists)

Returns

Heatmap

this


setZIndex

setZIndex(value): Heatmap

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.setZIndex


toCSV

toCSV(base?): string[][]

Converts layer features into CSV formatted object

Parameters

Name Type Description
Optional basenumberlatitude/longitude accuracy base

Returns

string[][]

geoJson geoJson object

Inherited from

AbstractFeatureLayer.toCSV


toGeoJSON

toGeoJSON(): Feature

Converts layer features into GeoJSON format

Returns

Feature

geoJson geoJson object

Inherited from

AbstractFeatureLayer.toGeoJSON


toString

toString(): string

Returns a string representation of this object (generally the classname)

Returns

string

A string representation

Inherited from

AbstractFeatureLayer.toString


transformFromMap

transformFromMap(point, dst?, clamp?): Point

Transform a point from map coordinate system to layer coordinate system

Parameters

Name Type Description
pointPointpoint to transform
Optional dstPointoptional destination point
Optional clampbooleanif set to true, coordinate values will be clamped

Returns

Point

Inherited from

AbstractFeatureLayer.transformFromMap


transformPoint

transformPoint(point, from, to, dst?, clamp?): Point

Transform point

Parameters

Name Type Description
pointPointpoint to transform
fromAbstractSystem | GeodeticSystemsystem converting from
toAbstractSystem | GeodeticSystemsystem converting to
Optional dstPointoptional destination point
Optional clampbooleanif set to true, coordinate values will be clamped

Returns

Point

Inherited from

AbstractFeatureLayer.transformPoint


transformToMap

transformToMap(point, dst?, clamp?): Point

Transform a point from layer coordinate system to map coordinate system

Parameters

Name Type Description
pointPointpoint to transform
Optional dstPointoptional destination point
Optional clampbooleanif set to true, coordinate values will be clamped

Returns

Point

Inherited from

AbstractFeatureLayer.transformToMap


updateSceneTransformation

updateSceneTransformation(): Heatmap

Update scene transformation

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.updateSceneTransformation


updateState

updateState(regions?, changes?): Heatmap

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles in the parent coordinates
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.updateState


updateTimeStamp

Protected updateTimeStamp(): Heatmap

Update time stamp to indicate that Node or Children has been changed.

Returns

Heatmap

this

Inherited from

AbstractFeatureLayer.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

AbstractFeatureLayer.enableSceneGraphNotification


findParent

Static findParent<T>(node, classType, filter?): InstanceType<T>

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T>

Inherited from

AbstractFeatureLayer.findParent

Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

AbstractFeatureLayer.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractFeatureLayer.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

AbstractFeatureLayer.isSceneGraphNotificationEnabled