Fix enum types
This commit is contained in:
@@ -380,10 +380,10 @@ export function createDefaultStyle(feature, resolution) {
|
||||
|
||||
/**
|
||||
* Default styles for editing features.
|
||||
* @return {Object.<module:ol/geom/GeometryType~GeometryType, Array.<module:ol/style/Style~Style>>} Styles
|
||||
* @return {Object.<module:ol/geom/GeometryType, Array.<module:ol/style/Style~Style>>} Styles
|
||||
*/
|
||||
export function createEditingStyle() {
|
||||
/** @type {Object.<module:ol/geom/GeometryType~GeometryType, Array.<module:ol/style/Style~Style>>} */
|
||||
/** @type {Object.<module:ol/geom/GeometryType, Array.<module:ol/style/Style~Style>>} */
|
||||
const styles = {};
|
||||
const white = [255, 255, 255, 1];
|
||||
const blue = [0, 153, 255, 1];
|
||||
|
||||
+12
-12
@@ -28,16 +28,16 @@
|
||||
* var white = [255, 255, 255, 1];
|
||||
* var blue = [0, 153, 255, 1];
|
||||
* var width = 3;
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.POLYGON] = [
|
||||
* styles[module:ol/geom/GeometryType.POLYGON] = [
|
||||
* new ol.style.Style({
|
||||
* fill: new ol.style.Fill({
|
||||
* color: [255, 255, 255, 0.5]
|
||||
* })
|
||||
* })
|
||||
* ];
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.MULTI_POLYGON] =
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.POLYGON];
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.LINE_STRING] = [
|
||||
* styles[module:ol/geom/GeometryType.MULTI_POLYGON] =
|
||||
* styles[module:ol/geom/GeometryType.POLYGON];
|
||||
* styles[module:ol/geom/GeometryType.LINE_STRING] = [
|
||||
* new ol.style.Style({
|
||||
* stroke: new ol.style.Stroke({
|
||||
* color: white,
|
||||
@@ -51,9 +51,9 @@
|
||||
* })
|
||||
* })
|
||||
* ];
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.MULTI_LINE_STRING] =
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.LINE_STRING];
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.POINT] = [
|
||||
* styles[module:ol/geom/GeometryType.MULTI_LINE_STRING] =
|
||||
* styles[module:ol/geom/GeometryType.LINE_STRING];
|
||||
* styles[module:ol/geom/GeometryType.POINT] = [
|
||||
* new ol.style.Style({
|
||||
* image: new ol.style.Circle({
|
||||
* radius: width * 2,
|
||||
@@ -68,11 +68,11 @@
|
||||
* zIndex: Infinity
|
||||
* })
|
||||
* ];
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.MULTI_POINT] =
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.POINT];
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.GEOMETRY_COLLECTION] =
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.POLYGON].concat(
|
||||
* styles[module:ol/geom/GeometryType~GeometryType.POINT]
|
||||
* styles[module:ol/geom/GeometryType.MULTI_POINT] =
|
||||
* styles[module:ol/geom/GeometryType.POINT];
|
||||
* styles[module:ol/geom/GeometryType.GEOMETRY_COLLECTION] =
|
||||
* styles[module:ol/geom/GeometryType.POLYGON].concat(
|
||||
* styles[module:ol/geom/GeometryType.POINT]
|
||||
* );
|
||||
*```
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user