0

I'm currently working with MKOverlays in the Apple MapKit. I try to draw rooms inside of buildings and when I put the map into 3D mode the rooms dismiss and are displayed below the buildings in the map.

Here's how I add them to the map:

let overlays = ETS.Map.shapes(shapes, forFloor: floor)
self.mapView.addOverlays(overlays, level: .aboveLabels)

I also tried level: .aboveRoads.

Here are two pictures how it looks like:

Shows the room on top of the building Shows the room hidden behind the building when map turns to 3D mode

Sn0wfreeze
  • 1,959
  • 3
  • 18
  • 32

1 Answers1

1

Think about sea levels when working with MKOverlays in a "3d" environment. Technical notes in the answer to this question: How do I show MKOverlay above MKAnnotations?

Community
  • 1
  • 1
MikeLondonUK
  • 140
  • 1
  • 8
  • I found this, too. I'm working from Norway and they don't have 3D Buildings here, but actually they could be added. So you need to disable buildings at all if you want to show overlays inside a building – Sn0wfreeze Dec 07 '16 at 16:18