ordering-ui-react-native 0.23.75-test2 → 0.23.75-test4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -266,8 +266,8 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
266
266
|
ref={mapRef}
|
|
267
267
|
provider={PROVIDER_GOOGLE}
|
|
268
268
|
initialRegion={{
|
|
269
|
-
latitude: initialPosition?.latitude ??
|
|
270
|
-
longitude: initialPosition?.longitude ??
|
|
269
|
+
latitude: initialPosition?.latitude ?? 1,
|
|
270
|
+
longitude: initialPosition?.longitude ?? 1,
|
|
271
271
|
latitudeDelta: haveOrders ? 0.01 : 0.1,
|
|
272
272
|
longitudeDelta: haveOrders ? 0.01 * ASPECT_RATIO : 0.1 * ASPECT_RATIO,
|
|
273
273
|
}}
|
|
@@ -279,14 +279,14 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
279
279
|
moveOnMarkerPress
|
|
280
280
|
/* onTouchStart={() => (following.current = false)} */
|
|
281
281
|
>
|
|
282
|
-
<>
|
|
282
|
+
{/* <>
|
|
283
283
|
{Object.values(markerGroups).length ? (Object.values(markerGroups).map((marker: any) => (
|
|
284
284
|
<RenderMarker
|
|
285
285
|
key={marker[0]?.business_id}
|
|
286
286
|
marker={marker[0]}
|
|
287
287
|
orderIds={marker.map((order: any) => order.id).join(', ')}
|
|
288
288
|
/>
|
|
289
|
-
))) :
|
|
289
|
+
))) : null}
|
|
290
290
|
{Object.values(customerMarkerGroups).length ? (Object.values(customerMarkerGroups).map((marker: any) => (
|
|
291
291
|
<RenderMarker
|
|
292
292
|
key={marker[0]?.customer_id}
|
|
@@ -294,7 +294,7 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
294
294
|
orderIds={marker.map((order: any) => order.id).join(', ')}
|
|
295
295
|
customer
|
|
296
296
|
/>
|
|
297
|
-
))) :
|
|
297
|
+
))) : null}
|
|
298
298
|
{typeof location.lat === 'number' && !Number.isNaN(location.lat) && typeof location.lng === 'number' && !Number.isNaN(location.lng) ? (
|
|
299
299
|
<Marker
|
|
300
300
|
coordinate={{
|
|
@@ -317,10 +317,10 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
317
317
|
/>
|
|
318
318
|
</View>
|
|
319
319
|
</Marker>
|
|
320
|
-
) :
|
|
321
|
-
</>
|
|
320
|
+
) : null}
|
|
321
|
+
</> */}
|
|
322
322
|
</MapView>
|
|
323
|
-
<OFab
|
|
323
|
+
{/* <OFab
|
|
324
324
|
materialIcon
|
|
325
325
|
iconName="plus"
|
|
326
326
|
onPress={() => onPressZoomIn()}
|
|
@@ -345,9 +345,9 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
345
345
|
bottom: 35,
|
|
346
346
|
right: 20,
|
|
347
347
|
}}
|
|
348
|
-
/>
|
|
348
|
+
/> */}
|
|
349
349
|
</View>
|
|
350
|
-
) :
|
|
350
|
+
) : null}
|
|
351
351
|
</View>
|
|
352
352
|
<View>
|
|
353
353
|
<Alert
|