Skip to content

Add filtering and sorting to columns and fix page size logic in Bootstrap Templates#7534

Merged
geographika merged 2 commits into
MapServer:mainfrom
geographika:sortables
Jun 23, 2026
Merged

Add filtering and sorting to columns and fix page size logic in Bootstrap Templates#7534
geographika merged 2 commits into
MapServer:mainfrom
geographika:sortables

Conversation

@geographika

Copy link
Copy Markdown
Member

Adds sortable headers to the collection-items template, with arrows to indicate sorting:

image

Also in the PR:

  • Fix page size selector (duplicated value of 10) and sync with URL limit
  • Fix pagination logic (offset / limit)
  • Reset offset value on page size/sort change
  • Guard fitBounds() for empty GeoJSON

@geographika geographika changed the title Add sorting to columns and fix page size logic in Bootstrap Templates Add filtering and sorting to columns and fix page size logic in Bootstrap Templates Jun 20, 2026
@geographika

Copy link
Copy Markdown
Member Author

Templates updated further to allow sorting on multiple columns, and basic filtering. One column can be filtered at a time - the previous filters are not loaded back into the filter boxes (we'd need to parse the CQL in JS..hopefully a library will become available to do that).

This functionality uses the new OGC Features API Part 3 (filtering) and 5 (sorting) to implement these features in HTML and JS.

image

@geographika geographika merged commit e254caa into MapServer:main Jun 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants