問題タブ [mglmapview]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - SwiftUI と Mapbox を使用して MGLMapView の同じアドレスにある複数の注釈を処理する
問題は、これに関するドキュメントが見つからないということです-同じ場所で注釈をきちんと処理する方法があるかどうかを知っている人はいますか(注釈またはボタンをクリックして注釈を循環させることができます)その場所か何かで)?特定の場所の注釈を循環し、それらに個別にアクセスする方法が必要なだけです。どんな助けや提案も大歓迎です。
私の注釈関数は次のようになります。
MapView (UIViewRepresentable) 構造体の updateUIView 関数で、annos 配列をマップに追加します。