Initial Google Map zoom V5.X

Q&A about the latest versions
Post Reply
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Been asked about the initial zoom for Google Maps for version 5.X
Output your project as normal and then open the output folder.
Using a text editor open the skin.js file and use the text editors find function and look for this text:

Code: Select all

if (!bounds.isEmpty()
Once this line of text is found you will need to highlight all the text below and delete it.

Code: Select all

if (!bounds.isEmpty()) {
         map.fitBounds(bounds);
      }
Now use the find function again but this time looking for:

Code: Select all

zoom: 14,
Changing the zoom value determines the initial zoom when the output opens.
The lower the number the further you are zoomed out.
Please note if you republish the project this will overwrite the skin.js file so bets left until you have finished your project.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Rainmaker
Posts: 88
Joined: Fri Jan 05, 2007 4:13 pm

Hi Hopki,

ist working if there is only one googlemap, but with two maps it is a different story. The position of the second map will be centerd on the first panorama and this is a small problem if the position should be 100km away. ;) Is there a possibility to set the position of the map manually?

Regards
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

For Pano2VR 5.1 beta 2 you would need to search for and remove the following:

Code: Select all

if (ids.length > 1 && !bounds.isEmpty() && updateMapBounds) {
				me._map_1.ggMap.fitBounds(bounds);
			}

Then set your:

Code: Select all

zoom: 14,
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply