MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / resolveAddress

Method resolveAddress

codebase/dhtmlxscheduler.es.js:5028–5035  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

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}
5037class oa {
5038 constructor(i) {

Callers 2

aFunction · 0.45
dFunction · 0.45

Calls 1

nFunction · 0.70

Tested by

no test coverage detected