Skip to main content

MapSettings

The MapSettings component provides interactive controls for changing map layers and settings.

Props

string
Position of the settings control on the mapOptions:
  • 'left-top'
  • 'left-middle'
  • 'left-bottom'
  • 'right-top'
  • 'right-middle'
  • 'right-bottom' (default)
  • 'top-left'
  • 'top-center'
  • 'top-right'
  • 'bottom-left'
  • 'bottom-center'
  • 'bottom-right'
boolean
default:false
Disable the settings control
boolean
default:true
Control visibility of the settings control

Basic Usage

Custom Position

With Other Controls

Create a complete control layout:

Available Settings

The settings control typically allows users to:
  • Switch between map layers (normal, satellite, terrain)
  • Toggle traffic layer
  • Enable/disable POIs (Points of Interest)
  • Switch between day/night mode
  • Configure map behavior

Controlled Settings

Responsive Layout

Adjust control positions based on screen size:

Programmatic Layer Switching

While MapSettings provides UI controls, you can also switch layers programmatically:

Disabled State

Control Positioning Guide

Right Side (Default)

  • right-top: ZoomControl
  • right-bottom: MapSettings
  • Keeps left side clear for mobile gestures

Left Side

  • left-top: Alternative placement
  • left-bottom: Good for RTL layouts
  • More accessible on some devices

Use Cases

Layer Selection

Let users choose map visualization style

Feature Toggles

Enable/disable map features like traffic

User Preferences

Save and restore user map preferences

Context Switching

Switch between different map contexts

Best Practices

Keep controls in predictable locations across your app. Users expect zoom controls on the right.
On mobile, avoid placing controls where they might interfere with touch gestures or cover important content.
Ensure controls are keyboard accessible and have proper focus states.

See Also

ZoomControl

Zoom controls

ScaleBar

Distance scale

HereMap

Main map component