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

I know there is a tileloaderror event fired if a tile fails to load, but how do I use that event to replace the missing tile with a 256x256 transparent png? At the moment if a tile is missing and you zoom in then the zoomed out portion of the tile is still available, I want to replace it with a blank to stop this.

Any ideas?

Perfect! That worked a treat - no longer getting 'spill over' from missing tiles on a layer above my map layer. Thanks. user4773894 Sep 15, 2015 at 12:15

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 .