(lat, lon, zoom)
| 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 |