Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はGoogleマップに2000の店舗の場所をプロットするのに苦労しています。私は10をプロットしましたが、クライアントが完全なデータセットに2000があると言ったとき、これを実装するための最良の方法を見つけるのに苦労しています。
重要なのは、2000の場所すべてを一度に表示する必要がないということです。ユーザーのGPSがオンになると、ユーザーがどこにいるかを判断し、最寄りの5店舗を表示します。
ありがとう。
MKMapViewのregionDidChangeAnimatedデリゲート関数を とともに使用mapView.regionすると、マップの現在表示可能な領域を特定できます。この可視領域に基づいて場所を動的に追加および削除します。
MKMapView
regionDidChangeAnimated
mapView.region