Mapbox Map

An embedded map using MapBox to display latitude and longitude coordinates as points of interest. It supports custom markers using Emoji and symbols, default coordinates and zoom level, and GeoJSON to render custom shapes for highlighting locations.

Mapbox Map can trigger queries when panning or zooming the map, and on hover start or end for points.

Screenshot

A screenshot to illustrate the appearance of Mapbox Map.

Mapbox Map screenshot

Methods

Methods for interacting with Mapbox Map. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.

NameDescriptionscrollIntoView(options: any)

Scrolls the canvas or parent container so that the selected component appears in the visible area.

selectPoint(point: object)

Select the specified point using its coordinates

setMapCenter(center: object)

Set the map center on the specified point