How to implement a little static map preview as list icon?
-
25-09-2019 - |
문제
I built a ListActivity and now I want to add Map Previews as the List Icons. I dont want to extend MapView because: 1st I just need a little static preview and 2nd I already extended to ListView.
I already looked into using the static map api, however that also doesnt look quite good in that small dimensions:
해결책
There is nothing in Android that generates map previews, sorry. You will need to use some Web service for this.
다른 팁
You can use a MapView in your layout and use
map:liteMode="true"
You do not need to extend MapView, just set the above in the layout and you can easily use the view. eg. myMapView.onCreate(), myMapView.getMapAsync() etc.
제휴하지 않습니다 StackOverflow