summaryrefslogtreecommitdiff
path: root/plugins/aves_map/lib/src/interface.dart
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/aves_map/lib/src/interface.dart')
-rw-r--r--plugins/aves_map/lib/src/interface.dart12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/aves_map/lib/src/interface.dart b/plugins/aves_map/lib/src/interface.dart
new file mode 100644
index 0000000..3f2cc17
--- /dev/null
+++ b/plugins/aves_map/lib/src/interface.dart
@@ -0,0 +1,12 @@
+import 'package:aves_map/src/geo_entry.dart';
+import 'package:aves_map/src/marker/key.dart';
+import 'package:flutter/material.dart';
+import 'package:latlong2/latlong.dart';
+
+typedef MarkerClusterBuilder<T> = Map<MarkerKey<T>, GeoEntry<T>> Function();
+typedef MarkerWidgetBuilder<T> = Widget Function(MarkerKey<T> key);
+typedef MarkerImageReadyChecker<T> = bool Function(MarkerKey<T> key);
+typedef UserZoomChangeCallback = void Function(double zoom);
+typedef MapTapCallback = void Function(LatLng location);
+typedef MarkerTapCallback<T> = void Function(GeoEntry<T> geoEntry);
+typedef MarkerLongPressCallback<T> = void Function(GeoEntry<T> geoEntry, LatLng tapLocation);