mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 19:09:49 +03:00
maplibre is a ground-up rewrite of maplibre_gl with a more modern and ergonomic API. It should fix a few bugs we've seen with maps, and perform better.
19 lines
426 B
Dart
19 lines
426 B
Dart
import 'package:maplibre/maplibre.dart';
|
|
|
|
class Marker {
|
|
final Geographic 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;
|
|
}
|