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

serundeputy created an issue.

serundeputy’s picture

I added debug line in `leaflet.drupal.js`

Drupal.Leaflet.prototype.create_icon = function (options) {console.log('in create_icon');

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.

jvince’s picture

Hi, will try to replicate the issue @ironcamp

jvince’s picture

On 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.