Skip to content

WMTSCapabilities.js - defects #608

@ca0v

Description

@ca0v

1st - would be nice if the test code below defaults to the first item in tileMatrixSetLinks instead of requiring exactly one item to exist (remove the == 1 test):

    if (config.matrixSet) {
        matrixSet = contents.tileMatrixSets[config.matrixSet];
    } else if (layerDef.tileMatrixSetLinks.length == 1) {
        matrixSet = contents.tileMatrixSets[
            layerDef.tileMatrixSetLinks[0].tileMatrixSet];
    }

2nd - precedence defect on line 157...missing ():

var units = config.units || (projection === "EPSG:4326" ? "degrees" : "m");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions