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

Method _resetHistory

src/mapml-viewer.js:1065–1071  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1063 this.zoom = this._map.getZoom();
1064 }
1065 _resetHistory() {
1066 this._history = [];
1067 this._historyIndex = -1;
1068 this._traversalCall = false;
1069 // weird but ok
1070 this._addToHistory();
1071 }
1072 /**
1073 * Adds to the maps history on moveends
1074 * @private

Callers 1

Calls 1

_addToHistoryMethod · 0.95

Tested by

no test coverage detected