Skip to content

Commit 995afc3

Browse files
committed
Merge pull request bjorn2404#109 from drcomix/master
Prevents zoom reset while dragging the map
2 parents 5bd7583 + cb62d89 commit 995afc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/jquery.storelocator.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,10 @@
17861786
*/
17871787
dragSearch: function(map) {
17881788
this.writeDebug('dragSearch',arguments);
1789+
1790+
// Save the new zoom setting
1791+
this.settings.mapSettings.zoom = map.getZoom();
1792+
17891793
var newCenter = map.getCenter(),
17901794
newCenterCoords,
17911795
_this = this;

0 commit comments

Comments
 (0)