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 asynchronouslyhandler
andproblemhandler
: For completing the geolocationmakemap
: For bringing in the Google Mapcheckit
: For responding to clicks on the map and invokingdiste
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.