Wait half a second before adjusting zoom
This commit is contained in:
parent
60c8a057ab
commit
c17f08bf5b
1 changed files with 5 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue