Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #479881


    I have multiple worldwide locations on a Google map and would like to display the map so that it shows the full map of the world with all of the locations in view. I have played around with the different Zoom Levels and feel that I need something between 2 and 3. Is is possible to customise this somehow? Zoom level 2 repeats the map of the world and Zoom 3 doesn’t show all of the locations.

    Can anyone help?


    Hi lol4000,

    I’ve never tried anything like that myself but maybe something like this could help?



    Yes that should work, can you tell me which file I can find the code for Google maps so that I can edit? Im not brilliant with Jquery but should hopefully be able to suss this out.

    many thanks



    Please go to Enfold/config-templatebuilder/avia-shortcodes and edit google_maps.php file

    Best regards,


    Thanks for that however, I thought the Google API was configured using Jquery? The code in the php file looks like its for the admin side of things.



    You should be able to target the map through a header.php snippet and change the zoom from there.



    OK, so I have added the below code to the header.php file:

    var mapOptions = {
      zoom: 8,

    I get an error in the javascript console: Uncaught reference error: Google is not defined.

    • This reply was modified 8 years, 9 months ago by lol4000.


    I don’t think it’s the correct way of adding the script. Anyway, it will actually do the same thing as the Zoom Level settings if you manage to make it work. I tried to find the closest zoom level to show the whole world map on my installation and I found out that zoom level 3 and a Map height of 700px is the closest option.



    The script has already been added hasn’t it? I simply want to overwrite the settings and what I have above should do that according to the documentation. I wanted to customise the Pan also which isn’t an option within the Enfold map settings.



    Perhaps what your wanting to do is something like this, It’s kind of bordering on custom work though. I think your best bet is to play around with the zoom setting until they are all in view.



    That would be great, however, I get an JS error message whenever I try adding custom code in the header.php file as suggested.

    I have given up with this now, thanks anyway.



    Sorry we couldn’t be of more help, please let us know if you should have any more questions on the topic.


Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.