|
@@ -1,5 +1,6 @@
|
|
|
import 'package:flutter_map/flutter_map.dart';
|
|
import 'package:flutter_map/flutter_map.dart';
|
|
|
import 'package:location/data/bean/user_info.dart';
|
|
import 'package:location/data/bean/user_info.dart';
|
|
|
|
|
+import 'package:location/data/consts/constants.dart';
|
|
|
|
|
|
|
|
class Location2MarkerUtil {
|
|
class Location2MarkerUtil {
|
|
|
Location2MarkerUtil._();
|
|
Location2MarkerUtil._();
|
|
@@ -10,7 +11,9 @@ class Location2MarkerUtil {
|
|
|
markerName: e.getUserNickName(),
|
|
markerName: e.getUserNickName(),
|
|
|
longitude: e.lastLocation.value?.longitude,
|
|
longitude: e.lastLocation.value?.longitude,
|
|
|
latitude: e.lastLocation.value?.latitude,
|
|
latitude: e.lastLocation.value?.latitude,
|
|
|
- markerType: MarkerType.friend,
|
|
|
|
|
|
|
+ markerType: e.id == Constants.mineLocationId
|
|
|
|
|
+ ? MarkerType.mine
|
|
|
|
|
+ : MarkerType.friend,
|
|
|
isSelected: isSelected,
|
|
isSelected: isSelected,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|