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

leaflet.pancontrol

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet.pancontrol - npm Package Compare versions

Comparing version 0.7.1 to 1.0.0

7

package.json
{
"name": "leaflet.pancontrol",
"version": "0.7.1",
"version": "1.0.0",
"description": "Map pan control for Leaflet",

@@ -25,3 +25,4 @@ "main": "src/L.Control.Pan.js",

"Patrik Norman (https://github.com/patsy)",
"Per Liedman <per.liedman@kartena.se> (https://github.com/perliedman/)"
"Per Liedman <per.liedman@kartena.se> (https://github.com/perliedman/)",
"Benjamin (https://github.com/bdparrish)"
],

@@ -33,4 +34,4 @@ "license": "BSD-2-Clause",

"dependencies": {
"leaflet": "~0.7.1"
"leaflet": "~1.0.2"
}
}

@@ -40,3 +40,11 @@ (function (factory) {

// Add pan control class to the control container
var controlContainer = L.DomUtil.get(map._controlCorners.topleft);
if (this.options.position === 'topleft') {
var controlContainer = L.DomUtil.get(map._controlCorners.topleft);
} else if (this.options.position === 'topright') {
var controlContainer = L.DomUtil.get(map._controlCorners.topright);
} else if (this.options.position === 'bottomleft') {
var controlContainer = L.DomUtil.get(map._controlCorners.bottomleft);
} else {
var controlContainer = L.DomUtil.get(map._controlCorners.bottomright);
}
if(!L.DomUtil.hasClass(controlContainer, 'has-leaflet-pan-control')) {

@@ -43,0 +51,0 @@ L.DomUtil.addClass(controlContainer, 'has-leaflet-pan-control');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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