I am trying to: Get a map to display multiple markers using leaflet
Link to a page where the issue can be seen: hidden link
I expected to see: multiple markers on a map
Instead, I got: just a map
Hello, I previously had a support ticket open ( https://toolset.com/forums/topic/output-address-coordinates-from-filtered-view/#post-956489 ) about this which had resolved itself but now the issue has returned. Our site has just been updated to WordPress 5.0 and since then it hasn't worked.
I've used this leaflet map plugin ( https://wordpress.org/plugins/leaflet-map/ ) for the maps, it uses a map shortcode for the actual map (which works fine because it's placed before the loop starts) and a marker shortcode for the marker/s within the loop, the problem is that the loop output then breaks the code in the leaflet marker script that is loaded - it replaces "[" with "[*semi-colon*" and "]" with "]*semi-colon*" ( replaced ; with *semi-colon* as just displays bracket otherwise!)
If you use inspector on the page I linked to at the top, you can see the map script loads fine without breaking, but the marker script within the loop breaks (see the errors). The same marker shortcode works fine if it's outside the loop so it seems to be something to do with the Toolset view loop.
Any thoughts about why this is happening or how I can prevent it so the brackets stay as brackets when the map script loads. In my previous ticket Christian thought a text string replacement might work but I wouldn't know where to start with this.
Thanks