Wait half a second before adjusting zoom

This commit is contained in:
Markus Ankenbrand 2016-11-05 21:01:05 +01:00
parent 60c8a057ab
commit c17f08bf5b

View file

@ -116,9 +116,11 @@
bounds.extend(marker.getPosition());
}
map.fitBounds(bounds);
if(map.getZoom() > 15){
map.setZoom(15);
}
window.setTimeout(function(){
if(map.getZoom() > 15){
map.setZoom(15);
}
}, 500)
}
</script>
</div>