API / geotoolkit / map / 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
});↳
Heatmap
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
alpha | number | The alpha of the layer |
colorprovider | ColorProvider | Color provider for heatmap colors interpolation (for 0-1 values) |
colorprovider-max | number | |
colorprovider-min | number | |
colorprovider-scale | KnownScales | |
cssclass | string | The css class name of this node |
id | string | number | Id of the node, its a unique identifier |
limits | Rect | Limits of this layer |
limits-height | number | Height |
limits-readonly | boolean | Readonly |
limits-width | number | Width |
limits-x | number | Left |
limits-y | number | Top |
maxintensity | number | Heatmap maximum intensity or a callback that returns current value. If not set, will be calculated automatically based on current features |
mode | Mode | Heatmap calculation mode, see enum for details |
name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
radius | number | Heatmap radius (in px) or a callback that returns current radius value |
selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
source | AbstractSource | The layer data source |
source-system | string | Initial data coordinate system |
source-url | string | Data server url |
system | GeodeticSystem | Coordinate system this layer's data is in |
tag | any | Custom 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 |
url | string | Server url |
visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
weight | string | Field name for features' weight value (if needed) or a (feature) => weight callback |
z-index | number | Define node z-index |
Constructors
• new Heatmap(options?)
| Name | Type | Description |
|---|---|---|
Optional options | Options | heatmap options |
AbstractFeatureLayer.constructor
Methods
▸ addCssClass(cssclass): Heatmap
Adds new css class to node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
AbstractFeatureLayer.addCssClass
▸ addInvalidateHandler(handler): Heatmap
Add invalidate handler
Deprecated
since 4.0, use Node.on instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
AbstractFeatureLayer.addInvalidateHandler
▸ Protected calculateDefaultModelLimits(data?): Rect
Returns default model limits (based on the map coordinate system)
| Name | Type | Description |
|---|---|---|
Optional data | AbstractFeature[] | Iterator<AbstractFeature> | feature data changed (for feature layers), nothing otherwise |
AbstractFeatureLayer.calculateDefaultModelLimits
▸ checkCollision(context): boolean
Check if this node is within the area being rendered by the context
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
true if object is inside of renderable area
AbstractFeatureLayer.checkCollision
▸ clearCache(): Heatmap
Clear cache
this
AbstractFeatureLayer.clearCache
▸ clone(): Node
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ 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
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
AbstractFeatureLayer.connectStyle
▸ 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.
| Name | Type | Description |
|---|---|---|
src | AbstractLayer | Source to copy from |
Optional deepCopy | boolean | deep copy |
this
AbstractFeatureLayer.copyConstructor
▸ disconnectStyle(style, type, callback): Heatmap
Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
AbstractFeatureLayer.disconnectStyle
▸ dispose(): void
Disposes this layer, once disposed it should not be used anymore.
void
▸ 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();| Name | Type | Description |
|---|---|---|
enable | boolean | enable |
this
AbstractFeatureLayer.enableEventPropagation
▸ 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");
});| Name | Type | Description |
|---|---|---|
delegate | (this: Heatmap) => void | Function to execute |
The result if any or this
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: Heatmap) => T |
T
▸ getCache(): Cache
Return cache strategy to be used to cache children nodes
cache cache strategy
▸ getClassName(): string
string
AbstractFeatureLayer.getClassName
▸ getColorProvider(): ColorProvider
Returns current heatmap color provider
▸ getCoordinateSystem(): AbstractSystem
Return coordinate system for this layer
AbstractFeatureLayer.getCoordinateSystem
▸ getCssClass(): string
Returns css class name to be used to apply CSS style
string
the css class name
AbstractFeatureLayer.getCssClass
▸ getCssClasses(): string[]
Gets list of css class names which applied to this node
string[]
AbstractFeatureLayer.getCssClasses
▸ getDataSource(): AbstractSource
Returns current data source
source
AbstractFeatureLayer.getDataSource
▸ getDefaultModelLimits(): Rect
Gets calculated model limits
limits calculated model limits
AbstractFeatureLayer.getDefaultModelLimits
▸ getFeatureById(id): AbstractFeature
Gets feature by feature id.
| Name | Type | Description |
|---|---|---|
id | string | number | feature identifier |
feature if found; null otherwise
AbstractFeatureLayer.getFeatureById
▸ getFeatures(filter?): Iterator<AbstractFeature>
Gets features iterator
| Name | Type | Description |
|---|---|---|
Optional filter | Query | (feature: AbstractFeature) => boolean | features query filter. |
feature iterator (over all features if filter is null)
AbstractFeatureLayer.getFeatures
▸ getGeometryToText(feature): IGeometryToText
Gets feature_geometry-to-text_anchor_position adapter
| Name | Type | Description |
|---|---|---|
feature | AbstractFeature | feature to get adapter for |
AbstractFeatureLayer.getGeometryToText
▸ getId(): string | number
Returns the associated identifier of the node
string | number
The node's id
▸ 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.
number
alpha alpha
AbstractFeatureLayer.getLayerAlpha
▸ getMapCoordinateSystem(): AbstractSystem
Return a map coordinate system
AbstractFeatureLayer.getMapCoordinateSystem
▸ getMaxIntensity(): number | IntensityCallback
Returns maximum intensity value (or a callback for it). If not set, returns calculated value
number | IntensityCallback
▸ getMode(): Mode
Returns heatmap calculation mode
▸ getModelLimits(): Rect
Gets user defined model limits if set; calculated model limits otherwise
limits user defined or calculated model limits
AbstractFeatureLayer.getModelLimits
▸ getName(): string
Returns the node name
string
The node name
▸ getOptions(): Options
Gets options
options options
AbstractFeatureLayer.getOptions
▸ getParent(): Node
Return parent node
parent node
AbstractFeatureLayer.getParent
▸ getProperties(): OptionsOut
Returns all the properties pertaining to this object
the properties to set
AbstractFeatureLayer.getProperties
▸ getProperty(name): any
Gets dynamic property by name. These properties can be used as a property bags
| Name | Type | Description |
|---|---|---|
name | string | property name |
any
AbstractFeatureLayer.getProperty
▸ getPropertyKeys(): string[]
Returns known properties keys
string[]
AbstractFeatureLayer.getPropertyKeys
▸ getRadius(): number | RadiusCallback
Returns heatmap radius (or a callback for it)
number | RadiusCallback
▸ getRoot(): Node
Returns root node.
If node doesn't have parent then it returns itself.
the root node
▸ getSceneTransform(): Transformation
Returns transformation from node to root scene
a transformation from node to root scene
AbstractFeatureLayer.getSceneTransform
▸ getServerURL(): string | string[]
Gets the server url from the layer source
string | string[]
AbstractFeatureLayer.getServerURL
▸ getTag(): any
Returns the object associated with the node by user.
any
The node's user-object
▸ getTooltipFormatter(): Formatter
Returns the format function to use for the tooltip info (null if tooltips are not visible)
AbstractFeatureLayer.getTooltipFormatter
▸ getVisible(): boolean
Return visibility of the node
boolean
true if node is visible
AbstractFeatureLayer.getVisible
▸ getVisibleModelLimits(ignoreModelLimits?): Rect
Return visible model limits
| Name | Type | Description |
|---|---|---|
Optional ignoreModelLimits | boolean | flag defines whether to ignore ModelLimits or not |
AbstractFeatureLayer.getVisibleModelLimits
▸ getWeightField(): string | WeightCallback
Returns current weight field name or a callback for it (if exists, null otherwise)
string | WeightCallback
▸ getWorldTransform(): Transformation
getWorldTransform retrieves the local transformation of the inner node coordinates to parent coordinates.
the world transform.
AbstractFeatureLayer.getWorldTransform
▸ getZIndex(): number
Returns node z-index (null if not set)
number
AbstractFeatureLayer.getZIndex
▸ hasCssClass(cssClass): boolean
Check if node has specified css class
| Name | Type | Description |
|---|---|---|
cssClass | string | css class name |
boolean
AbstractFeatureLayer.hasCssClass
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
AbstractFeatureLayer.hasEventListener
▸ 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).
| Name | Type | Description |
|---|---|---|
pt | Point | is the device coordinates to select |
Optional radius | number | the radius of selection (in px) |
(AbstractNode | AbstractFeature)[]
data data selected
▸ invalidate(bounds?, force?): Heatmap
Invalidate layer
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | bounds of the invalid rectangle in the inner node coordinates |
Optional force | boolean | true 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 |
this
AbstractFeatureLayer.invalidate
▸ 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
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | bounds of the invalid rectangle in the inner node coordinates |
Optional force | boolean | force rendering |
this
AbstractFeatureLayer.invalidateParent
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
AbstractFeatureLayer.isDisposed
▸ isEventPropagationEnabled(): boolean
Return true if event propagation is enabled from child to parent
boolean
AbstractFeatureLayer.isEventPropagationEnabled
▸ isLoading(): boolean
Checks if layer data is still loading and not ready
boolean
AbstractFeatureLayer.isLoading
▸ isNotificationEnabled(): boolean
return state of notification
boolean
current notification state
AbstractFeatureLayer.isNotificationEnabled
▸ isSelectable(): boolean
Returns true if node can be picked/selected.
boolean
The selectable flag
AbstractFeatureLayer.isSelectable
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ load(): Promise<Heatmap>
Returns promise that is resolved when all layer data is loaded and ready to be rendered
Promise<Heatmap>
▸ notify<E>(type, source, args?): Heatmap
Notify listeners of the Node
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event |
source | AbstractFeatureLayer | source who called the event |
Optional args | EventMap[E] | event arguments |
this
▸ 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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: Heatmap, args: EventMap[E]) => void | function to be called |
this
▸ 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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: Heatmap, args: EventMap[E]) => void | to be called |
this
▸ Protected onParentChanged(node): Heatmap
This method is called when parent changes. Do not call it directly.
| Name | Type | Description |
|---|---|---|
node | Node | node to change parent |
this
AbstractFeatureLayer.onParentChanged
▸ Protected onVisibilityChanged(): void
This method is called if visibility is changed. Send event Events.VisibilityChanged
void
AbstractFeatureLayer.onVisibilityChanged
▸ queryFeatures(query): AbstractFeature[]
queries layer for items that match the search
| Name | Type | Description |
|---|---|---|
query | Query | (feature: AbstractFeature) => boolean | query |
features selected features
AbstractFeatureLayer.queryFeatures
▸ removeCssClass(cssclass): Heatmap
Removes css class from node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
AbstractFeatureLayer.removeCssClass
▸ removeInvalidateHandler(handler): Heatmap
Remove invalidate handler
Deprecated
since 4.0, use Node.off instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
AbstractFeatureLayer.removeInvalidateHandler
▸ render(context): void
Renders node
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
void
▸ renderAnnotations(featuresIt, context): void
Renders annotations (to filtered features only)
| Name | Type | Description |
|---|---|---|
featuresIt | AbstractFeature[] | Iterator<AbstractFeature> | features iterator |
context | RenderingContext | rendering context |
void
AbstractFeatureLayer.renderAnnotations
▸ renderAsync(context, callback): void
Render node in asynchronous mode. Default implementation creates call method "render" inside
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function |
void
AbstractFeatureLayer.renderAsync
▸ renderContent(context): void
Renders content. The implementation:
- Applies features filter(s) if set;
- Execute "renderFeatures"; If annotations visible then:
- Applies annotations filter(s) if set;
- Execute "renderAnnotations"
| Name | Type | Description |
|---|---|---|
context | RenderingContext | to render layer |
void
AbstractFeatureLayer.renderContent
▸ renderContentAsync(context, callback): void
Renders async layer content
| Name | Type | Description |
|---|---|---|
context | RenderingContext | the Rendering Context |
callback | () => void | callback to be called after rendering of layer content |
void
AbstractFeatureLayer.renderContentAsync
▸ renderFeatures(featuresIt, context): void
Calculates features influence into 2d pixel array for the later rendering
| Name | Type | Description |
|---|---|---|
featuresIt | AbstractFeature[] | Iterator<AbstractFeature> | iterator over filtered features |
context | RenderingContext | rendering context |
void
AbstractFeatureLayer.renderFeatures
▸ setCache(cache): Heatmap
Sets cache to be used to cache
| Name | Type | Description |
|---|---|---|
cache | Cache | cache to be used |
this
▸ setColorProvider(provider): Heatmap
Sets color provider for heatmap colors interpolation
| Name | Type | Description |
|---|---|---|
provider | ColorProvider | heatmap color provider |
this
▸ setCssClass(name): Heatmap
Sets css class name of the node to be used to apply CSS style
| Name | Type | Description |
|---|---|---|
name | string | css class name of the node |
this
AbstractFeatureLayer.setCssClass
▸ setId(id): Heatmap
Allows the user to associate any identifier
| Name | Type | Description |
|---|---|---|
id | string | number | object id |
this
▸ setLayerAlpha(alpha): Heatmap
Set the alpha of the layer
| Name | Type | Description |
|---|---|---|
alpha | number | between 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0. |
this
AbstractFeatureLayer.setLayerAlpha
▸ setMapCoordinateSystem(system): Heatmap
Sets a map coordinate system
| Name | Type | Description |
|---|---|---|
system | AbstractSystem | GeodeticSystem | coordinate system |
this
AbstractFeatureLayer.setMapCoordinateSystem
▸ setMaxIntensity(intensity): Heatmap
Sets maximum intensity value
| Name | Type | Description |
|---|---|---|
intensity | number | IntensityCallback | max intensity (0 to calculate automatically) |
this
▸ setMode(mode): Heatmap
Sets heatmap calculation mode
| Name | Type | Description |
|---|---|---|
mode | Mode | heatmap calculation mode |
this
▸ setModelLimits(limits): Heatmap
Sets model limits
| Name | Type | Description |
|---|---|---|
limits | Rect | new model limits |
this
AbstractFeatureLayer.setModelLimits
▸ setName(name): Heatmap
Sets name of the node
| Name | Type | Description |
|---|---|---|
name | string | The node name |
this
▸ setNotification(notify, force?): Heatmap
set notification state
| Name | Type | Description |
|---|---|---|
notify | boolean | flag set to invalidate parent or not |
Optional force | boolean | true if parent should be invalidated immediately |
this
AbstractFeatureLayer.setNotification
▸ setOptions(options?): Heatmap
Sets options
| Name | Type | Description |
|---|---|---|
Optional options | OptionsBase | options |
this
AbstractFeatureLayer.setOptions
▸ setProperties(properties?): Heatmap
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | the properties to set |
this
AbstractFeatureLayer.setProperties
▸ setProperty(name, value): Heatmap
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
AbstractFeatureLayer.setProperty
▸ setRadius(radius): Heatmap
Sets heatmap radius
| Name | Type | Description |
|---|---|---|
radius | number | RadiusCallback | heatmap radius |
this
▸ setSelectable(selectable): Heatmap
Allows to select node. If node is not selectable then child node is not selectable.
| Name | Type | Description |
|---|---|---|
selectable | boolean | flag to allow node selection |
this
AbstractFeatureLayer.setSelectable
▸ setServerURL(url): Heatmap
Sets the url to the layer source
| Name | Type | Description |
|---|---|---|
url | string | string[] | server url |
AbstractFeatureLayer.setServerURL
▸ setSilent(bool): Heatmap
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
AbstractFeatureLayer.setSilent
▸ setTag(tag): Heatmap
Allows the user to associate any arbitrary object with the node.
| Name | Type | Description |
|---|---|---|
tag | any | The object to be associated with the node. |
this
▸ setVisible(value): Heatmap
Sets visibility of the node. Send event Events.VisibilityChanged
| Name | Type | Description |
|---|---|---|
value | boolean | flag specifying visibility of the node |
this
AbstractFeatureLayer.setVisible
▸ setWeightField(field): Heatmap
Sets features' field name to use as the weight value (or a callback for it)
| Name | Type | Description |
|---|---|---|
field | string | WeightCallback | features' attribute field name (if exists) |
this
▸ setZIndex(value): Heatmap
Sets z-index for node (set null for default)
| Name | Type | Description |
|---|---|---|
value | number | index determining node z-position |
this
AbstractFeatureLayer.setZIndex
▸ toCSV(base?): string[][]
Converts layer features into CSV formatted object
| Name | Type | Description |
|---|---|---|
Optional base | number | latitude/longitude accuracy base |
string[][]
geoJson geoJson object
▸ toGeoJSON(): Feature
Converts layer features into GeoJSON format
geoJson geoJson object
AbstractFeatureLayer.toGeoJSON
▸ toString(): string
Returns a string representation of this object (generally the classname)
string
A string representation
▸ transformFromMap(point, dst?, clamp?): Point
Transform a point from map coordinate system to layer coordinate system
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
Optional dst | Point | optional destination point |
Optional clamp | boolean | if set to true, coordinate values will be clamped |
AbstractFeatureLayer.transformFromMap
▸ transformPoint(point, from, to, dst?, clamp?): Point
Transform point
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
from | AbstractSystem | GeodeticSystem | system converting from |
to | AbstractSystem | GeodeticSystem | system converting to |
Optional dst | Point | optional destination point |
Optional clamp | boolean | if set to true, coordinate values will be clamped |
AbstractFeatureLayer.transformPoint
▸ transformToMap(point, dst?, clamp?): Point
Transform a point from layer coordinate system to map coordinate system
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
Optional dst | Point | optional destination point |
Optional clamp | boolean | if set to true, coordinate values will be clamped |
AbstractFeatureLayer.transformToMap
▸ updateSceneTransformation(): Heatmap
Update scene transformation
this
AbstractFeatureLayer.updateSceneTransformation
▸ 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
| Name | Type | Description |
|---|---|---|
Optional regions | Rect[] | optional array to return invalid rectangles in the parent coordinates |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
AbstractFeatureLayer.updateState
▸ Protected updateTimeStamp(): Heatmap
Update time stamp to indicate that Node or Children has been changed.
this
AbstractFeatureLayer.updateTimeStamp
▸ Static enableSceneGraphNotification(enabled): void
Enable / disable all notifications
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets if this object sends notifications |
void
AbstractFeatureLayer.enableSceneGraphNotification
▸ Static findParent<T>(node, classType, filter?): InstanceType<T>
Find root of the node with specified type
| Name | Type |
|---|---|
T | extends Constructor<any> |
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | T | type of the class to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
InstanceType<T>
AbstractFeatureLayer.findParent
▸ Static findParent(node, classType, filter?): Node
Find root of the node with specified type
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | string | interface name to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
AbstractFeatureLayer.findParent
▸ Static getClassName(): string
string
AbstractFeatureLayer.getClassName
▸ Static isSceneGraphNotificationEnabled(): boolean
Return status of the global notification for all nodes.
boolean