david-r-edgar / MapSwitcher

Chrome extension to switch between different mapping websites
MIT License
25 stars 7 forks source link

Google Hybrid #23

Open jidanni opened 3 years ago

jidanni commented 3 years ago

One can choose Google Earth, but no plain Google Hybrid.

david-r-edgar commented 3 years ago

So the problem is that to be able to open a hybrid (i.e. Satellite with Labels on), I'd need a URL format that distinguishes it from regular Satellite with Labels off.

When I try switching Labels on or off, the displayed map changes, but I see no change in the URL.

I don't know if such a URL exists. If you know of a guaranteed way to distinguish the two types, please let me know and I'll be happy to incorporate it.

jidanni commented 3 years ago

OK, if https://www.google.com.tw/maps/@24.1713049,120.8416391,17z/data=!5m1!1e4 is Terrain, then https://www.google.com.tw/maps/@24.1713049,120.8416391,17z/data=!3m1!1e3 "gets" Hybrid. (Gained via lots of experiments. Seems to work.)

david-r-edgar commented 3 years ago

Both of those are already available. The first is the "Terrain" link. The second is the "Earth" link. https://github.com/david-r-edgar/MapSwitcher/blob/master/src/outputMaps.js#L139-L140

So maybe I don't understand what you're looking for?

jidanni commented 3 years ago

Ah, no wonder. You should call your link Hybrid. Because the real Earth link should look like https://earth.google.com/web/@0,0,0a,22251752.77375655d,35y,0h,0t,0r Which is much more CPU intensive, which is why I never dared to click yours to find out what you linked to, as I assumed you had liked to earth.google.com .

jidanni commented 3 years ago
  1. Open Google Earth Pro. (Standalone, non-Browser program.)
  2. In the File menu you'll see the button. 17607-3
david-r-edgar commented 3 years ago

Ah, I understand the confusion now!

Actually I've never installed Google Earth, and had kind of forgotten it existed, so I've never considered supporting it... but that's interesting, it's probably worth adding another link for.

I don't entirely remember now why I called the existing link "Earth"; I've a feeling that at one stage the web UI called satellite view "Earth". Clearly it's no longer called that.

I will rename it, although I reckon it's probably better to call it "Satellite", as I don't see the term "Hybrid" being used anywhere nowadays.

jidanni commented 3 years ago

Satellite means Satellite with no labels. Hybrid means Satellite with labels. That is the custom for the last 20 years in the map link world.

jidanni commented 3 years ago

But yes, on maps.google.com Hybrid is indeed called just Satellite now (with labels being a sub-choice.) So nobody will blame you.