Contents

place

An object that allows a custom annotation to potentially supersede a point of interest at the same map coordinates.

Declaration

place?: Place | SearchAutocompleteResult;

Discussion

By using a Place object as an argument to the AnnotationConstructorOptions, you can, depending on the exact coordinates and other rendering computations, supersede an Apple-provided item on the map. This can reduce potential visual clutter of two icons representing the same place on a single map.

You can also use a Place as the first argument when creating a Annotation, rather than using a Coordinate to achieve the same effect.

MapKit JS also supports this capability for the initializer and constructor options for ImageAnnotation and MarkerAnnotation.

See Also

Creating interaction behavior