Geospatial demo and sample apps for Dart and Flutter.
This is a companion demo code repository for the Geospatial tools for Dart repository that contains Dart packages providing coordinates, geometries, feature objects, metadata, projections, tiling schemes, vector data models and formats, and gespatial Web APIs.
✨ See also the article Geospatial tools for Dart - version 1.0 published at Medium.
- Shows earthquakes on a basic map view with data fetched from the GeoJSON feed provided by USGS (the United States Geological Survey) and OGC API Feature service provided by BGS (the British Geological Survey).
- Coding topics
- State management (settings, query filters, repositories and fecthing data from APIs, presentation formatters, map view markers).
- Using API clients to fetch geospatial data (GeoJSON) from a custom REST service or a standardized OGC API Features service.
- Visualizing earthquakes (that are geospatial feature entities with point geometries) as map markers on a map view.
- Notes
- The UI of this sample app is very basic. The app focuses on a clean demonstration of the topics mentioned above.
- To run this demo, you need to obtain and configure an API key for Google Maps.
- Supported platforms: only iOS and Android
- Dart packages utilized
- equatable: equality and hash utils
- geobase: geospatial data structures and vector data support for GeoJSON
- geodata: fetching a Web API with GeoJSON data
- intl: localized date formatting
- state_notifier: helps manipulating a state object with multiple ways to update it
- Flutter packages utilized
- flutter_riverpod: an efficient and straightforward state management library (see also Riverpod docs)
- google_maps_flutter: a map view widget for iOS, Android and web platforms (Note: an API key must be configured)
2023-10-31
- Updated earthquake_map to use stable 1.0.0 versions of geobase and geodata packages
- Google Maps for Flutter now runs on web too!
- See also the article Geospatial tools for Dart - version 1.0 published at Medium.
2022-08-29 (small updates on 2022-12-03)
- The first version of the earthquake_map sample demonstrating state management, Web APIs for geospatial data and visualizing markers on a map view.
This project is authored by Navibyte.
This project is licensed under the "BSD-3-Clause"-style license.
Please see the LICENSE.