JS error on default configuration
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JS error on default configuration’ is closed to new replies.