Constants indicating the visibility of different adaptive map features.
- MapKit JS 5.0+
Indicates whether adaptive features like the scale, compass, and annotation title and subtitle text are hidden, visible, or adaptive. The display of an adaptive feature depends on the current map state. Controls that are not adaptive, such as the map type control or zoom controls, can be shown or hidden by setting map properties to
To show the compass only when map rotation is changing and hide the zoom controls: