<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xyk</author_name>
  <author_url>https://blog.hatena.ne.jp/xyk/</author_url>
  <blog_title>xyk blog</blog_title>
  <blog_url>https://xyk.hatenablog.com/</blog_url>
  <categories>
    <anon>ios</anon>
    <anon>swift</anon>
    <anon>mapView</anon>
  </categories>
  <description>検証環境: Xcode Version 12.5 (12E262) Swift 5.4 iOS Deployment Target 11.0 表示中のマップ(MKMapView)領域内に配置されているアノテーション(MKAnnotation)を調べる方法について。 MKMapView.visibleMapRectで現在表示中の領域を取得し、MKMapView.annotations(in:)に表示領域の mapRect を渡すことで表示領域内にあるアノテーション配列を取得できる。 以下ではそれらを使い Extension として実装した。 extension MKMapView { func …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxyk.hatenablog.com%2Fentry%2F2021%2F06%2F30%2F120304&quot; title=&quot;表示中のマップ(MKMapView)領域内に含まれるアノテーション(MKAnnotation)を調べる - xyk blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-30 12:03:04</published>
  <title>表示中のマップ(MKMapView)領域内に含まれるアノテーション(MKAnnotation)を調べる</title>
  <type>rich</type>
  <url>https://xyk.hatenablog.com/entry/2021/06/30/120304</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
