Documentation Index
Fetch the complete documentation index at: https://rodrito.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
MapSettings
TheMapSettings component provides interactive controls for changing map layers and settings.
Props
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'
Disable the settings control
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: ZoomControlright-bottom: MapSettings- Keeps left side clear for mobile gestures
Left Side
left-top: Alternative placementleft-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
Consistent positioning
Consistent positioning
Keep controls in predictable locations across your app. Users expect zoom controls on the right.
Mobile considerations
Mobile considerations
On mobile, avoid placing controls where they might interfere with touch gestures or cover important content.
Accessibility
Accessibility
Ensure controls are keyboard accessible and have proper focus states.
See Also
ZoomControl
Zoom controls
ScaleBar
Distance scale
HereMap
Main map component