JQuery error at rendering Open Street Maps

Support MB Views JQuery error at rendering Open Street Maps

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41766
    ReisecouponReisecoupon
    Participant

    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!

    #41773
    PeterPeter
    Moderator

    Hello,

    Please try to deactivate all plugins except Meta Box, MB extensions, switch to a standard theme of WordPress and check this issue again.

    If it still does not work, please share the generated PHP code of the field group and View code on your site. I will take a look. Please refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

    #41777
    ReisecouponReisecoupon
    Participant

    Thank you!

    I figured out that only with Avada theme does not work the shortcode, I try to ask this issue at the theme developer.

    Thank you!

    #41779
    ReisecouponReisecoupon
    Participant

    Just for info: if I put the Open Street Maps element of Avada into my post, it renders somehow the OSM of Metabox as well...

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.