I want to draw path on map from source to destination as dotted Form.I have draw path as line .but requirement is dotted form.
Asked
Active
Viewed 502 times
2
-
1Can you add some more details of what have you tried? – IlGala Nov 13 '15 at 08:49
-
i have draw path using PolylineOptions as line but i need as dotted line.....as this – user3095020 Nov 13 '15 at 08:54
-
Check this http://stackoverflow.com/questions/13721008/how-to-draw-dashed-polyline-with-android-google-map-sdk-v2 – Androiderson Nov 14 '15 at 11:31
1 Answers
1
https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-dashed
It's called a dashed line instead of dotted
Edit: if you insist on round symbols as "dotted path" (if you google "dotted line" you will get dashed lines as well so it was confusing) I sugged you use the round symbol google.maps.SymbolPath.CIRCLE and fill it

online Thomas
- 8,864
- 6
- 44
- 85
-
-
@user3095020 what you call dotted is actually called dashed. Or just make the length of the dashes shorter so they are round if that is your goal – online Thomas Nov 13 '15 at 08:32
-
-
1This is Javascipt API. I think the OP is using the Android Maps API – Androiderson Nov 14 '15 at 11:33
-
@ExceptionAl you should be able to pass the icon argument, so it's still relevant – online Thomas Nov 14 '15 at 12:52
-
-
1@Thomas, not at all, unfortunately. There is even a request for this feature on Google Maps issues for Android: https://code.google.com/p/gmaps-api-issues/issues/detail?id=4633. Therefore, it does not exist for Android, but for *Javascript* it does, as shown in your answer. – Eduardo Sep 11 '16 at 15:26