如何在 Mapbox GL JS 中更改光标图像
How to change the cursor image in Mapbox GL JS
如何更改 Mapbox GL JS 中的光标图像?我试过了
#map-container {
cursor: crosshair;
}
but it doesn't work.
#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'
如何更改 Mapbox GL JS 中的光标图像?我试过了
#map-container {
cursor: crosshair;
}
but it doesn't work.
#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'