Search code examples
androidhere-api

Show text next to marker in Here-Map Android sdk.


I use HereMap on my android app. I am able to plot markers over the map but not able to show text next to markers. Already tried using setTitle and MapLabeledMarker but these do not seem to be working. How can we show some text next to markers plotted on the map in HereMap Android sdk?


Solution

  • The best way to implement this is to use a regular android view layout, inflate it and draw to a bitmap via Canvas APIs. Use the bitmap as the image of the marker as needed.

    This provides the best performance as the graphics engine will cache the bitmap you provide and use hardware acceleration to render it.