diff options
-rw-r--r-- | resources/map.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/map.js b/resources/map.js index 9a56112..1909037 100644 --- a/resources/map.js +++ b/resources/map.js @@ -21,6 +21,10 @@ $(document).ready(function() { map.on('locationerror', onLocationError); map.on('moveend', function(e) { + var zoom = map.getZoom(); + if (zoom < 10) { + return; + } if (!self.hospitalLayer) return; var bounds = map.getBounds(); |