Skip to content

Commit

Permalink
Merge pull request GeoNode#54 from theduckylittle/bug/node-803-sticky…
Browse files Browse the repository at this point in the history
…-extent-filter

Fix sticky extent filter in searches
  • Loading branch information
Clarence Davis authored May 8, 2017
2 parents 36d0da0 + b24ccda commit a809e0a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions geonode/static/geonode/js/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,12 +625,16 @@

var showMap = false;
$('#_extent_filter').click(function(evt) {
showMap = !showMap
showMap = !showMap
if (showMap){
leafletData.getMap().then(function(map) {
map.invalidateSize();
});
}
} else {
/* clear the extent filter when the map is hidden */
delete $scope.query['extent'];
query_api($scope.query);
}
});
}
});
Expand Down

0 comments on commit a809e0a

Please sign in to comment.