Closed Hussain-Aziz closed 11 months ago
I have a map component. Although the projection is set to globe, it still renders mercator.
A globe projection in the map panel
import Map, { Marker, GeolocateControl } from 'react-map-gl'; import React, { useRef, useEffect, useState } from 'react'; import 'mapbox-gl/dist/mapbox-gl.css'; export default function MapPanel() { const initialViewState = { latitude: 25.4359571, longitude: 55.706461, zoom: 4 } return ( <Map ref={mapRef} mapboxAccessToken="TOKEN" initialViewState={initialViewState} mapStyle="mapbox://styles/mapbox/satellite-v9" projection='globe' > <GeolocateControl positionOptions={{ enableHighAccuracy: true }} trackUserLocation={true} /> {(shownUserData ?? userData).map((data) => createMarkerWithTooltip(data))} </Map> ) }
No response
mapbox-gl v1.x does not support global projection.
Description
I have a map component. Although the projection is set to globe, it still renders mercator.
Expected Behavior
A globe projection in the map panel
Steps to Reproduce
Environment
Logs
No response