map

map.positionNodesByGeo

positionNodesByGeo(mapping: object, nodeIds?: string[]): Promise<void>

Position nodes on the map using lat/lng values stored in their properties.

Reads mapping.latProperty and mapping.lngProperty from each node's properties bag, converts the values to world coordinates via latLngToWorld(), and applies a SetPositionsCommand so the operation is fully undoable.

Nodes whose lat/lng properties are missing or non-finite are silently skipped. If no nodes produce a valid position the method returns without executing a command (no undo entry created).

mappingobjectNames of the lat and lng properties on each node.
nodeIdsstring[]Optional allowlist of node IDs to position. When omitted, all nodes in the store are processed.

Returns: Promise<void>