Flutter power_geojson
A Flutter package for easily displaying GeoJSON polygons and polylines on maps, with customizable styling options.
Features
- Display GeoJSON markers, polygons and polylines on maps.
- Load GeoJSON data from network, assets, files, memory, or strings.
- Customize the appearance and behavior of polygons and polylines.
- Supports Flutter maps and map controllers.
Installation
Add the following dependency to your pubspec.yaml
:
dependencies:
power_geojson: latest
Usage
Displaying GeoJSON Polygons
import 'package:power_geojson/power_geojson.dart';
PowerGeoJSONPolygons.asset(
'assets/polygons.geojson',
builder: (coordinates, properties) {
return Polygon(
points: coordinates,
// Customize polygon appearance here
fillColor: Colors.blue,
borderStokeWidth: 2,
);
},
)
Displaying GeoJSON Polylines
import 'package:power_geojson/power_geojson.dart'; PowerGeoJSONPolylines.asset(
'assets/polylines.geojson',
builder: (polylineProperties, properties) {
return Polyline(
points: polylineProperties,
// Customize polyline appearance here
color: Colors.red,
strokeWidth: 3.0,
);
},
)
For more detailed usage examples and customization options, refer to the documentation.
Documentation
Full documentation for this package can be found on the pub.flutter-io.cn page.
Changelog
See the CHANGELOG.md file for details about recent updates.
Issues and Contributions
Please file any issues, bugs, or feature requests on the
. Contributions are welcome!
License
This project is licensed under the MIT License - see the LICENSE file for details.
Checkout my other Packages you may like
Libraries
- packages/flutter_map_marker_cluster/flutter_map_marker_cluster
- packages/flutter_map_marker_cluster/src/animated_map_widget
- packages/flutter_map_marker_cluster/src/cluster_manager
- packages/flutter_map_marker_cluster/src/cluster_widget
- packages/flutter_map_marker_cluster/src/core/distance_grid
- packages/flutter_map_marker_cluster/src/core/quick_hull
- packages/flutter_map_marker_cluster/src/core/spiderfy
- packages/flutter_map_marker_cluster/src/core/util
- packages/flutter_map_marker_cluster/src/fade
- packages/flutter_map_marker_cluster/src/map_calculator
- packages/flutter_map_marker_cluster/src/map_widget
- packages/flutter_map_marker_cluster/src/marker_cluster_layer
- packages/flutter_map_marker_cluster/src/marker_cluster_layer_options
- packages/flutter_map_marker_cluster/src/marker_cluster_layer_widget
- packages/flutter_map_marker_cluster/src/marker_widget
- packages/flutter_map_marker_cluster/src/node/marker_cluster_node
- packages/flutter_map_marker_cluster/src/node/marker_node
- packages/flutter_map_marker_cluster/src/node/marker_or_cluster_node
- packages/flutter_map_marker_cluster/src/positioned_map_widget
- packages/flutter_map_marker_cluster/src/rotate
- packages/flutter_map_marker_cluster/src/translate
- packages/marker_popup/extension_api
- packages/marker_popup/flutter_map_marker_popup
- packages/marker_popup/src/anchor_align_extension
- packages/marker_popup/src/controller/popup_controller
- packages/marker_popup/src/controller/popup_controller_event
- packages/marker_popup/src/controller/popup_controller_impl
- packages/marker_popup/src/layout/oval_bounds
- packages/marker_popup/src/layout/popup_calculations
- packages/marker_popup/src/layout/popup_container_translate
- packages/marker_popup/src/layout/popup_layout
- packages/marker_popup/src/layout/snap_to_map_layout
- packages/marker_popup/src/layout/snap_to_marker_layout
- packages/marker_popup/src/marker_center_animation
- packages/marker_popup/src/marker_layer
- packages/marker_popup/src/marker_tap_behavior
- packages/marker_popup/src/options/popup_display_options
- packages/marker_popup/src/options/popup_marker_layer_options
- packages/marker_popup/src/popup_animation
- packages/marker_popup/src/popup_builder
- packages/marker_popup/src/popup_container/animated_popup_container
- packages/marker_popup/src/popup_container/popup_container_mixin
- packages/marker_popup/src/popup_container/simple_popup_container
- packages/marker_popup/src/popup_layer
- packages/marker_popup/src/popup_marker_layer
- packages/marker_popup/src/popup_snap
- packages/marker_popup/src/popup_spec
- packages/marker_popup/src/state/inherit_or_create_popup_scope
- packages/marker_popup/src/state/popup_event
- packages/marker_popup/src/state/popup_event_impl
- packages/marker_popup/src/state/popup_scope
- packages/marker_popup/src/state/popup_state
- packages/marker_popup/src/state/popup_state_impl
- packages/packages
- power_geojson