More type fixes

This commit is contained in:
Willem Dantuma
2021-10-05 16:13:25 +02:00
parent 5d21d66589
commit 1c1315a580
4 changed files with 10 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { Component, Input, OnInit,ViewChild } from '@angular/core';
import { Feature} from 'ol';
import { Geometry } from 'ol/geom';
import { Geometry,Polygon,MultiPolygon } from 'ol/geom';
import * as extent from 'ol/extent';
import * as render from 'ol/render';
import * as style from 'ol/style';
@@ -28,7 +28,7 @@ export class GeometryThumbnailComponent implements OnInit {
stroke: new style.Stroke({ color: 'black',width:1.5 })
});
let geom = geometry.clone(),
let geom = geometry.clone() as Polygon,
line = geom.getCoordinates()[0],
e = extent.boundingExtent( line );