datadavev / DwC_views

Implements viewers for Darwin Core record repositories
1 stars 0 forks source link

DwC JQuery Client - Map View: Event Hooks #46

Closed coreyo closed 13 years ago

coreyo commented 13 years ago

The DwCMapView should include various event hooks that allow the users to extend its functionality using the public API. The users should be able to specify functions that are called when the following events are triggered:

onInit() - called after the map view is first initialized, but before the initial records query onSearch() - called whenever a search/filter is specified (including the initial query) onMarkerClick() - called whenever the user clicks on a marker onHide() - called whenever the map view is hidden from view onShow() - called whenever the map view is un-hidden / shown