How to use map.osm xml file in osmdroid instead of

2019-06-14 02:26发布

I have received a customized osm file (map.osm) from my customer to integrate Android project, but I don't know how to use that file, usually I'm using

mapView.setTileSource(TileSourceFactory.MAPNIK);   

So, how I can use the map.osm file my android project.

1条回答
贼婆χ
2楼-- · 2019-06-14 02:43

Sorry but AFAIK it doesn't work like that. A Tilesource is a rendered raster map of geodata. Thus you need to render the data first in a local renderer, for example Maperiative or TileMill. They can create a tile folder structure output, that can be used by OSMdroid instead of the official tile sources: http://code.google.com/p/osmdroid/wiki/HowToUsePackager

查看更多
登录 后发表回答