Google Maps default to Hybrid tab
I have a client who is wanting the Google Maps I've put on his webpage to revert to the Hybrid tab when the page loads. Anyone any idea how to make this work with Pro Maps for Google?
I have a client who is wanting the Google Maps I've put on his webpage to revert to the Hybrid tab when the page loads. Anyone any idea how to make this work with Pro Maps for Google?
In your google_javascript > wagmp_map_1 page you should do a search for this:
map.setCenter(point, 13);
replace it with this:
map.setCenter(point, 13, G_HYBRID_MAP);
This third parameter on the setCenter method will set the initial view type to hybrid. Make sure that you make a backup of the page first before you make this update in case you need to revert it.
Hi Eric,
Thank you very much for this - it works an absolute treat!
This was my first time making use of this setting and it seems pretty cool, I'm glad the question was brought up and that it worked out for you.
Eric,
Thank you very much for this information. The client is very happy with it, BUT he's now asking if it is possible to put a second marker on the same page. Unfortunately, his parking is a little way off from his main building marker!
If you can pull one out of the hat for this, you're a genius, Eric!
you can edit the google map settings and add another address to the page.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.