Added 'default' section and fixed more linting errors
This commit is contained in:
@@ -5,7 +5,7 @@ import CanvasInstruction from './Instruction.js';
|
|||||||
import GeometryType from '../../geom/GeometryType.js';
|
import GeometryType from '../../geom/GeometryType.js';
|
||||||
import Relationship from '../../extent/Relationship.js';
|
import Relationship from '../../extent/Relationship.js';
|
||||||
import VectorContext from '../VectorContext.js';
|
import VectorContext from '../VectorContext.js';
|
||||||
import { asColorLike } from '../../colorlike.js';
|
import {asColorLike} from '../../colorlike.js';
|
||||||
import {
|
import {
|
||||||
buffer,
|
buffer,
|
||||||
clone,
|
clone,
|
||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
defaultMiterLimit,
|
defaultMiterLimit,
|
||||||
defaultStrokeStyle,
|
defaultStrokeStyle,
|
||||||
} from '../canvas.js';
|
} from '../canvas.js';
|
||||||
import { equals, reverseSubArray } from '../../array.js';
|
import {equals, reverseSubArray} from '../../array.js';
|
||||||
import {
|
import {
|
||||||
inflateCoordinates,
|
inflateCoordinates,
|
||||||
inflateCoordinatesArray,
|
inflateCoordinatesArray,
|
||||||
@@ -405,6 +405,8 @@ class CanvasBuilder extends VectorContext {
|
|||||||
hitDetectionRenderer || renderer,
|
hitDetectionRenderer || renderer,
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
console.warn(`${type} geometry is not supported by custom drawing.`);
|
||||||
}
|
}
|
||||||
this.endGeometry(feature);
|
this.endGeometry(feature);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import CircleStyle from './Circle.js';
|
|||||||
import Fill from './Fill.js';
|
import Fill from './Fill.js';
|
||||||
import GeometryType from '../geom/GeometryType.js';
|
import GeometryType from '../geom/GeometryType.js';
|
||||||
import Stroke from './Stroke.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}`
|
* A function that takes an {@link module:ol/Feature} and a `{number}`
|
||||||
|
|||||||
Reference in New Issue
Block a user