I’ve successfully created a UrlTemplateImageryProvider, but the layer (by design) does not include image files for areas of the globe for which it has no data.
It’s working fine, but I get a ton of errors in the console about the missing files.
I checked the docs, and there’s a (read-only) member called “tileDiscardPolicy” which looks like it should have something to do with it, but the documentation is slim.
Digging into the source, it appears that I can create my own tileDiscardPolicy and pass it in as an option, but this is undocumented.
Is there a way I can prevent the (spurious) errors from polluting the console?
See my demo project here:
http://webapp.layeredearth.com/index.html
Thanks,
Dave