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

Function addEventWithLocation

codebase/sources/dhtmlxscheduler.es.js:13889–13896  ·  view source on GitHub ↗
(event2, mapAdapter2)

Source from the content-addressed store, hash-verified

13887 attachSchedulerEvents();
13888 }
13889 async function addEventWithLocation(event2, mapAdapter2) {
13890 let coordinates = await mapAdapter2.resolveAddress(event2.event_location);
13891 event2.lat = coordinates.lat;
13892 event2.lng = coordinates.lng;
13893 mapAdapter2.removeEventMarker(String(event2.id));
13894 mapAdapter2.addEventMarker(event2);
13895 return event2;
13896 }
13897 function setUserLocation(options, adapter) {
13898 if (options.resolve_user_location) {
13899 if (navigator.geolocation) {

Callers 1

attachSchedulerEventsFunction · 0.70

Calls 3

resolveAddressMethod · 0.45
removeEventMarkerMethod · 0.45
addEventMarkerMethod · 0.45

Tested by

no test coverage detected