Mark a location in a google map
Google map API is totally javascript. So convert to java script variable in to Ruby variable little bit difficult. So i use a trick for make life easy. Trick was i placed a hidden fields for both' lag' and 'lat'.And get those variables as 'params' when submit the form
Find Mark Locations
It is easy.You want to get lng and lat values from your database and Simlpy can disply by Using following code
No comments:
Post a Comment