Hi,
I recently had the need to geolocate some contents and developed a custom form field inside my theme, loading the Leaflet javascript library...
I was wondering : what if you enable multiple leaflet Grav plugins ? Each one of them will load the script and stylesheet ?
There are three Leaflet plugins referenced on https://getgrav.org/downloads/plugins but they seem to be inactive for a long time and they are using very old versions of the library...
I was wondering : what if we could rethink how Leaflet plugins work ?
I'm thinking (maybe badly):
- Leaflet Core (loads the Leaflet library into the public and/or the private areas, depending of the settings)
- Leaflet Form Field : a plugin that add a geolocation field with an interactive map (click to add coordinates, click marker to remove it, drag the marker to modify coordinates)
- Leaflet for Editors : features from https://github.com/finanalyst/grav-plugin-map-marker-leaflet and https://github.com/magikcypress/grav-plugin-leaflet
What do you think ?