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

Method _updateMapCenter

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

Source from the content-addressed store, hash-verified

1056 this.lon = location.lng;
1057 }
1058 _updateMapCenter() {
1059 // remember to tell Leaflet event handler that 'this' in here refers to
1060 // something other than the map in this case the custom polymer element
1061 this.lat = this._map.getCenter().lat;
1062 this.lon = this._map.getCenter().lng;
1063 this.zoom = this._map.getZoom();
1064 }
1065 _resetHistory() {
1066 this._history = [];
1067 this._historyIndex = -1;

Callers 1

_setUpEventsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected