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 Plugins | Grav CMS 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 GitHub - finanalyst/grav-plugin-map-marker-leaflet: Plugin to put leaflet map on a page and GitHub - magikcypress/grav-plugin-leaflet: Grav Leaflet Plugin
What do you think ?