(i)
| 5026 | this.map.setCenter({ lat: i, lng: t }), this.map.setZoom(n); |
| 5027 | } |
| 5028 | async resolveAddress(i) { |
| 5029 | const t = new google.maps.Geocoder(); |
| 5030 | return await new Promise((n) => { |
| 5031 | t.geocode({ address: i }, function(s, a) { |
| 5032 | a == google.maps.GeocoderStatus.OK ? n({ lat: s[0].geometry.location.lat(), lng: s[0].geometry.location.lng() }) : (console.error("Geocode was not successful for the following reason: " + a), n({})); |
| 5033 | }); |
| 5034 | }); |
| 5035 | } |
| 5036 | } |
| 5037 | class oa { |
| 5038 | constructor(i) { |