diff --git a/public/js/map.js b/public/js/map.js index 34818f0..dd6a915 100644 --- a/public/js/map.js +++ b/public/js/map.js @@ -41,7 +41,7 @@ ymaps.ready(function(){ */ function init(lat, lng) { myMap = L.map('map',{zoomControl: false}).setView([lat, lng], 11); - markers = new L.MarkerClusterGroup({showCoverageOnHover: false}); + markers = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 45}); layers['quest'] = L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', {attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox',maxZoom: 18}); layers['osm'] = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery ©',maxZoom: 18});