Parcourir la source

add: add unversioned files

hwh97 il y a 5 ans
Parent
commit
aaed5f5fec
1 fichiers modifiés avec 17 ajouts et 0 suppressions
  1. 17 0
      lib/amap_marker.dart

+ 17 - 0
lib/amap_marker.dart

@@ -0,0 +1,17 @@
+
+class AmapMarker {
+  double lat;
+  double lon;
+  Map<String, dynamic> extras;
+
+  AmapMarker(this.lat, this.lon, this.extras);
+
+  Map toMap() {
+    Map map = {
+      "lat": lat,
+      "lon": lon
+    };
+    map.addAll(extras);
+    return map;
+  }
+}