相关文章推荐
谦和的炒粉  ·  node.js - NPM not ...·  1 年前    · 
没人理的爆米花  ·  为 ASP.NET Core ...·  1 年前    · 
斯文的数据线  ·  java8 Stream ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

By using the obvious event handler::

layer.getSource().on('tileloaderror', function (ev) {
        console.log(ev);

I get an output rather useless, since it doesn't seem to contain any information regarding HTTP Response body/headers etc.

Is there a way to access those kind of information after a failed tile request? In my implementation, access token must be updated, thus response code is necessary.

If not possible after all, maybe there is a way to create a custom tile load request (maybe implement my own "tileloadfunction" or something).

Why API docs for older versions are removed? Can not find doc for the version I use (4.2) anywhere... That makes devel impossible,since I'm not planning on updating ol version any time soon... – Jimi Oct 16, 2018 at 13:53 You can use this link to find some previous example. But they should keep the previous example tsauerwein.github.io/ol3/animation-flights/examples – Atanu Nov 23, 2018 at 8:56

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.