Issue
I need to add custom markers to a mapview. First question : is there a standard/default overlay/marker that I can use ? Second : if I've to create a png for the marker overlay, which is the best size for the image ? Do I have to create different images for each screen sizes (ldpi, mdpi, hdpi) ?
Solution
- Extend
ItemizedOverlay
and useOverlayItem
, where you can set you custom drawable viasetMarker(drawable)
. - Depends on your design. I personally used 32x32. You should give different sizes a try an see how they fit.
- Yes, this is preferable. You can use bitmap drawable, which can automatically resolve based on your screen size.
Answered By - Peter Knego
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.