モジュール構成
MapConductor は複数の Gradle モジュールに分割されているため、必要なものだけに依存できます。このページでは、v1.1.3 の各 android-xxx モジュールを要約します。
コアと BOM
Section titled “コアと BOM”mapconductor-bom
Section titled “mapconductor-bom”すべての MapConductor アーティファクトの Bill of Materials です。
- すべてのモジュール間でバージョンを調整します
- すべてのプロジェクトに推奨されます
implementation(platform("com.mapconductor:mapconductor-bom:1.1.3"))android-sdk-core
Section titled “android-sdk-core”コアランタイムと共有抽象化:
- ジオメトリ型:
GeoPointInterface,GeoRectBounds - カメラ型:
MapCameraPositionInterface,VisibleRegion - マップ抽象化:
MapViewStateInterface,MapViewControllerInterface,MapViewBase - プラグイン / capability レジストリ:
MapServiceRegistry(LocalMapServiceRegistry) - オーバーレイプリミティブ:
MarkerState,PolylineState,PolygonState,CircleState,GroundImageState
他のすべてのモジュールは mapconductor-core の上に構築されています。
地図SDK統合
Section titled “地図SDK統合”地図SDK固有のモジュールは、各 SDK に統一 API を実装します:
android-for-googlemaps
Section titled “android-for-googlemaps”GoogleMapViewComposableGoogleMapViewState- Google Maps 固有のオーバーレイコントローラ
android-for-mapbox
Section titled “android-for-mapbox”MapboxMapViewComposableMapboxViewState
android-for-here
Section titled “android-for-here”HereMapViewComposableHereViewState
android-for-arcgis
Section titled “android-for-arcgis”ArcGISMapViewComposableArcGISMapViewState
android-for-maplibre
Section titled “android-for-maplibre”MapLibreMapViewComposableMapLibreViewState
各地図SDKモジュールは:
MapViewStateInterfaceとコントローラバインディングを実装します- 地図SDK固有のカメラと表示可能領域を
MapCameraPositionInterfaceにマッピングします - オーバーレイコントローラ(マーカー、ポリライン、ポリゴン、円、サポートされている場合はグラウンドイメージ)を公開します
実験的 / ユーティリティモジュール
Section titled “実験的 / ユーティリティモジュール”android-icons
Section titled “android-icons”純粋な Compose で実装された Composable マーカーアイコン:
CircleIcon,FlagIcon- 情報バブルスタイル(丸、尾付きなど)
地図SDK固有の drawable に依存せずに、地図SDK間で一貫したマーカービジュアルが必要な場合に便利です。
android-heatmap
Section titled “android-heatmap”地図実装非依存なヒートマップオーバーレイ:
HeatmapOverlayComposable- バッチ更新用の
HeatmapPoints - 動的プロパティ変更のための
HeatmapOverlayState - カスタム
HeatmapGradientサポート
タイルベースのラスターレイヤーを通じてすべての地図プロバイダで動作します。詳しくは ヒートマップ を参照してください。
android-marker-clustering
Section titled “android-marker-clustering”すべての地図プロバイダに対応した自動マーカークラスタリング:
MarkerClusterGroupComposable- クラスタリング動作設定のための
MarkerClusterGroupState - カスタム
clusterIconProviderサポート - ズーム/パンアニメーション
詳しくは マーカークラスタリング を参照してください。
例示アプリケーション
Section titled “例示アプリケーション”example-app
Section titled “example-app”以下を実証するショーケースアプリケーション:
- 基本的なマップ使用と地図SDKの切り替え
- カメラ処理と表示可能領域(
VisibleRegionPage,ZoomCalibrationPage) - ポリライン、ポリゴン、円、グラウンドイメージ
- 情報バブルとカスタムマーカーアイコン
simple-map-app
Section titled “simple-map-app”クイック統合テストとデバッグのための最小限の例です。
モジュールの選択方法
Section titled “モジュールの選択方法”典型的な構成:
// 最小限: Google Maps のみimplementation(platform("com.mapconductor:mapconductor-bom:1.1.3"))implementation("com.mapconductor:core")implementation("com.mapconductor:for-googlemaps")// アイコンと戦略を使用したマルチ地図SDKimplementation(platform("com.mapconductor:mapconductor-bom:1.1.3"))implementation("com.mapconductor:core")implementation("com.mapconductor:for-googlemaps")implementation("com.mapconductor:for-mapbox")implementation("com.mapconductor:icons")implementation("com.mapconductor:marker-strategy")このページを高レベルのマップとして使用してください。各領域(コア、コンポーネント、状態、実験的)の詳細な API 情報は、既存の セクション(docs/src/core, docs/src/components など)から移行できます。