apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

How to bind markers to the road? #402

Closed galievruslan closed 10 years ago

galievruslan commented 10 years ago

Hello. Tell me whether it is possible with the help of heme bind point to the nearest road. And how can we draw a polyline between two points on the road as in Example http://econym.org.uk/gmap/example_snappath.htm and http://stackoverflow.com/questions/10513360/polyline-snap-to-road-using- google-maps-api-v3

apneadiving commented 10 years ago

everything is possible.

Gmaps4rails is just a wrapper, you have access to all basic google map objects.

For polylines:

Your examples are based on Gmap2 and I dont know it, but they seem very basic:

galievruslan commented 10 years ago

http://stackoverflow.com/questions/22504935/gmaps4rails-snap-markers-to-the-road Help:)

apneadiving commented 10 years ago

answered!