Submit a enquiry






    Back to all posts

    Code for ACF Style Google Maps

    Snippet

    Requirements: JQUERY

    You need to ensure that all coordinates are manually input as this makes it easier to set up the markers.

    The code below can run on multiple instances of google maps, however please note that you keep ‘.mapelement as the classname in your HTML as the function specifies this:

    And then insert this code into Footer or Header:

    You can directly add the JavaScrips code to your HTML or in a file located as googlemaps.js just to keep things tidy.

    If you have any questions about this post or need any help with ACF Style Google Maps then please get in touch either via email [email protected] or call us on 0161 398 0303.