galli_vector_package 0.0.4 galli_vector_package: ^0.0.4 copied to clipboard
A Galli vector map widget that displays a map with custom markers, lines, circles and polygons.
galli_vector_package #
galli_vector_package
is a Flutter package for integrating vector maps from Gallimaps into your Flutter applications. This plugin provides an easy way to display and interact with high-quality vector maps.
Features #
- High-performance vector maps
- Map markers, routes, fills and circles
- User interaction handling (e.g., tap, zoom, tilt, pan)
- Automatic map caching for offline
Installation #
Add galli_vector_package
to your pubspec.yaml
file:
dependencies:
galli_vector_package: latest
Then, run flutter pub get to install the new dependency.
Usage #
Import the plugin in your Dart code:
import 'package:galli_vector_package/galli_vector_package.dart';
Basic Example #
Here is a simple example of how to use the galli_vector_package:
GalliMap(
showCurrentLocation: true,
authToken: "authToken",
size: (
height: MediaQuery.of(context).size.height * 2,
width: MediaQuery.of(context).size.width * 2,
),
compassPosition: (
position: CompassViewPosition.topRight,
offset: const Point(32, 82)
),
showCompass: true,
onMapCreated: (newC) {
controller = newC;
setState(() {});
},
onMapClick: (LatLng latLng) {
},
),
Documentation #
For detailed documentation and advanced usage, please visit the official documentation.