(event2)
| 14120 | return google.maps.LatLng(51.47784, -1492e-6); |
| 14121 | }); |
| 14122 | let _updateEventLocation = async function(event2) { |
| 14123 | if (mapAdapter) { |
| 14124 | const coordinates = await mapAdapter.resolveAddress(event2.event_location); |
| 14125 | if (coordinates.lat && coordinates.lng) { |
| 14126 | event2.lat = +coordinates.lat; |
| 14127 | event2.lng = +coordinates.lng; |
| 14128 | } else { |
| 14129 | scheduler2.callEvent("onLocationError", [event2.id]); |
| 14130 | event2.lng = scheduler2.config.map_settings.error_position.lng; |
| 14131 | event2.lat = scheduler2.config.map_settings.error_position.lat; |
| 14132 | } |
| 14133 | scheduler2._latLngUpdate = true; |
| 14134 | scheduler2.callEvent("onEventChanged", [event2.id, event2]); |
| 14135 | } |
| 14136 | }; |
| 14137 | let _delay = function(method, object, params, delay2) { |
| 14138 | setTimeout(function() { |
| 14139 | if (scheduler2.$destroyed) { |
nothing calls this directly
no test coverage detected