Hello,
is it possible to use the leaflet shortcodes in ALB? I want to use this code to show lines for example:
[leaflet-line addresses=”Berlin; Cologne”] but this will break the frontend.
I tried to use the “shortcode parser” but it doesn’t solve the problem.
I would be so glad if you could help.
Thanks a lot!
Hey Thorsten,
Thank you for the inquiry.
The theme comes with its own implementation of the OpenStreetMap API, as well as an element in the Advanced Layout Builder. This means that you don’t need to use a shortcode to add a map to your website. Please check the documentation below for more info.
// https://kriesi.at/documentation/enfold/openstreetmaps-leaflet-maps/
Best regards,
Ismael
Hey Ismael,
many thanks for your quick reply!
Yes, I know and I think it’s great that you provide OpenStreetMaps as in element in Advanced Layout Builder.
But there are so many more possibilities for styling options, adding lines etc by using OSM-Leaflet Map shortcodes (like these: https://leafext.de/extra/helper). Therefore I added these shortcodes to the Additional Map Attributes field in the element in Advanced Layout Builder. But as expected it didn’t work.
Maybe you could help me to use these shortcodes?
Thanks a lot
Thorsten
Hi,
Thank you for your patience, we only offer a basic implementation, therefore, out of the box, the ALB doesn’t support these options.
You could try using the leaflet shortcode in a code block element.
Best regards,
Mike