locationCommon_exports - jcobban/Genealogy GitHub Wiki

locationCommon.js exports

Up: Location Services

The module locationCommon.js exports the following resources:

  1. class Boundary implements the behaviour of a geographic region of a linear location as displayed on a map.
  2. table evtLocAbbrs is used for standardizing the contents of a location field
  3. map is an instance of google.maps.Map
  4. geocoder is an instance of google.maps.Geocoder
  5. function initMap is a function invoked once the google.maps functionality is loaded
  6. function showMap(event) is a function to handle clicking on a button to display a map of a Location, Address, or Temple
  7. function displayMap(latlng, locn, button) is a function to layout and display a Google map centred on latlng, with location name locn, for the button button.
  8. 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.

Next: function locationChanged(event)