Hi,
I created a shortcode with MB Views to show an Open Street Map custom field, and then I pasted this shortcode into my custom post type post, but nothing happened, somehow the map isn´t rendered. If I check the errors in the chrome dev tools, I find this notice and error:
Notice:
JQuery.Deffered exception L.tileLayer is not a function TypeError: L.tileLayer is not a function
at HTMLDivElement.displayMap (https://domain.de/wp-content/plugins/meta-box/js/osm-frontend.js?ver=5.6.18:8:24)
at Function.each (https://domain.de/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:3003)
at e.<computed>.each (https://domain.de/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:1481)
at HTMLDocument.<anonymous> (https://domain.de/wp-content/plugins/meta-box/js/osm-frontend.js?ver=5.6.18:50:26)
at e (https://domain.de/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:30158)
at t (https://domain.de/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:30460) undefined
S.Deferred.exceptionHook @ jque
Error:
`Uncaught TypeError: L.tileLayer is not a function
at HTMLDivElement.displayMap (osm-frontend.js?ver=5.6.18:8:24)
at Function.each (jquery.min.js?ver=3.6.3:2:3003)
at e.<computed>.each (jquery.min.js?ver=3.6.3:2:1481)
at HTMLDocument.<anonymous> (osm-frontend.js?ver=5.6.18:50:26)
at e (jquery.min.js?ver=3.6.3:2:30158)
at t (jquery.min.js?ver=3.6.3:2:30460)
displayMap @ osm-frontend.js?ve`
On this shortcode issues this error.
I´m using Avada theme, but I checked this issue also with the default theme, same error. My site is still not live, in dev mode, but if I make it live, I get the same error.
Do you have maybe some idea how to solve this question?
Thank you!