简体   繁体   中英

How to add text next to marker icon image using Android HERE map SDK

I have HERE map on my android application. I want to plot markers over the map with some text ( eg marker identity name ). TEXT should be placed next to marker image icon preferably right side of icon.

Option Tried :

  1. Marker marker.setTitle : It only sets title for infobox, TEXT doesn't appear always with icon as required.
  2. MapLabeledMarker : Unable to use this with map cluster. What i found is, you can add marker object to map cluster but not MapLabeledMarker.

I'm using 90-days trail HERE Map premium Android SDK. Thanks.

Not ideal or efficient but it may be sufficient based on your use case to create a Bitmap from an Android layout which represents what you want: https://stackoverflow.com/a/8120310/275524 . You can then create the HERE SDK Image from this Bitmap .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM