• Resolved Lazza

    (@lazza)


    After using either WPBakery or the shortcode, the map does not work and this is logged in the console:

    Uncaught TypeError: L.tileLayer.provider is not a function
        at OpenStreetMap.initMap (sbs-wp-openstreetmap.js?ver=6.4.2:221:45)
        at Function.init (sbs-wp-openstreetmap.js?ver=6.4.2:517:26)
        at HTMLDivElement.<anonymous> (sbs-wp-openstreetmap.js?ver=6.4.2:525:50)
        at Function.each (jquery.min.js?ver=3.7.1:2:3129)
        at e.<computed>.each (jquery.min.js?ver=3.7.1:2:1594)
        at HTMLDocument.<anonymous> (sbs-wp-openstreetmap.js?ver=6.4.2:524:40)
        at e (jquery.min.js?ver=3.7.1:2:27028)
        at t (jquery.min.js?ver=3.7.1:2:27330)

    Here’s an example shortcode giving the error (taken from the docs).

    [sbs_openstreetmap center_marker="1"][sbs_marker marker_source="coordinates" marker_color="green" marker_latitude="52.4681196" marker_longitude="13.3279639" marker_icon="sbs-map-icon sbs-map-my-location"][/sbs_marker][/sbs_openstreetmap]
    

    How should I proceed to debug the issue? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Step-Byte-Service GmbH

    (@stepbyteservice)

    Hello,

    I could not reproduce this issue with the given shortcode. Could you please give us a little more information regarding the following questions:

    Which plugin version are your using?
    Which WordPress version are you using?
    The provider function is made available through the leaflet-providers.js. Can you check via developer tools wether the file is loaded correctly?
    Do you have other Leaflet-based plugins installed and activated?

    Best regards
    Ruth

    Thread Starter Lazza

    (@lazza)

    Thank you for your reply!

    Do you have other Leaflet-based plugins installed and activated?

    It looks like it is a conflict with Maps Marker Pro. It’s a bit weird, considering that I don’t have any MMP map on the current page. Anyways, I will try using only one of the two plugins.

    Would it be possible to have them co-exist in the future?

    Thanks again for your help.

    Plugin Author Step-Byte-Service GmbH

    (@stepbyteservice)

    Hello

    we’ll try to think about a solution in the future.

    Best regards
    Ruth

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS error on default configuration’ is closed to new replies.