|
@@ -618,7 +618,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
};
|
|
};
|
|
|
const filteredNomads = sanitizeNomadsGeoJSON(rawFiltered);
|
|
const filteredNomads = sanitizeNomadsGeoJSON(rawFiltered);
|
|
|
|
|
|
|
|
- if (!nomads || JSON.stringify(filteredNomads) !== JSON.stringify(nomads)) {
|
|
|
|
|
|
|
+ if (!nomads || filteredNomads.features.length !== nomads.features.length) {
|
|
|
setNomads(filteredNomads);
|
|
setNomads(filteredNomads);
|
|
|
}
|
|
}
|
|
|
if (usersOnMapCount && usersOnMapCount.count) {
|
|
if (usersOnMapCount && usersOnMapCount.count) {
|
|
@@ -906,13 +906,14 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
|
|
|
|
|
const seriesTextField = useMemo(() => {
|
|
const seriesTextField = useMemo(() => {
|
|
|
const ids = seriesFilter.labelIds;
|
|
const ids = seriesFilter.labelIds;
|
|
|
- if (!ids) return ['get', 'name'] as unknown as string;
|
|
|
|
|
|
|
+ if (!ids) return ['step', ['zoom'], '', 9, ['get', 'name']] as unknown as string;
|
|
|
if (ids.length === 0) return '';
|
|
if (ids.length === 0) return '';
|
|
|
return [
|
|
return [
|
|
|
- 'case',
|
|
|
|
|
- ['in', ['get', 'series_id'], ['literal', ids]],
|
|
|
|
|
- ['get', 'name'],
|
|
|
|
|
- ''
|
|
|
|
|
|
|
+ 'step',
|
|
|
|
|
+ ['zoom'],
|
|
|
|
|
+ '',
|
|
|
|
|
+ 9,
|
|
|
|
|
+ ['case', ['in', ['get', 'series_id'], ['literal', ids]], ['get', 'name'], '']
|
|
|
] as unknown as string;
|
|
] as unknown as string;
|
|
|
}, [seriesFilter.labelIds]);
|
|
}, [seriesFilter.labelIds]);
|
|
|
|
|
|