locationCommon_exports - jcobban/Genealogy GitHub Wiki
locationCommon.js exports
The module locationCommon.js
exports the following resources:
- class Boundary implements the behaviour of a geographic region of a linear location as displayed on a map.
- table evtLocAbbrs is used for standardizing the contents of a location field
- map is an instance of google.maps.Map
- geocoder is an instance of google.maps.Geocoder
- function initMap is a function invoked once the google.maps functionality is loaded
- function showMap(event) is a function to handle clicking on a button to display a map of a Location, Address, or Temple
- function displayMap(latlng, locn, button) is a function to layout and display a Google map centred on
latlng
, with location namelocn
, for the buttonbutton
. - function locationChanged(event) Take action when the user changes a field containing a location name to implement assists such as converting to upper case, expanding abbreviations, and completing short form names.