mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-18 13:56:53 +00:00
feat: do not require cluster id to exist for node
This commit is contained in:
parent
5ea757ae5b
commit
bf5464017a
@ -1910,7 +1910,8 @@ export class Graph {
|
||||
private _addClusterNode(node: Image): void {
|
||||
const clusterId = node.clusterId;
|
||||
if (clusterId == null) {
|
||||
throw new GraphMapillaryError(`Image does not have cluster (${node.id}).`);
|
||||
console.warn(`Cannot set cluster node, cluster ID is undefined for node ${node.id}.`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this._clusterNodes.has(clusterId)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user