Google Maps Tilt and Zoom

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
ArkiTonio
Posts: 79
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Google Maps Tilt and Zoom

Post by ArkiTonio » Thu Jul 07, 2016 5:46 pm

Hi folks.
Some time ago I was giving v. 4.5.3 Pro a try and set some modifications to the HTML template (normal.ggt) to customize the Google Maps behaviour.
1) I set zoom:19 under mapOptions and removed the line if (!bounds.isEmpty())... to get the desired starting zoom level.
2) I added map.setTilt(0) to the map definition (map = new google.maps.Map...) to avoid that 3D effect.
Great. It worked fine.
Now I'm trying v. 5 and wondering how to achieve those same effects... since the map definition has been removed from the HTML code of the template.
How can I do?

Thank you.
ArkiTonio

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

Re: Google Maps Tilt and Zoom

Post by Hopki » Thu Jul 07, 2016 6:09 pm

Hi,
The same code can now be found in the skin.js file.
Open the js file with a text editor.
Regards,
Hopki

User avatar
ArkiTonio
Posts: 79
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Re: Google Maps Tilt and Zoom

Post by ArkiTonio » Thu Jul 07, 2016 7:28 pm

Hi, Martin.
If you mean the final output skin.js created for each pano/tour, well... it wouldn't be so handy... It would mean to manage each skin.js made after each pano/tour...
Or you mean a skin template? Is it there such a model anywhere, as the *.ggt for the main HTML code?... Where does skin.js come from?...

Thanx
ArkiTonio

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

Re: Google Maps Tilt and Zoom

Post by Hopki » Thu Jul 07, 2016 8:54 pm

HI Arki,
Hummm sorry this is how it is, you would need to mod the final skin.js file.
Ill add this as a feature request and see what the developers say.
Regards,
Hopki

User avatar
ArkiTonio
Posts: 79
Joined: Mon Apr 20, 2015 10:32 am
Location: Ascoli Piceno, Italy

Re: Google Maps Tilt and Zoom

Post by ArkiTonio » Thu Jul 07, 2016 9:39 pm

Thank you, Martin. It would be very useful.
Bye

P.S.: I'm an architect and my name's Antonio, so... ArkiTonio. :wink:
ArkiTonio

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

Re: Google Maps Tilt and Zoom

Post by Hopki » Fri Jul 08, 2016 4:37 pm

:D

User avatar
panox
Posts: 208
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

Re: Google Maps Tilt and Zoom

Post by panox » Tue Jan 30, 2018 7:51 pm

Hi Hopki,

any news? What did the developers say? It's very uncomfortable editing the skin.js every time I update the project.

Reminder for future use:
snap4679.jpg
snap4679.jpg (157.21 KiB) Viewed 899 times
snap4680.jpg
snap4680.jpg (47.82 KiB) Viewed 899 times
snap4681.jpg
snap4681.jpg (46.02 KiB) Viewed 899 times

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

Re: Google Maps Tilt and Zoom

Post by Hopki » Tue Jan 30, 2018 8:43 pm

Hi Guys,
This has been implemented in V6.
Regards,
Hopki

User avatar
panox
Posts: 208
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

Re: Google Maps Tilt and Zoom

Post by panox » Tue Jan 30, 2018 9:18 pm

Thank you, Hopki, great news! :D

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests