开发者

android map draw custom marker

开发者 https://www.devze.com 2023-02-11 13:39 出处:网络
Say I have multiple Overlay items in my map. Is it possible 开发者_JAVA技巧to draw some text (say the overlay number) on the default marker ?You could define some custom markers. You can\'t edit the d

Say I have multiple Overlay items in my map. Is it possible 开发者_JAVA技巧to draw some text (say the overlay number) on the default marker ?


You could define some custom markers. You can't edit the default ones...


Create a Textview and use the map layout param (with the position you want it, as it accepts a geopoint) to add it to textview that you created. Add the textview to the mapView Your text will appear on the map over the marker

0

精彩评论

暂无评论...
验证码 换一张
取 消