Skip to content

Commit

Permalink
add getZoom() (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstjean authored and sagarpreet-chadha committed Dec 18, 2019
1 parent 1040824 commit 14c5664
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 9 additions & 4 deletions dist/Leaflet.BlurredLocation.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/blurredLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ BlurredLocation = function BlurredLocation(options) {
options.map.setZoom(zoom);
}

function getZoom() {
return options.map.getZoom();
}

function getSize() {
return options.map.getSize();
}
Expand Down Expand Up @@ -299,6 +303,7 @@ BlurredLocation = function BlurredLocation(options) {
gridWidthInPixels: gridWidthInPixels,
getPrecision: getPrecision,
setZoom: setZoom,
getZoom: getZoom,
Interface: Interface,
getFullLon: getFullLon,
getFullLat: getFullLat,
Expand Down

0 comments on commit 14c5664

Please sign in to comment.