@maplayr/react-native
    Preparing search index...

    Function UserLocationMarker

    • Displays the user's current location on the map. When used without props, it automatically displays the current location from the device.

      Note: You must request location permissions before the marker will display. The useLocation hook does not request permissions automatically.

      Parameters

      Returns null

      // Automatic location from device
      <MapView map={mapLoadResult.map}>
      <UserLocationMarker tintColor="blue" />
      </MapView>

      // Manual location
      <MapView map={mapLoadResult.map}>
      <UserLocationMarker
      location={{ latitude: 52.8952, longitude: -1.8431 }}
      tintColor="#FF6B35"
      />
      </MapView>