diff --git a/src/legacytilesource.js b/src/legacytilesource.js index 80891b43..b661b967 100644 --- a/src/legacytilesource.js +++ b/src/legacytilesource.js @@ -215,7 +215,7 @@ function filterFiles( files ){ if( file.height && file.width && file.url && ( - file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)$/) || ( + file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || ( file.mimetype && file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/) )