Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First, if you do this while using satellite/aerial photographs you will violate the <a href="https://developers.google.com/maps/iphone/terms" rel="nofollow">Google Maps Terms of Service</a>.</p> <blockquote> <p>10 License Restrictions. Except as expressly permitted under the Terms, or unless you have received prior written authorization from Google (or, as applicable, from the provider of particular Content), Google's licenses above are subject to your adherence to all of the restrictions below. Except as explicitly permitted in Section 7, you must not (nor may you permit anyone else to): </p> <p>...</p> <p>10.7 delete, obscure, or in any manner alter any warning, notice (including but not limited to any copyright or other proprietary rights notice), or link that appears in the Service or the Content;</p> </blockquote> <p>Any circular <code>MKMapView</code> will probably obscure the copyright notice that displays with photographs.</p> <p>We may expect <code>MKMapView</code> will soon change from using Google data to Apple data, but there will probably be similar text that you must not obscure.</p> <hr> <p>With that out of the way, there are two ways you can make this work:</p> <ol> <li>Create a <code>UIView</code> subclass with a transparent background, make its <code>drawRect</code> method draw around a circular hole, and make its <code>pointInside:withEvent:</code> method return <code>NO</code> for the same hole. Place one of these views on top of your <code>MKMapView</code>.</li> <li>Create a <code>CAShapeLayer</code> with an opaque circle (or any other shape) and make it the <code>mask</code> of the <code>MKMapView</code>'s own <code>layer</code>. This will allow the circular map to appear anywhere, but it will still be possible to interact with its invisible corners.</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload