Saturday, 22 December 2012

Geolocation - A jQuery plugin to get location of your users - Google Maps API v3


Include this jquery plugin to get the location of the users visiting your webpage
- the plugin displays the complete address, latitude and logitude of the user in a div.
- also displays the location found in a Google map.






How to use:

The download pack contains two files - geolocation.html and the plugin file geolocation.min.js.

The HTML

Include the Jquery library, Google API library and the plugin before your <body> tag ends.


Create a div with the id - location_details. This div will display the location details and the address. Another div with the id - map_canvas will display the location on a Google map.


Thats it!
Let me know if you face any issues.

3 comments:

  1. Hey , I've included this awesome jquery plugin in http://jquer.in

    ReplyDelete
  2. Note - This might need your wireless device (wifi) enabled ..

    ReplyDelete