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

Function addEventWithLocation

codebase/sources/dhtmlxscheduler.js:13893–13900  ·  view source on GitHub ↗
(event2, mapAdapter2)

Source from the content-addressed store, hash-verified

13891 attachSchedulerEvents();
13892 }
13893 async function addEventWithLocation(event2, mapAdapter2) {
13894 let coordinates = await mapAdapter2.resolveAddress(event2.event_location);
13895 event2.lat = coordinates.lat;
13896 event2.lng = coordinates.lng;
13897 mapAdapter2.removeEventMarker(String(event2.id));
13898 mapAdapter2.addEventMarker(event2);
13899 return event2;
13900 }
13901 function setUserLocation(options, adapter) {
13902 if (options.resolve_user_location) {
13903 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