Added 'default' section and fixed more linting errors

This commit is contained in:
Anna Shchurova
2021-08-23 13:02:26 -04:00
parent 711ae69bb5
commit 820c123335
2 changed files with 5 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import CanvasInstruction from './Instruction.js';
import GeometryType from '../../geom/GeometryType.js';
import Relationship from '../../extent/Relationship.js';
import VectorContext from '../VectorContext.js';
import { asColorLike } from '../../colorlike.js';
import {asColorLike} from '../../colorlike.js';
import {
buffer,
clone,
@@ -22,7 +22,7 @@ import {
defaultMiterLimit,
defaultStrokeStyle,
} from '../canvas.js';
import { equals, reverseSubArray } from '../../array.js';
import {equals, reverseSubArray} from '../../array.js';
import {
inflateCoordinates,
inflateCoordinatesArray,
@@ -405,6 +405,8 @@ class CanvasBuilder extends VectorContext {
hitDetectionRenderer || renderer,
]);
break;
default:
console.warn(`${type} geometry is not supported by custom drawing.`);
}
this.endGeometry(feature);
}

View File

@@ -6,7 +6,7 @@ import CircleStyle from './Circle.js';
import Fill from './Fill.js';
import GeometryType from '../geom/GeometryType.js';
import Stroke from './Stroke.js';
import { assert } from '../asserts.js';
import {assert} from '../asserts.js';
/**
* A function that takes an {@link module:ol/Feature} and a `{number}`