How to put window info on polyline like in Google maps.
I need to put a window info on polyline like in Google maps.
Image below in red circles.
I noticed some questions in stackoverflow which did not give the expected result. So this question is not duplicate.
Asked
Active
Viewed 64 times
-1
geocodezip
- 153,563
- 13
- 208
- 237
Hayk Mkrtchyan
- 2,151
- 2
- 14
- 45
-
1Possible duplicate of [Google map Android API v2 - InfoWindow on polyline?](https://stackoverflow.com/questions/39543904/google-map-android-api-v2-infowindow-on-polyline) – Ikazuchi Jun 24 '19 at 14:38
1 Answers
1
Use this lib https://developers.google.com/maps/documentation/android-sdk/utility/
I have tried it works good.
IconGenerator iconFactory = new IconGenerator(activity);
MarkerOptions markerOptions = new MarkerOptions()
.icon(BitmapDescriptorFactory.fromBitmap(iconFactory.makeIcon("Your text")))
.position("Position that you want")
.anchor(iconFactory.getAnchorU(), iconFactory.getAnchorV());
Arthurghev
- 122
- 9