패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.0.6

flutter_map_arcgis

Flutter 지도용 ArcGIS 플러그인. 기능: 고유 렌더링, onTap 이벤트, 속성과 함께 onTap, 기하형태(점, 다각형, 다선) 지원

AndroidiOS
30일 다운로드
143
좋아요
37
Pub 점수
120

패키지 설치

flutter pub add flutter_map_arcgis

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

ArcGIS 기능을 flutter_map 라이브러리에 통합하는 플러터 플러그인으로, 개발자가 ArcGIS 서비스에서 GIS 데이터를 렌더링할 수 있도록 합니다. 점, 다중선, 다각형 등 다양한 지오메트리 유형을 지원하며, 사용자 정의 렌더링과 onTap 이벤트 및 속성 접근과 같은 상호작용 기능을 제공합니다. 안드로이드와 iOS 전용으로 설계되어 풍부한 지리공간 기능을 통해 맵 애플리케이션을 강화합니다. 오픈소스이며 GitHub에서 유지 관리됩니다.

사용 사례

  • ArcGIS 지도 레이어 표시
  • 터치 이벤트가 있는 인터랙티브 GIS 지도
  • 점과 다각형과 같은 공간 데이터 시각화
  • ArcGIS 통합을 활용한 위치 기반 앱 개발
  • 동적 지오스페이셜 콘텐츠 렌더링

주요 기능

  • 점, 다각선 및 다각형 지오메트리 지원
  • 사용자 정의 가능한 ArcGIS 레이어 렌더링
  • OnTap 이벤트 처리 및 속성
  • flutter_map와의 통합
  • 오픈소스이며 지속적으로 유지 관리되고 있습니다

적합한 대상

  • ArcGIS 데이터를 사용하는 개발자
  • 인터랙티브 GIS 지도가 필요한 앱
  • 지리공간 시각화가 필요한 모바일 앱
  • 위치 인식 Flutter 앱을 개발하는 팀
  • 공간 데이터 분석을 포함하는 프로젝트

고려 사항

  • ArcGIS 서비스 URL가 필요합니다
  • Android 및 iOS 플랫폼에만 제한됨
  • flutter_map 호환성에 의존함
  • 복잡한 레이어를 위해 추가 구성이 필요할 수 있습니다
  • 성능은 데이터 크기와 네트워크 속도에 따라 달라집니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Flutter Map plugin for ArcGIS Esri

Currently support feature layer(point, polygon, polyline)

We are working on more features

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

Usage

Add flutter_map, dio and flutter_map_arcgis to your pubspec:

dependencies:
  flutter_map: any
  flutter_map_arcgis: any # or the latest version on Pub
  dio: any # or the latest version on Pub

Add it in you FlutterMap and configure it using FeatureLayerOptions.

import 'package:flutter/material.dart';
import 'package:flutter_map_arcgis/flutter_map_arcgis.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('ArcGIS')),
        body: Padding(
          padding: EdgeInsets.all(8.0),
          child: Column(
            children: [
              Flexible(
                child: FlutterMap(
                  options: MapOptions(
                    // center: LatLng(39.7644863,-105.0199111), // line
                    center: LatLng(35.611909, -82.440682),
                    zoom: 14.0,


                  ),
                  children: [
                    TileLayer(
                      urlTemplate:
                      'http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',
                      subdomains: ['mt0', 'mt1', 'mt2', 'mt3'],
                    ),
                    // FeatureLayer(FeatureLayerOptions("https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Congressional_Districts/FeatureServer/0",
                    //   "polygon",
                    //   onTap: (dynamic attributes, LatLng location) {
                    //     print(attributes);
                    //   },
                    //   render: (dynamic attributes){
                    //     return PolygonOptions(
                    //         borderColor: Colors.red,
                    //         color: Colors.black45,
                    //         borderStrokeWidth: 2,
                    //         isFilled:true
                    //     );
                    //   },
                    // ),)
                    FeatureLayer(
                        FeatureLayerOptions(
                          "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0",
                          "point",
                          render:(dynamic attributes){
                            // You can render by attribute
                            return PointOptions(
                              width: 30.0,
                              height: 30.0,
                              builder: const Icon(Icons.pin_drop),
                            );
                          },
                          onTap: (attributes, LatLng location) {
                            print(attributes);
                          },
                        )
                    ),
                    // FeatureLayer(FeatureLayerOptions(
                    //   "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Denver_Streets_Centerline/FeatureServer/0",
                    //   "polyline",
                    //   render:(dynamic attributes){
                    //     // You can render by attribute
                    //     return PolygonLineOptions(
                    //         borderColor: Colors.red,
                    //         color: Colors.red,
                    //         borderStrokeWidth: 2
                    //     );
                    //   },
                    //   onTap: (attributes, LatLng location) {
                    //     print(attributes);
                    //   },
                    // ))

                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}


Run the example

See the example/ folder for a working example app.

카테고리

의존성

의존성 목록 5 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.