aves/lib/model/settings/enums/map_style.dart
2024-07-09 23:54:10 +02:00

24 lines
541 B
Dart

import 'package:aves_map/aves_map.dart';
extension ExtraEntryMapStyle on EntryMapStyle {
static bool isHeavy(EntryMapStyle? style) {
switch (style) {
case EntryMapStyle.googleNormal:
case EntryMapStyle.googleHybrid:
case EntryMapStyle.googleTerrain:
return true;
default:
return false;
}
}
bool get needMobileService {
switch (this) {
case EntryMapStyle.osmHot:
case EntryMapStyle.stamenWatercolor:
return false;
default:
return true;
}
}
}