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