当前位置: 代码迷 >> 综合 >> Openlayer 切换鼠标样式
  详细解决方案

Openlayer 切换鼠标样式

热度:76   发布时间:2023-12-17 03:38:34.0

this._map是Openlayer地图对象

CursorDefault() {this._map.getTargetElement().style.cursor = "default";}CursorHelp() {this._map.getTargetElement().style.cursor = "help";}CursorPointer() {this._map.getTargetElement().style.cursor = "pointer";}CursorPan() {this._map.getTargetElement().style.cursor = "-webkit-grab";}CursorMove() {this._map.getTargetElement().style.cursor = "move";}