MCPcopy Create free account
hub / github.com/Maps4HTML/MapML.js / zoomTo

Method zoomTo

src/web-map.js:1093–1100  ·  view source on GitHub ↗
(lat, lon, zoom)

Source from the content-addressed store, hash-verified

1091 }
1092 }
1093 zoomTo(lat, lon, zoom) {
1094 zoom = Number.isInteger(+zoom) ? +zoom : this.zoom;
1095 let location = new LatLng(+lat, +lon);
1096 this._map.setView(location, zoom);
1097 this.zoom = zoom;
1098 this.lat = location.lat;
1099 this.lon = location.lng;
1100 }
1101 _updateMapCenter() {
1102 // remember to tell Leaflet event handler that 'this' in here refers to
1103 // 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