Releases: smoldata/smol-maps
Data import/export
Previously you could only export map data as GeoJSON, now you can also import those files back into Smol Maps.
now with more geocode.earth
Search is back! Thanks to Julian for hosting a Pelias geocoder service.
map config: less is more
This release removes some unnecessary functionality around API key verification, which depends on a service that no longer exists. We are bumping the second version digit because this release is not backwards compatible with old config files. Please upgrade carefully!
dotdata.js index syntax error handling
This release fixes many things in dotdata.js, ultimately it eliminates syntax errors and adds exception handling... and eliminates the bugs! 🐛 🐞 🚫 🐞 🐛
Menu saving bugfixes
This release fixes three important issues that made saving venues & maps not work, and photos get rejected unless they had lowercase .jpg
file extensions.
Even fancier photos
Previously: upload all the photos in one big batch! (server gets unhappy with the large upload size)
Now: upload each photo one at a time, updating the current progress on the map
Remember: press and hold the "add a venue" button to upload photos. Also: photo uploads have to be enabled in app/config.js
.
Slightly fancier photos
New feature: upload photos to create new venues. The UI is a little bit subtle: you have to press and hold the "add venue" button to access it.
Basic venue photos
This release adds a feature for assigning a photo to a venue. Because of the sensitive nature of photos, and the lack of logins or ACLs, the feature is disabled by default. You can enable it by adjusting app/config.js
(also new to this release) and that should do it.
Polish and bug fixes
This release fixes a few niggling details I noticed when demoing the map, and one known issue. This is a mix of hacks and improvements.
- We now store the last map you looked at using localforage, and restore that upon returning to the site
- The venue popup no longer screws up the line-height (see: issue #5)
- The API key now gets validated upon loading the config page
The fact that I added setTimeout
as a fix to race conditions should be telling. Lots in here that should be reworked.
Escaping against XSS
This release introduces an important escaping function smol.esc_html()
and uses it to escape all strings before they get inserted into the DOM. Know it. Use it everywhere.