From 9ee0c68f1396b2d2fe6bbfa85b915475bea3259e Mon Sep 17 00:00:00 2001 From: Natalie St Jean <49460529+nstjean@users.noreply.github.com> Date: Thu, 2 Jan 2020 12:54:14 -0500 Subject: [PATCH] update slider when map is zoomed in and out (#230) --- examples/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/index.html b/examples/index.html index a9fad00c..d094c1b3 100644 --- a/examples/index.html +++ b/examples/index.html @@ -137,6 +137,11 @@

D. By dragging the map

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