O'Reilly logo

HTML5 and JavaScript Projects by Jeanine Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required