Map
Value
- Customizable Configuration: Set the display range and zoom level to ensure the map content matches business requirements.
- Multiple Markers: Add one or more markers to display information about different locations.
When to Use
The map component uses geographic data (latitude and longitude) to display location information. It responds to user actions, such as clicking a marker, and is suitable for applications that need to display locations (e.g., company addresses, navigation apps).
How to Use
Register with Mapbox and Obtain an Access Token
- Go to Mapbox , register an account, and create an access token.
Recommendation: Restrict your token by adding your domain in the Mapbox restriction section for security. The token will only work for requests from specified URLs. - Enter the access token in the Config > General > Map API key section.
Mapbox Token Configuration | Map API Key Input |
---|---|
![]() | ![]() |
Obtain GeoPoint Data
You can obtain GeoPoint data by using the “Get Location” action and assigning it to page data, or by looking up coordinates on map providers and inserting them into the Momen database.
Create an “Address Information” table in your database with fields such as:
- Text: Marker name
- Image: Marker icon
- Boolean: Center point indicator
- GeoPoint: Marker coordinates
Example | Example | Example |
---|---|---|
![]() | ![]() | ![]() |
Map Configuration
- Initial Zoom: Controls the map’s display range (default: 11, range: 1–19). Lower values show a larger area (e.g., 1 = entire globe).
Initial Zoom Configuration | Zoom Level Example |
---|---|
![]() | ![]() |
- Show Location: Enable to display the user’s current location on the map.
Show Location Configuration | Show Location Example |
---|---|
![]() | ![]() |
- Center Point: Set the map’s center. If not set, the default is Los Angeles, California, USA.
Configuration | Configuration | Configuration |
---|---|---|
![]() | ![]() | ![]() |
Marker Configuration
- Marker Switch: Toggle to access the marker configuration panel.
Marker Switch Panel | Marker Switch Panel |
---|---|
![]() | ![]() |
-
Quantity:
-
Single Marker: Bind marker coordinates via remote data.
Single Marker Binding Single Marker Binding -
Multiple Markers: Bind a remote data source to provide multiple marker coordinates (remove data limits if needed), and bind marker coordinates via in-component data.
Multiple Markers Binding Multiple Markers Binding
-
-
Icon Style: Upload or bind a custom icon for markers and adjust icon size.
Marker Icon Style | Marker Icon Style |
---|---|
![]() | ![]() |
- Marker Name: Enter or bind the marker name.
Marker Name Configuration | Marker Name Configuration |
---|---|
![]() | ![]() |
- Action onClick: Configure actions triggered when clicking a marker (e.g., display a popup).
Functionality Boundaries
If the map center point is not set, the map defaults to Los Angeles, California, USA.