david-r-edgar / mapswitcher Goto Github PK
View Code? Open in Web Editor NEWChrome extension to switch between different mapping websites
License: MIT License
Chrome extension to switch between different mapping websites
License: MIT License
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.
One can choose Google Earth, but no plain Google Hybrid.
When a tab has been killed by the task manager, and you then try and open the extension, an uncaught error is shown in the extension error console.
Mapillary is a streetview-like.
Hi, thanks for the great extension.
I'd like apple maps links to be added, example below:
Hello,
It would be good to add this service gathering IA experiments to improve OSM editing.
Here's the link https://mapwith.ai/rapid#background=Mapbox&disable_features=boundaries&map=16/6.149208299999998/6.768725000000018
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!
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:
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!)
I'd like the extension to be able to grab coordinates from this type of google maps link:
and with this type of link as well:
(same as above but with edit link instead of viewer link)
https://www.google.com/maps/d/u/0/edit?mid=1EpC-GTEzYFLFL8kPS1kqT7znfsU&ll=60.15967146110667%2C-98.33311078792674&z=9
Could you add yandex maps support?
https://yandex.ru/maps/
API:
https://tech.yandex.com/maps/doc/staticapi/1.x/dg/concepts/input_params-docpage/
Please, add two more services:
https://nakarte.me/ - lightweight service for outdoor planning, vieweing / editing tracks etc.
http://brouter.de/brouter-web/ - web-interface to brouter routing engine
Please add https://www.cyclosm.org.
Infos:
Thanks!
Hello, please add Qwant support, it's a promising search engine from EU who have the good idea to plug his database with openstreetmap.
qwant.com/maps.
Example : https://www.qwant.com/maps/#map=12.11/48.8603484/2.3375639
(thanks again!)
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!).
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)
Could you add f4map.com support please?
That the best 3D rendering of openstreetmap as far as I know.
http://demo.f4map.com/
The view may be loaded with a zoom min-value of 16 to have the 3D rendering
Example http://demo.f4map.com/#lat=40.7081861&lon=-74.0097708&zoom=16
Thanks (I really enjoy your extension and use it a lot !)
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
Appreciate your work on glueing together map services. Would you mind taking a look at davidrumsey.com to check out whether it is feasible to add their vast collection of historical maps into MapSwitcher. Note that some of their maps have been geolocated and overlayed to current WMS too.
See here for a map of their georeferenced maps: https://www.davidrumsey.com/view/georeferenced-maps
Hello, thanks so much for your great tool.
Could you add Geoportail french geographical datasite link that could be like
https://www.geoportail.gouv.fr/carte?c=4.805295021662244,44.142071056487566&z=19&l0=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2::GEOPORTAIL:OGC:WMTS(1)&l1=OPEN_STREET_MAP::GEOPORTAIL:OGC:WMTS(1)&permalink=yes
Here's a very good source of map data:
(please add to list of map services in extension)
https://www.arcgis.com/home/webmap/viewer.html?webmap=86265e5a4bbb4187a59719cf134e0018
URL's work like this:
https://www.arcgis.com/home/webmap/viewer.html?webmap=86265e5a4bbb4187a59719cf134e0018&find={latitude},{longitude}
more info here:
https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/use-url-parameters-in-map-viewer/
Thanks again :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.