I am trying to add an overlay to iOS MapKit in order to show floor plans. However, I am unsure about the best way of doing this. If I add the floor plans by using an MKOverlay, will the floor plans be loaded lazily or do I need to find out which part of the map is being displayed and update overlays thereafter? I also looked at using MKTileOverlay, as it is using lazy loading, but I have the impression that it should be used for completely covering of the map and not only to add to the existing one. Is this correct?
Yes, you are right MKTileOverlay
can cover whole map with tiles and Yes it is using lazy loading.
Use MKOverlay
if you are not willing to replace native look and fill of map. You can also achieve lazy loading for MKOverlay
too.
Note: MKTileOverlay
will not remove your already existing MKAnnotations
and MKOverlay
.