- allow a user to choose automatic detection of location from their current device or to enter street address
- find a user's location using the html5 location methods
- display that location on an embedded google map
- accept a standard google text search (i.e. anything you'd normally use on google maps, like a zip code, or a street address, or a city name)
- show the street address location on a map
- allow users to drag the icon to a desired location
- capture the latitude and longitude of the marker and build a redirect url using javascript
- capture data passed in to the location page via url api and include that in the redirect url after the location has been captured.
So, yes, most of the js was actually written by google in their documentation. I had to adapt several examples, though, to do my more complex implementation (to give users a choice of methods based on mouse events).
nice blog.thank you
ReplyDeletejs tutorial