【问题标题】:Is there any way to label Map Annotations with letters or numbers? (Android Appcelerator Titanium)有没有办法用字母或数字标记地图注释? (Android Appcelerator Titanium)
【发布时间】:2017-10-04 10:35:51
【问题描述】:

我想在地图注解上添加字母或数字,就像在这张图片中一样:

我在文档中找不到任何信息: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

有没有人知道有什么办法可以做到这一点?

【问题讨论】:

    标签: android titanium appcelerator


    【解决方案1】:

    您可以自定义注释的图像。因此,您必须创建从 A 到 Z 的所有图钉图像。 这是要更改的属性:http://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Annotation-property-image

    【讨论】:

    • 您甚至可以在第一次启动时在您的应用程序中即时创建它们:在 images 文件夹中放置一个空的 pin 图像,在 View 中创建一个 ImageView 并使用图像作为源,放置一个在顶部添加标签并将视图保存到文件 (toImage())。
    猜你喜欢
    • 2016-04-16
    • 2014-07-29
    • 2016-08-25
    • 2010-09-12
    • 2013-11-13
    • 2021-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多