mapbox-gl-controls
Advanced tools
Comparing version 1.5.5 to 1.5.6
@@ -55,2 +55,3 @@ function _classCallCheck(instance, Constructor) { | ||
this.lngLat = null; | ||
this.cursorStyle = ''; | ||
this.show = this.show.bind(this); | ||
@@ -66,2 +67,3 @@ this.move = this.move.bind(this); | ||
this.mapContainer.appendChild(this.node); | ||
this.cursorStyle = this.map.getCanvas().style.cursor; | ||
this.map.getCanvas().style.cursor = 'pointer'; | ||
@@ -75,3 +77,3 @@ this.map.on(mapMoveEvent, this.updatePosition); | ||
this.mapContainer.removeChild(this.node); | ||
this.map.getCanvas().style.cursor = ''; | ||
this.map.getCanvas().style.cursor = this.cursorStyle; | ||
this.map.off(mapMoveEvent, this.updatePosition); | ||
@@ -78,0 +80,0 @@ } |
{ | ||
"name": "mapbox-gl-controls", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"main": "./lib/index.js", | ||
@@ -25,3 +25,3 @@ "description": "Controls for mapbox-gl", | ||
"rollup": "^1.21.4", | ||
"rollup-inline-svg": "^1.0.4", | ||
"rollup-plugin-svg-import": "^1.1.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
@@ -28,0 +28,0 @@ "rollup-plugin-commonjs": "^10.1.0", |
@@ -28,2 +28,3 @@ const defaultGetContent = (event) => { | ||
this.lngLat = null; | ||
this.cursorStyle = ''; | ||
this.show = this.show.bind(this); | ||
@@ -37,2 +38,3 @@ this.move = this.move.bind(this); | ||
this.mapContainer.appendChild(this.node); | ||
this.cursorStyle = this.map.getCanvas().style.cursor; | ||
this.map.getCanvas().style.cursor = 'pointer'; | ||
@@ -45,3 +47,3 @@ this.map.on(mapMoveEvent, this.updatePosition); | ||
this.mapContainer.removeChild(this.node); | ||
this.map.getCanvas().style.cursor = ''; | ||
this.map.getCanvas().style.cursor = this.cursorStyle; | ||
this.map.off(mapMoveEvent, this.updatePosition); | ||
@@ -48,0 +50,0 @@ } |
80033
2006