18 Commits

Author SHA1 Message Date
Erik Thuning
a02ae4a587 Added the ability to export map data to TSV
Exporting is allowed for anyone with export permission or above.
Pseudo-versions have been bumped in order to ensure no cache issues.
2025-09-12 17:15:56 +02:00
Erik Thuning
05dcc7e5d9 Implemented support for roles and comments on each point
Comments are only visible to users with admin rights or who have the new
permission level 'export'.

Also opportunisitally reduced code duplication in script.js
2025-09-03 16:28:20 +02:00
Erik Thuning
3c648ec20e Fixed a bug preventing uppercase letters in search terms from being matched 2025-06-27 14:54:38 +02:00
Erik Thuning
ad369b88fd Made the active marker always have the highest z-index 2025-06-27 13:34:10 +02:00
Erik Thuning
7c272a1617 Added a read-only mode for the map.
The config item required_entitlement has been replaced by two new items:
 - access_entitlement: grants access to the site
 - admin_entitlement: grants edit rights on the site
2025-06-27 12:08:00 +02:00
Erik Thuning
2c5a129f5b Improved synchronization between search results and markers
Chages to place- or person names are now reflected in the search results.
Also made better use of stored references instead of calls to querySelector()
2025-06-10 16:15:58 +02:00
Erik Thuning
7d7086d903 Added an alert to makeApiRequest to notify the user of network errors 2025-06-10 13:23:49 +02:00
Erik Thuning
49cbd2ed92 Improved handling of denied access. 2025-06-10 13:23:03 +02:00
Erik Thuning
686015dd35 Fixed bad handling of nonexistent localStorage values for zoom and position 2025-06-10 10:14:01 +02:00
Erik Thuning
30a4e89885 Changed the heuristic for focus in the edit popup
Person now always gets focus unless the location has no name at all
2025-06-09 15:50:10 +02:00
Erik Thuning
96cd09ebaf Graying out markers that are not part of the search result
Also allow clearing the search by searching with an empty string
2025-06-09 15:26:52 +02:00
Erik Thuning
09fac3976f Added a spinner shown while waiting for search results
Search got significantly sped up by moving to async function so it will
probably never be visible.
2025-06-09 14:37:55 +02:00
Erik Thuning
6f77a88a86 Implemented highlighting of active search results, along with further changes:
- Fixed the map no longer working due to z-index -1
 - Fixed focus bug in marker edit popup
 - Sorted search results
 - Tweaked height of search results pane
2025-06-09 14:16:22 +02:00
Erik Thuning
514c82f982 Several changes
- Added toggling of labels
 - Added a search function
 - Moved buttons into a sidebar
 - Eliminated some extraneous css
 - Added the correct map to the repo
 - Zoom levels and map position are remembered across reloads
 - Markes are now draggable
 - The edit form takes a reasonable guess as to where focus should be
 - Fixed a bug preventing marker deletion on the server
2025-06-05 16:37:06 +02:00
Erik Thuning
3e99c530a5 Fully functional MVP.
Searchability needs implementing.
2025-06-04 15:16:28 +02:00
Erik Thuning
8c7095b365 Coming along. Leaflet implemented, points can be placed and modified. 2025-06-04 10:39:35 +02:00
Erik Thuning
0365ac28bc Trying leaflet for map rendering. Not working yet, but hopefully close. 2025-05-28 16:25:14 +02:00
Erik Thuning
bf717aecbe Initial commit, very basic POC 2025-05-26 10:48:14 +02:00