Last updated:
0 purchases
galli vector plugin
galli_vector_plugin #
galli_vector_plugin is a Flutter plugin 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_plugin to your pubspec.yaml file:
dependencies:
galli_vector_plugin: latest
copied to clipboard
Then, run flutter pub get to install the new dependency.
Usage #
Import the plugin in your Dart code:
import 'package:galli_vector_plugin/galli_vector_plugin.dart';
copied to clipboard
Basic Example #
Here is a simple example of how to use the galli_vector_plugin:
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) {
},
),
copied to clipboard
Documentation #
For detailed documentation and advanced usage, please visit the official documentation.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.