2017-10-04 17 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

相關問題