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:
And here is the code for opening the map using GPS coordinates:
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?
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?