How can I get values from a custom post type depending on where I click on my SVG map?

This question will probably be marked off-topic because you’re asking about a plugin, Advanced Custom Fields, but here’s the answer anyway – you need to add the ‘post id’ to your call of the_field(), so that it’s looking up the custom fields set in each of your custom post type’s posts. See https://www.advancedcustomfields.com/resources/how-to-get-values-from-another-post/

tech