如何更改 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'
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句