How to implement a little static map preview as list icon?
-
25-09-2019 - |
Question
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:
Solution
There is nothing in Android that generates map previews, sorry. You will need to use some Web service for this.
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow