WORK IN PROGRESS
I'm hoping to get a map page added to the blog that would allow me to provide a user experience that displays a number of locations, and clicking on that location would navigate to the blog post about that. Most sites seem to recommend the 'Leaflet module" which seemed to do exactly that. Sounds relatively easy! Install the module, and off we go!
However, it has proven a lot more confusing that I thought it would be; here's what I learned. Again, I'm using Drupal version 10.
Leaflet
Install the module onto your Drupal server (SSH into the server, and run <>)
Add the module using the 'extend' feature.
To create the interactive map, we need the following:
- A new content type to store each of our locations or landmarks, based on the type provided by the Leaflet module
- A new view that shows all of the locations on the Leaflet map, using the Leaflet Views module.
Some homework is needed to collect the latitude and longitude for each of the locations (Open Street Map or Google Map can provide this).
For the new content type, set "manage display
https://internetdevels.com/blog/leaflet-module-to-create-interactive-maps-in-drupal-guide
https://www.youtube.com/watch?v=kXG4qXkGOVg
https://gole.ms/blog/maps-your-website-how-they-work-drupal-8-and-9
Add new comment