Leaflet JS map no longer displays
-
Hello,
I am using the ACF Openstreetmap Field 1.2.1 plugin
and the following plugins:
Elementor 3.0.3 + elementor pro 3.0.1 + Advanced Custom Fields 5.9+Insert PHP Code Snippet 1.31.1I created a php snippet named [xyz-ips snippet = “carte-osm”]
<? php $ note = get_field (‘carteosm’); ?>
<? php the_field (‘carteosm’); ?>which I display via “text editor widget elementor” with the php Snippet named [xyz-ips snippet = “map-osm”]
It was working perfectly and now I have the following error
The Leaflet card is all gray, there are only the + and – buttons at the top left and the leaflet link at the bottom right
with the following error in the Google Chrome console
JQMIGRATE: Migrate is installed, version 1.4.1
acf-osm-frontend.min.js? ver = 1.2.1: 1 Uncaught TypeError: Unable to read property ‘OpenStreetMap’ from null
to e.initialize (acf-osm-frontend.min.js? ver = 1.2.1: 1)
to the new e (acf-osm-frontend.min.js? ver = 1.2.1: 1)
at Function.u.tileLayer.provider (acf-osm-frontend.min.js? ver = 1.2.1: 1)
to String. <anonymous> (acf-osm-frontend.min.js? ver = 1.2.1: 1)
at Function.each (jquery.js? ver = 1.12.4-wp: 2)
at HTMLDivElement. <anonymous> (acf-osm-frontend.min.js? ver = 1.2.1: 1)
at HTMLDivElement. <anonymous> (acf-osm-frontend.min.js? ver = 1.2.1: 1)
at Function.each (jquery.js? ver = 1.12.4-wp: 2)
at a.fn.init.each (jquery.js? ver = 1.12.4-wp: 2)
on a.fn.init.acf_leaflet (acf-osm-frontend.min.js? ver = 1.2.1: 1)can you tell me how to fix this bug?
Thanks you in advance
The page I need help with: [log in to see the link]
- The topic ‘Leaflet JS map no longer displays’ is closed to new replies.