11 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

P Corral

unread,
Mar 28, 2025, 4:49:42 AMMar 28
to mapstor...@googlegroups.com
I'm working on a project based on a spatial SQL database and using Geoserver.
I have a layer with a CODE field and a YEAR field.
I'd like to create an interactive filter with a selector where the user, for example, enters the value 2024 and filters out codes that have that value in the YEAR field.
I've already explored the option of filtering with a table and time control. This works well with specific dates, but it hasn't worked for me with years.
I would need something very simple for the user.
This is a beginner-level project that combines Geoserver, Mapstore, QGIS, QGIScloud, and Qfield.
Thank you.

Clipboard_03-27-2025_01.jpg

Lorenzo Natali

unread,
Apr 28, 2025, 4:06:21 AMApr 28
to mapstore-users
Hi,
if you have a field with the year as a string, a selector should be show you the list of unique values to select.
If year is a number you will have a number field with no selection.
If you have a date field too, you will have the possibility to use the date filter to select start and end date to filter (using "><" filter).
Schermata del 2025-04-28 09-56-53.png
If you need a custom selector, you may need to create a customization writing some code. 
Reply all
Reply to author
Forward
0 new messages