-
Notifications
You must be signed in to change notification settings - Fork 16
Add "tooltip" display on focus / hover event #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I suspect SVG's We need a more persistent popup tooltip. I'm writing up a description of what we need, which I'll deliver today. |
Should we not separate implementation mistakes from the markup design? What I mean is, proposing to create another similar element e.g. |
Are we talking about the MapML spec, or the MapML-Viewer implementation? If we're talking about the spec, I have other concerns with the If we're talking about our implementation, I'm simply trying to address the realities of current browser behavior, which we need to work around to get proper behavior in our implementation. |
A bit of both: for the MapML spec, I suggest that we could add |
If we're not talking about using the SVG But for the spec, the HTML In general, I wouldn't advise trying to port SVG element naming conventions into MapML, since the intent seems to be to integrate MapML into HTML, while SVG was designed during the period when it was assumed that namespaces would distinguish vocabularies, which made the later integration of SVG into HTML needlessly complex. To this day, there are painpoints in developers using SVG in HTML, which we can avoid by designing MapML to be a formal extension of HTML from the beginning. |
We do currently use the
|
I don't have a strong opinion about the name, other than that it shouldn't overload It might be prudent to look at how the Ultimately, this will be for a Working Group to decide; I just think it's smart to find a reasonably viable option in the meantime. |
Uh oh!
There was an error while loading. Please reload this page.
In testing the first experiment with @shepazu, we found that (due to my misunderstanding earlier comments) the user experience is not great for sighted keyboard users, since there is no display of the feature's accessible name on focus. The default <title>Feature</title> is being generated in paths today (which if features existed in HTML would not be necessary because of a default that we'll establish), and is presumably read by screen readers (I tried to download NVDA but their download is out of order at the moment).
In reviewing the svg
<title>
element, it looks like it would be reasonable to add<title>
as an optional child of<feature>
, which would have the<properties>
and<geometry>
siblings.I added a feature request to the GeoServer MapML extension to allow the user to map content to the generated
<feature><title>
so that there is a meaningful experience available there.Aside:
<properties>
is starting to look a lot like svg's<desc>
, which is OK; we can have the conversation about that element's name in a working group. "properties" comes from GeoJSON and is meant to be familiar to developers familiar with that format.The text was updated successfully, but these errors were encountered: