Skip to content
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

Capability: display useful error messages from server / graceful fallback #213

Open
AmeliaBR opened this issue May 12, 2020 · 1 comment
Labels
discussion: capability a specific capability or feature: should it be included? what details? should it be a requirement? status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft

Comments

@AmeliaBR
Copy link
Member

From some musings over our own broken examples…

Me:

Sigh… the worst part is knowing that authentication issues for accessing proprietary data are one thing we can't ever expect to 100% standardize away. Keeping map data up to date will always cost money & that means companies want to get paid.

@Malvoz's reply:

Agreed, but I definitely think there are benefits in standardization, for one thing, Map API keys issue could perhaps utilize the Reporting API, making it easier for developers to retrieve notifications. Or how things should behave on the client when an API key has expired, for example Bings Maps API is displaying some information, although developer-oriented (fails due to localhost in this instance):

where other map tools would just cease to function silently:

I can think of a couple things that could be integrated into the browser widget to improve situations:

  1. Have a way to indicate to users that content specified by the website author failed to load. Like the broken image icon, at least. Need to consider how this should look, especially with tiles and layers — don't want broken-image icons all over!

  2. Maybe, have a way to display a text error message from the server to users (like the Bing maps screenshot above). Not sure about this, or whether that belongs better in the console.

  3. Have a way to fallback to a different source, whether that's a default map layer (re Capability: Default map provider #8), an author-specified fallback. Or at least indicate whether a missing layer should be replaced by something opaque like basic graticule lines, so that overlays could still make some sense.

@AmeliaBR AmeliaBR added discussion: capability a specific capability or feature: should it be included? what details? should it be a requirement? status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft labels May 12, 2020
@prushforth
Copy link
Member

prushforth commented May 12, 2020

  1. Have a way to indicate to users that content specified by the website author failed to load. Like the broken image icon, at least. Need to consider how this should look, especially with tiles and layers — don't want broken-image icons all over!

What about disabling the layer in the layer control or something like that. It would be good to have a way of flagging the fact that the layer is broken non-visually as well.

  1. Maybe, have a way to display a text error message from the server to users (like the Bing maps screenshot above). Not sure about this, or whether that belongs better in the console.

Tricky, usually the console will have HTTP errors, but I can't think of having seen browser messages there. They could be quite informative to authors though.

  1. Have a way to fallback to a different source, whether that's a default map layer (re Capability: Default map provider #8), an author-specified fallback. Or at least indicate whether a missing layer should be replaced by something opaque like basic graticule lines, so that overlays could still make some sense.

In the <layer-> element currently allows and prefers the @src attribute, but I was wondering what you all might think about falling back to the content of the <layer->...</layer-> if present? Currently I don't do anything with content if the @src element is present, IIRC. But, I also currently don't do anything if the document referred to by @src fails in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion: capability a specific capability or feature: should it be included? what details? should it be a requirement? status: suggestion this issue discusses a suggested addition to the report, that is not yet in the draft
Projects
None yet
Development

No branches or pull requests

2 participants