src/iiiftilesource.js
function canBeTiled ( profile ) {
        var level0Profiles = [
            "http://library.stanford.edu/iiif/image-api/compliance.html#level0",
            "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",
            "http://iiif.io/api/image/2/level0.json"
        ];
        var isLevel0 = (level0Profiles.indexOf(profile[0]) !== -1);
        var hasSizeByW = false;
        if ( profile.length > 1 && profile[1].supports ) {
            hasSizeByW = profile[1].supports.indexOf( "sizeByW" ) !== -1;
        }
        return !isLevel0 || hasSizeByW;
    }
function canBeTiled ( profile ) {
        var level0Profiles = [
            "http://library.stanford.edu/iiif/image-api/compliance.html#level0",
            "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",
            "http://iiif.io/api/image/2/level0.json"
        ];
        var isLevel0 = (level0Profiles.indexOf(profile[0]) !== -1);
        var hasSizeByW = false;
        if ( profile.length > 1 && profile[1].supports ) {
            hasSizeByW = profile[1].supports.indexOf( "sizeByW" ) !== -1;
        }
        return !isLevel0 || hasSizeByW;
    }
function canBeTiled ( profile ) { var level0Profiles = [ "http://library.stanford.edu/iiif/image-api/compliance.html#level0" , "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0" , "http://iiif.io/api/image/2/level0.json" ] ; var isLevel0 = ( level0Profiles . indexOf ( profile [ 0 ] ) !== - 1 ) ; var hasSizeByW = false ; if ( profile . length > 1 && profile [ 1 ] . supports ) { hasSizeByW = profile [ 1 ] . supports . indexOf ( "sizeByW" ) !== - 1 ; } return ! isLevel0 || hasSizeByW ; }
Determine whether arbitrary tile requests can be made against a service with the given profile
@function
@param {array} profile - IIIF profile array
@throws {Error}
Determine whether arbitrary tile requests can be made against a service with the given profile