Browse Source

less clustering of points

main
Youen 8 months ago
parent
commit
479a69b159
  1. 4
      js/dist/forum.js
  2. 2
      js/dist/forum.js.map
  3. 2
      js/src/forum/components/GlobalMapPage.tsx

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

File diff suppressed because one or more lines are too long

2
js/src/forum/components/GlobalMapPage.tsx

@ -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…
Cancel
Save