I have maps loaded via the Map field on many pages of different post type and also from different post templates (I mean the post templates in this sense).
Because of the sheer variety of map field appearance conditions, is there any way/hook that would allow to enqueue the map script on any page if the ACF map field gets loaded there?
@exove you could put this in your header:
if (get_field('location')) :
wp_enqueue_script('...');
endif;
…where location
is the name of your field