MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _resetHistory

Method _resetHistory

src/web-map.js:1108–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1106 this.zoom = this._map.getZoom();
1107 }
1108 _resetHistory() {
1109 this._history = [];
1110 this._historyIndex = -1;
1111 this._traversalCall = false;
1112 // weird but ok
1113 this._addToHistory();
1114 }
1115 /**
1116 * Adds to the maps history on moveends
1117 * @private

Callers 1

Calls 1

_addToHistoryMethod · 0.95

Tested by

no test coverage detected