Android: How to use custom marker Icons

Hi,

Do you have some examples (source code) using custom icons in place of markers in Android?

Kind regards,

Diego

Hi,

You can use the following example:

TMSFNCMaps1.BeginUpdate;
TMSFNCMaps1.AddMarker(DefaultCoordinate, 'Title', 'https://www.myserver.com/site/myicon.png');
TMSFNCMaps1.EndUpdate;

Hi Pieter,

I have the icon (.png) in local path on device. How is the syntax to address this local png?

Thank you in advance,

Diego

Hi,

You need to set LocalFileAccess to true, and then you can reference the icon as a file.