How to use the @react-native-mapbox-gl/maps.UserTrackingModes function in @react-native-mapbox-gl/maps

To help you get started, we’ve selected a few @react-native-mapbox-gl/maps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github developmentseed / observe / app / screens / Explore.js View on Github external
onDidFinishRenderingMapFully = async () => {
    this.setState({
      isMapLoaded: true,
      clickableLayers: ['editedPois', 'pois', 'editedPolygons',
        'buildings', 'roads', 'roadsLower',
        'railwayLine', 'waterLine', 'leisure', 'photos'],
      userTrackingMode: MapboxGL.UserTrackingModes.None
    })

    const visibleBounds = await this.mapRef.getVisibleBounds()
    const zoomLevel = await this.mapRef.getZoom()

    this.props.updateVisibleBounds(visibleBounds, zoomLevel)
  }
github developmentseed / observe / app / screens / Explore.js View on Github external
{
              requiresPreauth
                ? this.renderAuthPrompt()
                : (
                   { this.mapRef = ref }}
                    onDidFinishRenderingMapFully={this.onDidFinishRenderingMapFully}
                    onWillStartLoadingMap={this.onWillStartLoadingMap}
                    onDidFailLoadingMap={this.onDidFailLoadingMap}
                    onRegionIsChanging={this.onRegionIsChanging}
                    onRegionDidChange={this.onRegionDidChange}
                    regionDidChangeDebounceTime={10}
                    onPress={this.onPress}
                  >
                     { this.cameraRef = ref }}
                    />