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

Method zoomTo

src/mapml-viewer.js:1050–1057  ·  view source on GitHub ↗
(lat, lon, zoom)

Source from the content-addressed store, hash-verified

1048 }
1049 }
1050 zoomTo(lat, lon, zoom) {
1051 zoom = Number.isInteger(+zoom) ? +zoom : this.zoom;
1052 let location = new LatLng(+lat, +lon);
1053 this._map.setView(location, zoom);
1054 this.zoom = zoom;
1055 this.lat = location.lat;
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

Callers 1

reconnectLayersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected