diff --git a/projects/ngx-openlayers/src/lib/layers/layervector.component.ts b/projects/ngx-openlayers/src/lib/layers/layervector.component.ts index 1c284583..952f5d39 100644 --- a/projects/ngx-openlayers/src/lib/layers/layervector.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layervector.component.ts @@ -1,5 +1,5 @@ import { Component, OnDestroy, OnInit, Input, Optional, OnChanges, SimpleChanges } from '@angular/core'; -import { layer, source } from 'openlayers'; +import { layer, source, style, StyleFunction } from 'openlayers'; import { MapComponent } from '../map.component'; import { LayerComponent } from './layer.component'; import { LayerGroupComponent } from './layergroup.component'; @@ -16,6 +16,15 @@ export class LayerVectorComponent extends LayerComponent implements OnInit, OnDe @Input() renderBuffer: number; + @Input() + style: style.Style | style.Style[] | StyleFunction; + + @Input() + updateWhileAnimating: boolean; + + @Input() + updateWhileInteracting: boolean; + constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) { super(group || map); } diff --git a/projects/ngx-openlayers/src/lib/sources/cluster.component.ts b/projects/ngx-openlayers/src/lib/sources/cluster.component.ts index 5661b569..623c33c6 100644 --- a/projects/ngx-openlayers/src/lib/sources/cluster.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/cluster.component.ts @@ -17,7 +17,7 @@ export class SourceClusterComponent extends SourceComponent implements AfterCont @Input() distance: number; @Input() - geometryFunction?: ((feature: Feature) => geom.Point); + geometryFunction?: (feature: Feature) => geom.Point; @Input() wrapX?: boolean; diff --git a/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts b/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts index e8751471..4093cffa 100644 --- a/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts @@ -41,14 +41,14 @@ export class SourceTileWMTSComponent extends SourceComponent implements AfterCon @Input() style: string; @Input() - tileClass?: (( + tileClass?: ( n: ImageTile, coords: TileCoord, state: Tile.State, s1: string, s2: string, type: TileLoadFunctionType - ) => any); + ) => any; @Input() tilePixelRatio?: number; @Input()