Skip to content

Commit

Permalink
final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mridulnagpal committed Jun 17, 2017
1 parent 6632f7d commit 0308913
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions dist/Leaflet.BlurredLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13339,17 +13339,18 @@ BlurredLocation = function BlurredLocation(options) {
};
}

lat.addEventListener('change blur input', function() {
lat.addEventListener('change', function() {
console.log("hello");
panIfValue();
});
lng.addEventListener('change blur input', function() {
lng.addEventListener('change', function() {
panIfValue();
});
}


function panMap(lat, lng) {
map.panTo(new L.LatLng(lat, lng));
options.map.panTo(new L.LatLng(lat, lng));
}

function getPlacenameFromCoordinates(lat, lng) {
Expand Down
2 changes: 1 addition & 1 deletion src/blurredLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ BlurredLocation = function BlurredLocation(options) {


function panMap(lat, lng) {
map.panTo(new L.LatLng(lat, lng));
options.map.panTo(new L.LatLng(lat, lng));
}

function getPlacenameFromCoordinates(lat, lng) {
Expand Down

0 comments on commit 0308913

Please sign in to comment.