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());
|
bounds.extend(marker.getPosition());
|
||||||
}
|
}
|
||||||
map.fitBounds(bounds);
|
map.fitBounds(bounds);
|
||||||
if(map.getZoom() > 15){
|
window.setTimeout(function(){
|
||||||
map.setZoom(15);
|
if(map.getZoom() > 15){
|
||||||
}
|
map.setZoom(15);
|
||||||
|
}
|
||||||
|
}, 500)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue