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 ];
if( file.height &&
file.width &&
file.url && (
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || (
file.mimetype &&
file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/)
)
) ){
file.url ){
//This is sufficient to serve as a level
filtered.push({
url: file.url,