The map spotlight application sets up the combination of Google Maps functionality with HTML5 coding. A quick summary of the application is the following:
init: Initialization, including bringing in the map (
makemap) and setting up mouse events with handlers:
makemap: Brings in a map and sets up event handling, including the call to
checkit: Calculates distance, adds a custom marker, and displays distance and rounded latitude and longitude
The function table describing the invoked/called by and calling relationships (Table 4-1) is the same for all the applications.