Skip to content

Commit

Permalink
update slider when map is zoomed in and out (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstjean authored and jywarren committed Jan 2, 2020
1 parent f634f94 commit 9ee0c68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ <h3>D. By dragging the map</b></h3>
.on('slide', changeZoom)
.data('slider');

blurredLocation.map.on('zoomend', function() {
let zoom = blurredLocation.map.getZoom();
$('#ex1').slider('setValue', zoom);
})

</script>
</body>
</html>

0 comments on commit 9ee0c68

Please sign in to comment.