Skip to content

Commit d939e33

Browse files
HarelMNeonox31
authored andcommitted
fea(vector): add style, updateWhileAnimating and updateWhileInteracting inputs
Closes #198
1 parent 9efdb8c commit d939e33

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

projects/ngx-openlayers/src/lib/layers/layervector.component.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnDestroy, OnInit, Input, Optional, OnChanges, SimpleChanges } from '@angular/core';
2-
import { layer, source } from 'openlayers';
2+
import { layer, source, style, StyleFunction } from 'openlayers';
33
import { MapComponent } from '../map.component';
44
import { LayerComponent } from './layer.component';
55
import { LayerGroupComponent } from './layergroup.component';
@@ -16,6 +16,15 @@ export class LayerVectorComponent extends LayerComponent implements OnInit, OnDe
1616
@Input()
1717
renderBuffer: number;
1818

19+
@Input()
20+
style: style.Style | style.Style[] | StyleFunction;
21+
22+
@Input()
23+
updateWhileAnimating: boolean;
24+
25+
@Input()
26+
updateWhileInteracting: boolean;
27+
1928
constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) {
2029
super(group || map);
2130
}

projects/ngx-openlayers/src/lib/sources/cluster.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class SourceClusterComponent extends SourceComponent implements AfterCont
1717
@Input()
1818
distance: number;
1919
@Input()
20-
geometryFunction?: ((feature: Feature) => geom.Point);
20+
geometryFunction?: (feature: Feature) => geom.Point;
2121
@Input()
2222
wrapX?: boolean;
2323

projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export class SourceTileWMTSComponent extends SourceComponent implements AfterCon
4141
@Input()
4242
style: string;
4343
@Input()
44-
tileClass?: ((
44+
tileClass?: (
4545
n: ImageTile,
4646
coords: TileCoord,
4747
state: Tile.State,
4848
s1: string,
4949
s2: string,
5050
type: TileLoadFunctionType
51-
) => any);
51+
) => any;
5252
@Input()
5353
tilePixelRatio?: number;
5454
@Input()

0 commit comments

Comments
 (0)