Open joshuahhh opened 3 years ago
An alternative to the <link>
I proposed comes from this expired IETF draft from 2007. It proposes
<meta name="geo.position" content="37.78918;-122.40335">
(and some other less relevant keys).
Issues with this:
<meta name="geo.zoom" content="12">
Maybe I'll ask around a bit.
This is a great idea.
Actually I had previously had the beginnings of thoughts along similar lines, but I didn't know of any existing standard or convention.
I'm not immediately sure which of your suggestions I'd prefer. As you mention, a zoom parameter is definitely desirable. (And if not that, then some other value that allows the scale to be determined.)
One thing to bear in mind is that I've done quite a lot of work on the tabs2
branch - I'm intending it to be the next major release; it just needs a bit more testing, hopefully over the coming days.
It refactors lots of the code quite significantly.
I imagine that it's best to set up a default extractor which will run against any non-recognised URL, and it can potentially search for whichever of these 'standard' formats matches.
If you would like to create a PR, you might prefer to base it on that tabs2
branch.
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:
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!)