パッケージ、リポジトリ、アプリカテゴリを検索

flutter_map_marker_cluster のカバー
パッケージ詳細v8.2.2

flutter_map_marker_cluster

Flutterアプリ向けのLeaflet.makerclusterのDart実装。flutter_mapに美しいアニメーション付きマーカークラスタリング機能を提供します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
10万
いいね数
224
Pub ポイント
150

パッケージをインストール

flutter pub add flutter_map_marker_cluster

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter_mapにアニメーション付きマーカークラスタリングをもたらすFlutterパッケージで、Leaflet.markerclusterからインスパイアされています。近接するマーカーを効率的にクラスターにグループ化し、データが密集した地図でのパフォーマンスとユーザー体験を向上させます。クラスターの展開または折りたたみ時にスムーズなアニメーションをサポートし、すべての主要プラットフォームでシームレスに動作します。ビジネスリスト、配達場所、イベントマーカーなど、多数の位置ベースのポイントを表示するアプリに最適です。

用途

  • 高密度の場所データを表示しています
  • 多数のマーカーを使用した地図パフォーマンスの向上
  • インタラクティブなマップ体験の作成
  • リアルタイムでの地理空間データの可視化
  • マップ上のユーザーのナビゲーションを向上させる

主な機能

  • アニメーション化されたクラスタ遷移
  • 効率的なマーカーのグループ化
  • flutter_map とのシームレスな統合
  • カスタムクラスターのスタイル設定をサポート
  • クロスプラットフォーム互換性

適している対象

  • 数百年または数千のマーカーを持つ地図
  • 位置ベースのサービスアプリ
  • データ可視化ダッシュボード
  • モバイルおよびウェブマッピングアプリケーション
  • flutter_map を使用する開発者

注意事項

  • flutter_map をインストールする必要があります
  • 非常に大きなデータセットではパフォーマンスに影響する可能性があります
  • カスタマイズには flutter_map の設定の理解が必要です
  • 追加コードなしで限られた組み込みスタイルオプション
  • 静的またはゆっくりと更新されるデータと併用するのが最適です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Flutter Map Marker Cluster

pub package travis

A Dart implementation of Leaflet.markercluster for Flutter apps. This is a plugin for flutter_map package

Usage

Add flutter_map and flutter_map_marker_cluster to your pubspec:

dependencies:
  flutter_map: any
  flutter_map_marker_cluster: any # or the latest version on Pub

flutter_map package removed old layering system with v3.0.0 use MarkerClusterLayerWidget as member of children parameter list and configure it using MarkerClusterLayerOptions.

 @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Clustering Many Markers Page')),
      drawer: buildDrawer(context, ClusteringManyMarkersPage.route),
      body: FlutterMap(
        options: MapOptions(
          center: LatLng((maxLatLng.latitude + minLatLng.latitude) / 2,
              (maxLatLng.longitude + minLatLng.longitude) / 2),
          zoom: 6,
          maxZoom: 15,
        ),
        children: <Widget>[
          TileLayer(
            urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
          ),
          MarkerClusterLayerWidget(
            options: MarkerClusterLayerOptions(
              maxClusterRadius: 45,
              size: const Size(40, 40),
              alignment: Alignment.center,
              padding: const EdgeInsets.all(50),
              maxZoom: 15,        
              markers: markers,
              builder: (context, markers) {
                return Container(
                  decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(20),
                      color: Colors.blue),
                  child: Center(
                    child: Text(
                      markers.length.toString(),
                      style: const TextStyle(color: Colors.white),
                    ),
                  ),
                );
              },
            ),
          ),
        ],
      ),
    );
  }
Run the example

See the example/ folder for a working example app.

Supporting Me

A donation through my Ko-Fi page would be infinitly appriciated: ko-fi

but, if you can't or won't, a star on GitHub and a like on pub.dev would also go a long way!

Every donation gives me fuel to continue my open-source projects and lets me know that I'm doing a good job.

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

このパッケージを使用しているプロジェクト