fires when the event location can't be found on the map (the Map view only)
id | string | the event's id |
//With such a handler each time the location can be identified, scheduler will apply
//the coordinates of the Greenwich Royal Observatory to the event
scheduler.attachEvent("onLocationError", function (id){
alert("Location can't be found");
return google.maps.LatLng(51.477840, -0.001492);
//the coordinates of the Greenwich Royal Observatory
});
The event will fire only with the map_resolve_event_location configuration property enabled.
How does the event work?
The event can be used to provide custom reaction to the situation, when the scheduler tries to load an event with an invalid or empty location.
For example, it's possible to return a google.maps.LatLng object
with geographical coordinates that will be applied to the event in case of error.