Skip to content

Commit 0b32122

Browse files
committed
[fix] generalized location object
1 parent 751d759 commit 0b32122

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/js/netjsongraph.util.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,10 @@ class NetJSONGraphUtil {
12521252
if (!node) return;
12531253
const nodeType =
12541254
self.config.graphConfig.series.type || self.config.mapOptions.nodeConfig.type;
1255-
const {location, zoom} = node;
1255+
const {
1256+
properties: {location},
1257+
zoom,
1258+
} = node;
12561259
if (["scatter", "effectScatter"].includes(nodeType) && zoom != null) {
12571260
self.leaflet.setView([location.lat, location.lng], zoom);
12581261
}

0 commit comments

Comments
 (0)