Update: LeafletJS library to 1.9.3

This commit is contained in:
Luca 2022-12-14 01:03:51 +01:00
parent eeefc257bf
commit 0d18486fc7

View File

@ -180,8 +180,8 @@ if (!class_exists('Soundmap')){
}// admin_menu
function enqueue_map_scripts(){
wp_enqueue_script('leafletjs','https://unpkg.com/leaflet@1.6.0/dist/leaflet.js',array(),'1.6.0',TRUE); // add Leaflet.js
wp_enqueue_style('leafletcss',"https://unpkg.com/leaflet@1.6.0/dist/leaflet.css",array(),'1.6.0','all'); // add CSS Leaflet
wp_enqueue_script('leafletjs','https://unpkg.com/leaflet@1.9.3/dist/leaflet.js',array(),'1.9.3',TRUE); // add Leaflet.js
wp_enqueue_style('leafletcss',"https://unpkg.com/leaflet@1.9.3/dist/leaflet.css",array(),'1.9.3','all'); // add CSS Leaflet
}
function wp_enqueue_scripts(){