Skip to content

Commit

Permalink
fea(vector): add style, updateWhileAnimating and updateWhileInteracti…
Browse files Browse the repository at this point in the history
…ng inputs

Closes #198
  • Loading branch information
HarelM authored and Neonox31 committed Feb 4, 2019
1 parent 9efdb8c commit d939e33
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion projects/ngx-openlayers/src/lib/layers/layervector.component.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d939e33

Please sign in to comment.