0

I am relatively new to Swift, but am trying to build an iOS app that displays the location of someone in my school over the school floor plan. I have set up an MKMapView that displays the user's location, but am not sure how to display the floor plan over the map without covering the user's location. If someone could point me in the right direction I would really appreciate it!

1 Answers1

-1

You can use custom annotation view to draw your school floor (or floors). You can set your custom annotation image as a floor scheme. and pin it to the location. So it would moves with the map and the only thing you should manage - annotation scale according to the map zoom level.

User's location pin is an annotation view object too, so you need to put your floor scheme annotation under it!

Z-index of iOS MapKit user location annotation

Community
  • 1
  • 1