- Issue created by @problue solutions
- Status changed to Fixed
over 1 year ago 9:56pm 30 March 2023 - 🇮🇹Italy itamair
@Problue Solutions
I attach here a "user_html5_location" module that I quickly developed and that does exactly (and only) what you ask here.
Simply un-zip and enable it.
Every Leaflet map of your Drupal application will be (automatically) added with the user html5 location and its view bounds will be extended to contain it also.You can inspect all its code and get what is the proper technique to achieve this with the Drupal Leaflet module.
Basically you should look into the js/leaflet_map_user_html5_location.js file and realise that it is replying on reacting on the 'leafletMapInit' event, triggered here (from the Leaflet map module): https://git.drupalcode.org/project/leaflet/-/blob/10.0.x/js/leaflet.drup...Confident that you will be able to go on and scope & customise what you exactly need and that this fully satisfies your support request.
- 🇬🇧United Kingdom problue solutions Northern Ireland
itamair, I havent even looked at the module yet but based on the help and expertise I have seen you offering in other threads I am sure this will be more than enough to help me on my way.
I appreciate this so much and thank you for the guidance, I couldnt have hoped for a better reply to this! Your response motivates me to also try and give back to the Drupal community in some way, thank you again.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 1:42am 29 May 2023 - 🇺🇸United States w01f
Just commenting that this would be a fantastic submodule - I just installed it and it's working fine in D10 as well. If possible, it would be great to be able to enable this in the UI in a view, and possibly also some UI options for changing the icon, etc.