leaflet.pancontrol
Advanced tools
Comparing version 0.7.1 to 1.0.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27087
392
2
0
+ Addedleaflet@1.0.3(transitive)
- Removedleaflet@0.7.7(transitive)
Updatedleaflet@~1.0.2