mirror of https://gitee.com/antv-l7/antv-l7
Merge branch 'master' of https://github.com/antvis/L7
This commit is contained in:
commit
2ae0788c83
|
@ -156,7 +156,13 @@ export default class PickingService implements IPickingService {
|
||||||
public handleCursor(layer: ILayer, type: string) {
|
public handleCursor(layer: ILayer, type: string) {
|
||||||
const { cursor = '', cursorEnabled } = layer.getLayerConfig();
|
const { cursor = '', cursorEnabled } = layer.getLayerConfig();
|
||||||
if (cursorEnabled) {
|
if (cursorEnabled) {
|
||||||
const domContainer = this.mapService.getMarkerContainer();
|
const version = this.mapService.version;
|
||||||
|
const domContainer =
|
||||||
|
version === 'GAODE2.x'
|
||||||
|
? this.mapService.getMapContainer()
|
||||||
|
: this.mapService.getMarkerContainer();
|
||||||
|
// const domContainer = this.mapService.getMarkerContainer();
|
||||||
|
// const domContainer = this.mapService.getMapContainer();
|
||||||
const defaultCursor = domContainer?.style.getPropertyValue('cursor');
|
const defaultCursor = domContainer?.style.getPropertyValue('cursor');
|
||||||
if (type === 'unmousemove' && defaultCursor !== '') {
|
if (type === 'unmousemove' && defaultCursor !== '') {
|
||||||
domContainer?.style.setProperty('cursor', '');
|
domContainer?.style.setProperty('cursor', '');
|
||||||
|
@ -164,6 +170,8 @@ export default class PickingService implements IPickingService {
|
||||||
domContainer?.style.setProperty('cursor', cursor);
|
domContainer?.style.setProperty('cursor', cursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// const domContainer = this.mapService.getMapContainer()
|
||||||
|
// domContainer?.style.setProperty('cursor', 'move');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取容器的大小 - 兼容小程序环境
|
// 获取容器的大小 - 兼容小程序环境
|
||||||
|
|
Loading…
Reference in New Issue