Skip to content

Commit

Permalink
[fix] Fix zoom animation #120
Browse files Browse the repository at this point in the history
Closes #120
  • Loading branch information
totallynotvaishnav committed Jun 18, 2022
1 parent 4c92812 commit 1b826b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/netjsongraph.render.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ class NetJSONGraphRender {
: "scatter",
coordinateSystem: "leaflet",
data: nodesData,
animationDuration: 1000,
}),
...configs.mapLinkConfig.map((lineConfig) =>
Object.assign(lineConfig, {
Expand Down Expand Up @@ -301,6 +302,7 @@ class NetJSONGraphRender {
);

_this.leaflet = _this.echarts._api.getCoordinateSystems()[0].getLeaflet();
_this.leaflet._zoomAnimated = false;

_this.event.emit("onLoad");
_this.event.emit("renderArray");
Expand Down

0 comments on commit 1b826b6

Please sign in to comment.