Hi @rvroo
It looks like you’re using the example code for google maps in your theme.
You should put this code inside a js file instead of directly in your template.
Your issue is not with ACF but rather your jquery.. I’m guessing you’ve already set up jquery to use $.
You should put the code without the outer wrapping stuff inside your script.js (or similar) file in your theme and within a $(document).ready() function.