Contents

new PlaceAnnotation(coordinate, options)

Creates a new place annotation.

Declaration

constructor(
        coordinate: Coordinate | Place | SearchAutocompleteResult,
        options?: MarkerAnnotationConstructorOptions,
    );

Discussion

You’re required to provide a Place object, either by passing it as the first argument or setting place. If you don’t provide the required object, the call throws an error.