|
@@ -401,6 +401,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
|
|
|
const cachedUrl = await ExpoImage.getCachePathAsync(img);
|
|
const cachedUrl = await ExpoImage.getCachePathAsync(img);
|
|
const cachedUrlVisited = await ExpoImage.getCachePathAsync(imgVisited);
|
|
const cachedUrlVisited = await ExpoImage.getCachePathAsync(imgVisited);
|
|
|
|
+
|
|
if (!cachedUrl || !cachedUrlVisited) {
|
|
if (!cachedUrl || !cachedUrlVisited) {
|
|
ExpoImage.prefetch([img, imgVisited]);
|
|
ExpoImage.prefetch([img, imgVisited]);
|
|
}
|
|
}
|
|
@@ -428,7 +429,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
feature.properties.icon_key = user_id;
|
|
feature.properties.icon_key = user_id;
|
|
}
|
|
}
|
|
|
|
|
|
- if (avatarPath) {
|
|
|
|
|
|
+ if (avatarPath && !images[user_id]) {
|
|
const cachedUrls = await ExpoImage.getCachePathAsync(avatarUrl.uri);
|
|
const cachedUrls = await ExpoImage.getCachePathAsync(avatarUrl.uri);
|
|
if (!cachedUrls) {
|
|
if (!cachedUrls) {
|
|
ExpoImage.prefetch([`${API_HOST}${avatarPath}`]);
|
|
ExpoImage.prefetch([`${API_HOST}${avatarPath}`]);
|
|
@@ -1373,7 +1374,6 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
id="nomads_circle_outline"
|
|
id="nomads_circle_outline"
|
|
filter={['!', ['has', 'point_count']]}
|
|
filter={['!', ['has', 'point_count']]}
|
|
aboveLayerID={Platform.OS === 'android' ? 'place-continent' : undefined}
|
|
aboveLayerID={Platform.OS === 'android' ? 'place-continent' : undefined}
|
|
- belowLayerID="nomads_symbol"
|
|
|
|
style={{
|
|
style={{
|
|
circleRadius: ['interpolate', ['linear'], ['zoom'], 0, 15, 5, 18, 10, 21, 15, 24, 20, 27],
|
|
circleRadius: ['interpolate', ['linear'], ['zoom'], 0, 15, 5, 18, 10, 21, 15, 24, 20, 27],
|
|
circleColor: 'rgba(255, 126, 0, 1)',
|
|
circleColor: 'rgba(255, 126, 0, 1)',
|
|
@@ -1385,7 +1385,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
<MapLibreGL.SymbolLayer
|
|
<MapLibreGL.SymbolLayer
|
|
id="nomads_symbol"
|
|
id="nomads_symbol"
|
|
filter={['!', ['has', 'point_count']]}
|
|
filter={['!', ['has', 'point_count']]}
|
|
- aboveLayerID={Platform.OS === 'android' ? 'place-continent' : undefined}
|
|
|
|
|
|
+ aboveLayerID={"nomads_circle_outline"}
|
|
style={{
|
|
style={{
|
|
iconImage: ['get', 'icon_key'],
|
|
iconImage: ['get', 'icon_key'],
|
|
iconSize: [
|
|
iconSize: [
|