iOS how can I make MapKit display custom indoor ma

2019-05-06 21:13发布

I'm trying to create a map of the office I'm working at. I have a high resolution image, and would like to autorotate it in the direction the user is heading, allowing the user to navigate around the map. I thought this could be accomplished using CoreMotion/CoreLocation and a UIScrollView, but this seems like there's some work involved.

So I'm wondering if there are easier solutions for combining a custom map and direction/position on that map - can MapKit handle this for me? Are there other frameworks that can help me show a local 2D map with compass orientation on it?

2条回答
相关推荐>>
2楼-- · 2019-05-06 21:55

You can convert your high-res image into map tiles easily with TileMill.

查看更多
该账号已被封号
3楼-- · 2019-05-06 22:01

You should use some custom tiles with MKTileOverlay which only display at a very high zoom level (like z 18 or whatever). I suggest you take a look over at NSHipster and read what they have about it:

http://nshipster.com/mktileoverlay-mkmapsnapshotter-mkdirections/

*Disclaimer: I haven't tried this myself, came across the NSHipster article while searching for solutions to my own problems.

查看更多
登录 后发表回答