spatial-monorepo / core/src / VersionedPositionMap
Interface: VersionedPositionMap
Defined in: packages/core/src/layers/RTLSLayer.ts:27
Issue #456 — A PositionMap that also exposes a monotonically increasing version counter, bumped on every mutating write (set/delete/clear).
tick() in setupRTLSLayer/setupBlueDot compares this counter against the version it last rendered; when unchanged, the frame is skipped entirely (no GeoJSON rebuild, no setData, no setFeatureState/LRU touch).
Consumers that still hand in a plain Map (no version) get the original every-frame behavior — this is purely additive/backward-compatible.
Extends
Properties
[toStringTag]
readonly[toStringTag]:string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:135
Inherited from
PositionMap.[toStringTag]
size
readonlysize:number
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:46
Returns
the number of elements in the Map.
Inherited from
PositionMap.size
version
readonlyversion:number
Defined in: packages/core/src/layers/RTLSLayer.ts:28
Methods
[iterator]()
[iterator]():
MapIterator`<[string,PositionUpdate]>`
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:141
Returns an iterable of entries in the map.
Returns
MapIterator`<[string, PositionUpdate]>`
Inherited from
PositionMap.[iterator]
clear()
clear():
void
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:21
Removes all elements from the Map.
Returns
void
Inherited from
PositionMap.clear
delete()
delete(
key):boolean
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:25
Parameters
key
string
Returns
boolean
true if an element in the Map existed and has been removed, or false if the element does not exist.
Inherited from
PositionMap.delete
entries()
entries():
MapIterator`<[string,PositionUpdate]>`
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:146
Returns an iterable of key, value pairs for every entry in the map.
Returns
MapIterator`<[string, PositionUpdate]>`
Inherited from
PositionMap.entries
forEach()
forEach(
callbackfn,thisArg?):void
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:29
Executes a provided function once per each key/value pair in the Map, in insertion order.
Parameters
callbackfn
(value, key, map) => void
thisArg?
any
Returns
void
Inherited from
PositionMap.forEach
get()
get(
key):PositionUpdate|undefined
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:34
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Parameters
key
string
Returns
PositionUpdate | undefined
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
Inherited from
PositionMap.get
has()
has(
key):boolean
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:38
Parameters
key
string
Returns
boolean
boolean indicating whether an element with the specified key exists or not.
Inherited from
PositionMap.has
keys()
keys():
MapIterator`<string>`
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:151
Returns an iterable of keys in the map
Returns
MapIterator`<string>`
Inherited from
PositionMap.keys
set()
set(
key,value):this
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:42
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Parameters
key
string
value
Returns
this
Inherited from
PositionMap.set
values()
values():
MapIterator`<PositionUpdate>`
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:156
Returns an iterable of values in the map
Returns
MapIterator`<PositionUpdate>`
Inherited from
PositionMap.values
