marker.js for React Native Documentation
    Preparing search index...

    Props for the MarkerArea component.

    interface MarkerAreaProps {
        annotation: null | AnnotationState;
        onAnnotationChange?: (annotation: AnnotationState) => void;
        onSelectedMarkerChange?: (marker: null | MarkerBaseState) => void;
        scaleStroke?: boolean;
        targetSrc: string;
    }
    Index

    Properties

    annotation: null | AnnotationState

    Annotation state containing markers and other annotation data. Set this to null to create a new annotation.

    onAnnotationChange?: (annotation: AnnotationState) => void

    Callback invoked when the annotation state changes.

    Type declaration

    onSelectedMarkerChange?: (marker: null | MarkerBaseState) => void

    Callback invoked when the selected marker changes.

    Type declaration

    scaleStroke?: boolean

    Whether to scale the stroke width of markers based on zoom level. Defaults to true.

    targetSrc: string

    Source of the target image to annotate.