Git Product home page Git Product logo

mapswitcher's People

Contributors

david-r-edgar avatar hugobqd avatar joshuahhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mapswitcher's Issues

windy.com not working as a source

When browsing windy.com on my desktop browser (chromium on debian/linux), Map Switcher says "No coordinates available on this page".

I can't remember if this ever worked previously. Going from another source/site to windy.com does still work for me.

Google Hybrid

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

Support for Strava Route Builder

I am interested in adding support for the Strava Route Builder to MapSwitcher, as an input. This is the page with a URL like "https://www.strava.com/routes/26021009/edit" (though that probably won't work for you, because it's my route :P).

I've skimmed some of the techniques you use in dataExtractor.js, like URL fragments, permalinks, etc. The ones I've seen don't seem to apply to this particular page. This page has an embedded Leaflet map viewer. I'm curious if you have any leads on how to deal with those. (It seems possible I could look at tile URLs & positions and reverse-engineer the view from that...)

P.S. MapSwitcher is fantastic! It is the map-switcher of my dreams. Thank you for sharing it!

Open-ended inputs via a link element

Hello @david-r-edgar! I hope you're well.

tl;dr – I'd like to add an input handler (across all domains) which looks for an element like this in the page head:

<link rel="map-view" href="geo:37.78918,-122.40335?z=12">

If such a link is found, it will work as an input for MapSwitcher.

I'm happy to code this up, if it sounds good to you!

Longer story

I've been making my own mapping tools lately (Strava Atlas and Elevator, if you want to take a look). I've been missing getting to use MapSwitcher with them. But I don't think it would make any sense to add my peculiar niche tools to the MapSwitcher codebase! Rather, I thought it would be good if a website could advertise itself as offering a map view. Then MapSwitcher could read that off of any site, without needing a special input handler.

As far as I know, there is no existing convention for this. I picked the <link> style above by:

  1. looking for a convention for map views (center + view), and finding the geo: uri scheme (or rather, Android's extension thereof),
  2. figuring, since it's a URI, we might as well use a link tag.

I'm happy to revise this, especially if you know a standard I'm missing.

If MapSwitcher had this, it would be easy for hobby projects like mine to add a (possibly dynamically updated) <link> element and immediately work as MapSwitcher inputs. (Also, people could write extensions or userscripts which would add this <link> element to existing pages.)

Please let me know what you think. Thanks!

(Open-ended outputs are another story... an interesting one!)

thermal.kk7.ch

https://thermal.kk7.ch/ is a map for paragliders and other "free flight" enthusiasts, which overlays track information, and derives thermal (updraft) locations. There is more information available on the website.

Would be great to have included in Map Switcher (which I love, thank you!).

no directions shown when wego.here.com has empty origin

eg. found through this link:
https://wego.here.com/directions/mix//Wigtown-Scotlands-National-Book-Town,-South-Main-Street,-Wigtown:e-eyJuYW1lIjoiV2lndG93biAtIFNjb3RsYW5kJ3MgTmF0aW9uYWwgQm9vayBUb3duIiwiYWRkcmVzcyI6IlNvdXRoIE1haW4gU3RyZWV0LCBXaWd0b3duIiwibGF0aXR1ZGUiOjU0Ljg2ODE1NjgzMTIzLCJsb25naXR1ZGUiOi00LjQ0MjU4NDk0ODQ5NjUsInByb3ZpZGVyTmFtZSI6ImZhY2Vib29rIiwicHJvdmlkZXJJZCI6MTk1ODEwNTE3MTQ4NTYzfQ==?map=54.86816,-4.44258,17,normal&fb_locale=en_GB

sites with no directions are output correctly.

Console error logs of this form are shown for the popup:

extensions::uncaught_exception_handler:8 Error in response to storage.get: TypeError: Cannot use 'in' operator to search for 'address' in null
at Object.generate (chrome-extension://mbeolgpgbnafkpoocbdanbibnbalblkg/src/outputMaps.js:55:31)
at null.callback (chrome-extension://mbeolgpgbnafkpoocbdanbibnbalblkg/src/mapSwitcher.js:355:42)
at chrome-extension://mbeolgpgbnafkpoocbdanbibnbalblkg/src/mapSwitcher.js:353:39
at Object.run (chrome-extension://mbeolgpgbnafkpoocbdanbibnbalblkg/src/mapSwitcher.js:358:15)
at Promise.all.then.then.then.then.s (chrome-extension://mbeolgpgbnafkpoocbdanbibnbalblkg/src/mapSwitcher.js:428:32)

yandex.tld

Yandex Maps can use many TLDs, not only .com:

yandex.az
yandex.by
yandex.co.il
yandex.com
yandex.com.am
yandex.com.ge
yandex.com.tr
yandex.ee
yandex.fr
yandex.kg
yandex.kz
yandex.lt
yandex.lv
yandex.md
yandex.net
yandex.ru
yandex.tj
yandex.tm
yandex.ua
yandex.uz
  1. (simple) please, add coords recognition on any tld.
  2. (complex) it would be great, to add option - on what domain I want to open Yandex Maps. Domains are not equal:
  • you can be logged in on .ru, but not on .com
  • different view of territorial disputes
  • different default language

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.