Hello, many thanks!!
Questions... I don't want to use a new page to insert the map... I want to put the map in the top of each archive pages of each cpt.
To do that:
1.- I have to put his line in my archive page?
2.- I have to update something in the wp_enqueue_script function in functions.php ?
3.- I have to modify something in the list.js ?
4.- I have to put the list.js in my js folder?
In my theme is here: .../wp-content/themes/theme-name/assets/js/
In functions.php I have to update this code?
wp_enqueue_script( 'list', get_parent_theme_file_uri( 'js/list.js' ), ['jquery', 'leaflet'], '1.0', true );
wp_enqueue_script( 'list', get_parent_theme_file_uri( 'js/assets/list.js' ), ['jquery', 'leaflet'], '1.0', true );
Many thanks for your help.