mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-13 09:20:29 +00:00
Add WMS support and measurement functionality
- Implemented WMS layer handling for Slovenian aerial imagery and overlays for cadastral parcels and forest roads. - Added distance measurement feature allowing users to measure distances on the map with long press interactions. - Updated localization files for Croatian, Italian, and Slovenian languages to include new measurement and WMS-related strings. - Enhanced the map layer model to support WMS-specific properties. - Introduced a new tile provider for debugging WMS requests. - Updated the drawing toolbar to include measurement mode and clear measurement functionality. - Integrated SharedPreferences to persist overlay visibility states across app sessions. - Added utility functions for handling the Slovenian coordinate reference system (EPSG:3794).
This commit is contained in:
@@ -392,6 +392,30 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get drawRectangleDesc => 'Draw a rectangular area on the map';
|
||||
|
||||
@override
|
||||
String get measureDistance => 'Measure Distance';
|
||||
|
||||
@override
|
||||
String get measureDistanceDesc => 'Long press two points to measure';
|
||||
|
||||
@override
|
||||
String get clearMeasurement => 'Clear Measurement';
|
||||
|
||||
@override
|
||||
String distanceLabel(String distance) {
|
||||
return 'Distance: $distance';
|
||||
}
|
||||
|
||||
@override
|
||||
String get longPressForSecondPoint => 'Long press for second point';
|
||||
|
||||
@override
|
||||
String get longPressToStartMeasurement => 'Long press to set first point';
|
||||
|
||||
@override
|
||||
String get longPressToStartNewMeasurement =>
|
||||
'Long press to start new measurement';
|
||||
|
||||
@override
|
||||
String get shareDrawings => 'Share Drawings';
|
||||
|
||||
@@ -1864,4 +1888,19 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get updateLater => 'Later';
|
||||
|
||||
@override
|
||||
String get cadastralParcels => 'Cadastral Parcels';
|
||||
|
||||
@override
|
||||
String get forestRoads => 'Forest Roads';
|
||||
|
||||
@override
|
||||
String get showCadastralParcels => 'Show Cadastral Parcels';
|
||||
|
||||
@override
|
||||
String get showForestRoads => 'Show Forest Roads';
|
||||
|
||||
@override
|
||||
String get wmsOverlays => 'WMS Overlays';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user