-1

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. enter image description here

geocodezip
  • 158,664
  • 13
  • 220
  • 245
Hayk Mkrtchyan
  • 2,835
  • 3
  • 19
  • 61
  • 1
    Possible 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 Answers1

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
  • 142
  • 11