Browse Source

Increased limit of users that can be displayed on the map

main
Youen 8 months ago
parent
commit
765f00067c
  1. 6
      js/dist/forum.js
  2. 2
      js/dist/forum.js.map
  3. 2
      js/src/forum/components/GlobalMapPage.tsx

6
js/dist/forum.js vendored

@ -16485,7 +16485,11 @@ var GlobalMapPage = /*#__PURE__*/function (_Page) {
accessToken: publicToken
}).addTo(this.map);
this.map.setView([47, 2], 6);
flarum_forum_app__WEBPACK_IMPORTED_MODULE_1___default().store.find('user-locations').then(function (response) {
flarum_forum_app__WEBPACK_IMPORTED_MODULE_1___default().store.find('user-locations', {
page: {
limit: 1000
}
}).then(function (response) {
var markers = L.markerClusterGroup();
for (var _iterator = _createForOfIteratorHelperLoose(response), _step; !(_step = _iterator()).done;) {

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

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

Loading…
Cancel
Save