in experiments/data-apps/location/location_map_component/location_map/frontend/src/LocationMap.tsx [55:74]
async function initializeMap() {
// load credentials and set them up to refresh
await credentials.getPromise()
// Initialize the map
const map = new maplibregl.Map({
container: "map",
center: [lon, lat], // initial map centerpoint
zoom: zoom, // initial map zoom
style: mapName,
pitch: pitch,
transformRequest,
})
const options = {
showCompass: true,
showZoom: true,
visualizePitch: true ? pitch : false
}
map.addControl(new maplibregl.NavigationControl(options), "top-left")
}