Browse Source

test series

Viktoriia 2 weeks ago
parent
commit
77efa21906
1 changed files with 8 additions and 7 deletions
  1. 8 7
      src/screens/InAppScreens/MapScreen/index.tsx

+ 8 - 7
src/screens/InAppScreens/MapScreen/index.tsx

@@ -1317,7 +1317,8 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
       <MapLibreRN.MapView
         ref={mapRef}
         style={styles.map}
-        mapStyle={VECTOR_MAP_HOST + '/nomadmania-maps.json'}
+        // mapStyle={VECTOR_MAP_HOST + '/nomadmania-maps.json'}
+        mapStyle={'https://nomadmania.eu/omt/style_new.json'}
         rotateEnabled={false}
         attributionEnabled={false}
         onPress={onMapPress}
@@ -1326,7 +1327,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
         onRegionWillChange={_.debounce(handleMapChange, 200)}
         onDidFinishLoadingStyle={() => setDidFinishLoadingStyle(true)}
       >
-        <MapLibreRN.Images
+        {/* <MapLibreRN.Images
           images={{
             ...images,
             'default-series-icon': defaultSeriesIcon
@@ -1349,7 +1350,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
           }}
         >
           <View />
-        </MapLibreRN.Images>
+        </MapLibreRN.Images> */}
 
         {markerCoords && (
           <MapLibreRN.PointAnnotation id="marker" coordinate={markerCoords}>
@@ -1486,7 +1487,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
           tileUrlTemplates={[VECTOR_MAP_HOST + '/tiles/series/{z}/{x}/{y}.pbf']}
           onPress={handleMarkerPress}
         >
-          {seriesFilter.status !== 1 && Object.keys(images).length > 0
+          {seriesFilter.status !== 1
             ? (() => {
                 try {
                   return (
@@ -1501,7 +1502,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
                       style={{
                         symbolSpacing: 1,
                         iconImage: '{series_id}',
-                        iconSize: 0.51,
+                        // iconSize: 0.51,
                         iconAllowOverlap: true,
                         iconIgnorePlacement: true,
                         visibility: 'visible',
@@ -1520,7 +1521,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
               })()
             : null}
 
-          {seriesFilter.status !== 0 && Object.keys(images).length > 0
+          {seriesFilter.status !== 0
             ? (() => {
                 try {
                   return (
@@ -1535,7 +1536,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
                       style={{
                         symbolSpacing: 1,
                         iconImage: '{series_id}v',
-                        iconSize: 0.51,
+                        // iconSize: 0.51,
                         iconAllowOverlap: true,
                         iconIgnorePlacement: true,
                         visibility: 'visible',