Create a context object to control a map component.Documentation Index
Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| mapId | String | Yes | Map component ID |
Return Value
Returns a MapContext object with control methods.MapContext Methods
| Method | Description |
|---|---|
| getCenterLocation() | Get map center coordinates |
| moveToLocation() | Move to current location |
| includePoints() | Adjust view to include points |
| getRegion() | Get visible region |
| getScale() | Get current zoom level |