less clustering of points

This commit is contained in:
Youen 2023-08-24 23:26:49 +02:00
parent 765f00067c
commit 479a69b159
3 changed files with 5 additions and 3 deletions

4
js/dist/forum.js vendored
View File

@ -16490,7 +16490,9 @@ var GlobalMapPage = /*#__PURE__*/function (_Page) {
limit: 1000
}
}).then(function (response) {
var markers = L.markerClusterGroup();
var markers = L.markerClusterGroup({
maxClusterRadius: 40
});
for (var _iterator = _createForOfIteratorHelperLoose(response), _step; !(_step = _iterator()).done;) {
var item = _step.value;

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ export default class GlobalMapPage extends Page {
this.map.setView([47, 2], 6);
app.store.find('user-locations', { page: { limit: 1000 } }).then((response) => {
let markers = L.markerClusterGroup();
let markers = L.markerClusterGroup({ maxClusterRadius: 40 });
for(let item of response) {
let user = item.data.attributes;
let marker = L.marker([parseFloat(user.location_latitude), parseFloat(user.location_longitude)], { icon: markerIcon });