Skip to content

[Bug]: #3918

@borjiomar38

Description

@borjiomar38

Mapbox Implementation

Mapbox

Mapbox Version

default

React Native Version

0.74.3

Platform

Android

@rnmapbox/maps version

10.1.35

Standalone component to reproduce

import {WINDOW_HEIGHT} from '@gorhom/bottom-sheet';
import Mapbox from '@rnmapbox/maps';
import React, {RefObject} from 'react';
import {StyleSheet, ViewStyle} from 'react-native';
import {GestureHandlerRootView} from 'react-native-gesture-handler';



const NavigationMap = ({cameraRef, mapStyle}) => {


  return (
    <GestureHandlerRootView style={{flex: 1}}>
      <Mapbox.MapView
        style={{flex: 1, zIndex: 100}}
        // Configure zoom gestures using gestureSettings
        gestureSettings={{
          pinchZoomEnabled: true,
          doubleTapToZoomInEnabled: true,
          doubleTouchToZoomOutEnabled: true,
          quickZoomEnabled: true,
          pinchPanEnabled: true,
          panEnabled: true,
          rotateEnabled: true,
          pinchZoomDecelerationEnabled: true,
          simultaneousRotateAndPinchZoomEnabled: true,
        }}
        // Also set the master zoom control
        zoomEnabled={true}>
        <Mapbox.Viewport transitionsToIdleUponUserInteraction={false} />
        <Mapbox.Camera
          zoomLevel={15}
          centerCoordinate={[-122.4194, 37.7749]}
          minZoomLevel={1}
          maxZoomLevel={20}
        />
      </Mapbox.MapView>
    </GestureHandlerRootView>
  );
};

const styles = StyleSheet.create({
  map: {
    height: WINDOW_HEIGHT * 0.85,
  },
});

export default NavigationMap;

Observed behavior and steps to reproduce

I wanna just zoom in/out with two fingers and navigate with one finger in maps but thats not working im wondering if its a problem from the library or something i have to configure that i didnt do
please heelp !

Expected behavior

i can zoom in/out
i can navigate in the map or scroll with one finger by moving

Notes / preliminary analysis

No response

Additional links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions