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

    Interface UserLocationMarkerProps

    Props for the UserLocationMarker component

    interface UserLocationMarkerProps {
        heading?: { accuracy: number; direction: number };
        location?: {
            horizontalAccuracy?: number;
            latitude: number;
            longitude: number;
        };
        tintColor?: ColorValue;
    }
    Index

    Properties

    heading?: { accuracy: number; direction: number }

    The user's heading/compass direction

    Type Declaration

    • accuracy: number

      The accuracy of the heading

    • direction: number

      The direction in degrees

    location?: { horizontalAccuracy?: number; latitude: number; longitude: number }

    Manually set the marker position. If omitted, uses device location from useLocation hook

    Type Declaration

    • OptionalhorizontalAccuracy?: number

      The accuracy of the location in meters

    • latitude: number

      The latitude coordinate

    • longitude: number

      The longitude coordinate

    tintColor?: ColorValue

    The color of the marker. Accepts any React Native color value