Opening Good Map In Hybrid View

BrianExcel

Well-known Member
Joined
Apr 21, 2010
Messages
975
I have code that uses Google Chrome to open a Google Map based on a specific address. If there is no address, it references a backup line of code where it opens the map based on Latitude & Longitude coordinates.

Here is the code for the map based on the address:

Code:
    sWebURL = "https://www.google.com/maps/place/" & sAddress & "+" & sCity & "+" & State & "+" & sZip        sWebURL = Replace(sWebURL, " ", "+")

Shell ("C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe -url " & sWebURL)

And here is the code for opening the map using GPS coordinates:




Code:
    sWebURL = "https://www.google.com/maps/place/" & sAddress & "+" & sCity & "+" & State & "+" & sZip        sWebURL = Replace(sWebURL, " ", "+")

Shell ("C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe -url " & sWebURL)

The only thing I can't get to work is opening the address (primary) version in Hybrid Map mode. When I search by address it opens in the basic map without the terrain overlay. BUT when I open the GPS version, it opens in Hybrid just fine.

Can anyone point me to a way to open in Hybrid mode by default?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top