mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(mobile): drift map page
This commit is contained in:
parent
da5deffd03
commit
d308d023c2
15 changed files with 783 additions and 0 deletions
21
mobile/lib/domain/models/map.model.dart
Normal file
21
mobile/lib/domain/models/map.model.dart
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import 'package:maplibre_gl/maplibre_gl.dart';
|
||||
|
||||
class Marker {
|
||||
final LatLng location;
|
||||
final String assetId;
|
||||
|
||||
const Marker({
|
||||
required this.location,
|
||||
required this.assetId,
|
||||
});
|
||||
|
||||
@override
|
||||
bool operator ==(covariant Marker other) {
|
||||
if (identical(this, other)) return true;
|
||||
|
||||
return other.location == location && other.assetId == assetId;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => location.hashCode ^ assetId.hashCode;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue