Alex Stone
Alex Stone

Reputation: 47328

iOS how can I make MapKit display custom indoor map?

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?

Upvotes: 4

Views: 3926

Answers (2)

incanus
incanus

Reputation: 5128

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

Upvotes: 4

n_b
n_b

Reputation: 1156

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.

Upvotes: 2

Related Questions