Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to put consecutive markers to a map? I mean if I want to draw a route, I would put markers and they would start from 1 to go on like 2, 3, 4......
Even better, is it possible to draw a route (lines snapping to actual roads)?
Comment | File | Size | Author |
---|---|---|---|
#3 | map.jpg | 98.57 KB | Sinan Erdem |
Comments
Comment #1
Brandonian CreditAttribution: Brandonian commented@etcetera9, you're probably looking to draw a polyline. This is a setting you can enable on the Openlayers map. We currently don't have any support for snapping to roads lines/features. Interesting idea, but there's a lot of behind the scenes stuff that would need to happen to make that work.
Comment #2
Sinan Erdem CreditAttribution: Sinan Erdem commentedThanks. Polyline isn't enough for me.
I have found a module that does tracking / routing: drupal.org/project/trackfield
It is released on D6. But maybe it has some usable code to entegrate to geofield... Wouldn't it be nice? :)
Comment #3
Sinan Erdem CreditAttribution: Sinan Erdem commentedNumbered markers are also good for me. I am attaching an example. This functionality was present on GMaps Tools module on D6.
Comment #4
leo82 CreditAttribution: leo82 commented@etcetera9 did you achieve that result in drupal 7? is it possible to draw line between points even if not possible to number marker?
Comment #5
Sinan Erdem CreditAttribution: Sinan Erdem commentedUnfortunately I didnt yet...
Comment #6
Brandonian CreditAttribution: Brandonian commentedMarking as "works as design." If someone would like to add a patch to add this map display, I'm happy to look at it.
Comment #7
Sinan Erdem CreditAttribution: Sinan Erdem commentedI found a very good documentation about this issue here: http://vikku.info/programming/google-maps-v3/draggable-directions/saving...
Do you think this can be added to the scope of this module?
Cheers...