Merge pull request #1056 from awagner-mainz/awagner-mainz-no_prior_filetype_check

Update legacytilesource.js
This commit is contained in:
Ian Gilman 2016-10-24 10:07:51 -07:00 committed by GitHub
commit 73bea928c5

View File

@ -204,12 +204,7 @@ function filterFiles( files ){
file = files[ i ]; file = files[ i ];
if( file.height && if( file.height &&
file.width && file.width &&
file.url && ( file.url ){
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || (
file.mimetype &&
file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/)
)
) ){
//This is sufficient to serve as a level //This is sufficient to serve as a level
filtered.push({ filtered.push({
url: file.url, url: file.url,