Hello everyone -
I created a navigation app that uses a map overlay for finite spaces such as a zoo. I get these overlays created by a designer in .PNG - the designer creates the overlays and then puts a square or rectangle box around the overlay because it needs to be placed in 9 pieces making it easier to render when user zooms in/out...
I used to have my Swift devs place the overlay using the correct coordinates that were given by a single person, but we never found out exactly how they did it - and now I can no longer contact the dev.
Can anyone help me by telling me how I can get the coordinates (I am thinking that any opposite vertices would do - and maybe the center point?).
I also have a few other questions:
a. Is .SVG best to use for map overlays?
b. Should we continue to chop into 9 pieces for faster rendering or is there a better way to do this in MapKit (we have been doing this for 4 years, maybe there is a better way)
I would be so thankful for any help.
Best,
Michael
Take a look at using MKTileOverlay
. Our sample code project has some examples that will help you understand how tiles work for rendering. Additionally, there's an example that shows you the tile coordinate scheme so that you can see what tiles cover the zoo, and where the boundaries are.
—Ed Ford, DTS Engineer