2017-10-04 28 views
0

我想添加字母或数字在地图上标注,就像在这个形象:有没有任何方法可以用字母或数字来标注Map Annotations? (安卓Appcelerator的钛)

pins with letters

我无法找到的文档上的任何信息:http://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Annotation http://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.View http://docs.appcelerator.com/platform/latest/#!/guide/Google_Maps_v2_for_Android

有谁知道有没有办法做到这一点?

回答

1

您可以自定义注释的图像。所以,你必须创建从A到Z的所有引脚的图像。 这里是要改变的财产:http://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Annotation-property-image

+2

你甚至可以在你的应用程序在第一次启动时即时创建它们:放置一个空的pin图像在图像文件夹中,在图像内部创建一个ImageView,图像作为源代码,在顶部放置一个Label并将View保存到一个文件('toImage()')。 – miga

相关问题