less clustering of points
This commit is contained in:
parent
765f00067c
commit
479a69b159
4
js/dist/forum.js
vendored
4
js/dist/forum.js
vendored
@ -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;
|
||||
|
2
js/dist/forum.js.map
vendored
2
js/dist/forum.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user