Increased limit of users that can be displayed on the map

This commit is contained in:
Youen 2023-08-24 23:08:42 +02:00
parent 969d68cba8
commit 765f00067c
3 changed files with 7 additions and 3 deletions

6
js/dist/forum.js vendored
View File

@ -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;) {

File diff suppressed because one or more lines are too long

View File

@ -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;