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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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