Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I'm trying to swap out the markers used on a map in a leaflet_view.
I visit the views configuration page.
Click on the Format Leaflet|settings link
Enter a URL into the Icon URL text box.
Click apply
Then save the view.
Returning to the front end the view no longer shows any locations or markers.
Proposed resolution
I've tried adding an `iconUrl` directly in `leaflet.drupal.js`, but was unsuccessful there.
Remaining tasks
Can you replicate this bug?
If not and you can identify something wrong with my process please let me know.
If you can replicate it let's work to fix this.
User interface changes
API changes
Data model changes
thanks,
~Geoff
Comments
Comment #2
serundeputy CreditAttribution: serundeputy at Common Media for Backdrop CMS commentedI added debug line in `leaflet.drupal.js`
looks like execution never gets into this function at least for views pages. A little more info for you. Let me know if I can do anymore troubleshooting/testing for you.
Comment #3
jvince CreditAttribution: jvince commentedHi, will try to replicate the issue @ironcamp
Comment #4
jvince CreditAttribution: jvince commentedOn Drupal 8.2.3, leaflet map (old) view formatter
Couldn't replicate the bug. Only thing that comes to mind is that the path marker was not valid. Invalid path wouldn't cause the markers to not show on the map instead you would get the default broke image.
Could you provide more information about the setup?
Content type, field used for geolocation, view setup.