Ruby on Rails and gmap location -
I can come here to ask you some information or to help me to try what I want to do. Here is what I have to realize: I have a website and on that I have some places in the database (latex and longitude saved). I allow users to click on a button, display the map with a marker on their actual status, and other markers that they represent places from the database. I find some tools like that. With this I can show user status but I do not know how can I display the position of locations in my database. If you have any ideas or examples. Thank you. (Ps: Sorry for my English)
I have created a similar app with Spring and Java What to do placemark
make JS objects and pass them on Google Maps API. You can also pass the map size to determine the scope of the map back to the user.
To set nearby locations, simply create some Ruby / Rail code to limit the distance of locations from user location.
- Obtain user location
- Decide who places to show on the map within your Rail application
- (This API docs which are great Can be found) Pass the desired placemark for Google Maps
- Show on map Google Maps on a view.
Comments
Post a Comment