Browse Source

add: add unversioned files

hwh97 5 years ago
parent
commit
aaed5f5fec
1 changed files with 17 additions and 0 deletions
  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;
+  }
+}