Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mapbox-gl-controls

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-controls - npm Package Compare versions

Comparing version 1.5.5 to 1.5.6

4

lib/tooltip.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc