在osmdroid中将叠加层添加到MapView [英] adding Overlay to a MapView in osmdroid
问题描述
我正在使用osmdroid编写一个简单的android应用程序,该应用程序可以脱机在线工作,直到现在我可以显示地图(在线和离线),并且我想在地图上添加叠加层(标记),我已经搜索了简单的在osmdroid中使用叠加的示例,我尝试了其中的一些,但是它们没有用,所以我想要任何使用osmdroid添加叠加或集市的示例
I am writing a simple android application using osmdroid that work online an offline untill now I am able to display the map (online and offline), and I want to add overlay (markers) on the map, I had search for simple example for using overlay in osmdroid and I tried some of them but they didn't work, so I want any example for adding overlay or marcker using osmdroid
推荐答案
查看ItemizedIconOverlay类.
Look at the ItemizedIconOverlay class.
如果您进行搜索,互联网上有一些示例,示例已发布在此处的Stack Overflow上:在OSMDROID中添加叠印
There's a few examples on the internet if you search, an example has been posted on Stack Overflow here: Adding Overylay to OSMDROID
这篇关于在osmdroid中将叠加层添加到MapView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!