Как изменить изображение курсора в Mapbox GL JS - PullRequest
0 голосов
/ 16 апреля 2020

Как изменить изображение курсора в Mapbox GL JS? Я пытался

#map-container {
    cursor: crosshair;
    }
but it doesn't work.

1 Ответ

1 голос
/ 16 апреля 2020
#map-container canvas {
    cursor: crosshair;
    }
where #map-container is the id of the element where your mapbox Gl JS is located.

или программно

map.getCanvas().style.cursor = 'crosshair'
...