|
@@ -473,8 +473,11 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
setTilesType(filterSettings.tilesType);
|
|
|
setType(filterSettings.type);
|
|
|
setRegionsFilter({
|
|
|
- visitedLabel: filterSettings.selectedVisible.value === 1 ? 'in' : 'by',
|
|
|
- year: filterSettings.selectedYear.value
|
|
|
+ visitedLabel:
|
|
|
+ filterSettings.selectedVisible.value && filterSettings.selectedVisible.value === 1
|
|
|
+ ? 'in'
|
|
|
+ : 'by',
|
|
|
+ year: filterSettings.selectedYear.value ?? moment().year()
|
|
|
});
|
|
|
setSeriesFilter(filterSettings.seriesFilter);
|
|
|
}
|
|
@@ -1307,7 +1310,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
const clusterCoordinates = (feature.geometry as GeoJSON.Point).coordinates;
|
|
|
|
|
|
const zoom = await shapeSourceRef.current?.getClusterExpansionZoom(
|
|
|
- feature as turf.Feature
|
|
|
+ feature as GeoJSON.Feature<GeoJSON.Geometry>
|
|
|
);
|
|
|
const newZoom = zoom ?? 2;
|
|
|
|
|
@@ -1385,7 +1388,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
<MapLibreGL.SymbolLayer
|
|
|
id="nomads_symbol"
|
|
|
filter={['!', ['has', 'point_count']]}
|
|
|
- aboveLayerID={"nomads_circle_outline"}
|
|
|
+ aboveLayerID="nomads_circle_outline"
|
|
|
style={{
|
|
|
iconImage: ['get', 'icon_key'],
|
|
|
iconSize: [
|