Building the Application and Making It Your Own

You can make these projects your own by combining the geolocation feature with more substantial applications. Knowing where the visitors to your site are located can help personalize the application, and perhaps influence the choice of images. An informal summary/outline of the basic geolocation application follows:

  • init: For initialization, including invoking the call for geolocation, which is done asynchronously
  • handler and problemhandler: For completing the geolocation
  • makemap: For bringing in the Google Map
  • checkit: For responding to clicks on the map and invoking diste
  • reversegeo: For determining an address from a latitude/longitude value

Table 6-1 lists all the functions and indicates how ...

Get HTML5 and JavaScript Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.