Remove lint

This commit is contained in:
Andreas Hocevar
2020-04-29 09:23:10 +02:00
parent d395b54605
commit 96802ba645
2 changed files with 37 additions and 36 deletions

View File

@@ -451,7 +451,8 @@ export function optionsFromCapabilities(wmtsCap, config) {
const wrapX = false;
const matrix0 = matrixSetObj.TileMatrix[0];
const resolution = (matrix0.ScaleDenominator * 0.00028) / projection.getMetersPerUnit(); // WMTS 1.0.0: standardized rendering pixel size
const resolution =
(matrix0.ScaleDenominator * 0.00028) / projection.getMetersPerUnit(); // WMTS 1.0.0: standardized rendering pixel size
const origin =
projection === getProjection('EPSG:4326')
? [matrix0.TopLeftCorner[1], matrix0.TopLeftCorner[0]]

View File

@@ -352,11 +352,12 @@ describe('ol.source.WMTS', function () {
describe('when creating options from wgs84 capabilities', function () {
const parser = new WMTSCapabilities();
let capabilities, content;
let capabilities;
before(function (done) {
afterLoadText('spec/ol/format/wmts/capabilities_wgs84.xml', function (xml) {
afterLoadText('spec/ol/format/wmts/capabilities_wgs84.xml', function (
xml
) {
try {
content = xml;
capabilities = parser.read(xml);
} catch (e) {
done(e);
@@ -365,7 +366,6 @@ describe('ol.source.WMTS', function () {
});
});
it('returns correct bounding box', function () {
const options = optionsFromCapabilities(capabilities, {
layer: 'baselayer',
@@ -396,7 +396,8 @@ describe('ol.source.WMTS', function () {
const extent = options.tileGrid.getExtent();
// compare with delta, due to rounding not the exact bounding box is returned...
const expectDelta = (value, expected) => expect(Math.abs(value - expected)).to.below(1e-10);
const expectDelta = (value, expected) =>
expect(Math.abs(value - expected)).to.below(1e-10);
expectDelta(extent[0], -180);
expectDelta(extent[1], -90);
@@ -534,5 +535,4 @@ describe('ol.source.WMTS', function () {
expect(requestEncoding).to.be.eql('REST');
});
});
});