Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenLayers 6.14.1 and ol-ext 3.2.22 #84

Merged
merged 61 commits into from
Apr 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
860ebba
use ol 6.14.1's type declaration(drop using ol-types) and fix types f…
smellman Mar 30, 2022
0862351
bump npm packages
smellman Mar 30, 2022
f45daa8
use current dtslint(but it doesn't run)
smellman Mar 30, 2022
47c26e1
use OnSignature
smellman Mar 30, 2022
291446d
use OnSignature
smellman Mar 30, 2022
fefb473
use OnSignature
smellman Mar 30, 2022
f52c8b3
use OnSignature
smellman Mar 30, 2022
10e0350
test: use typeof
smellman Mar 31, 2022
7bcaec7
remove unused import
smellman Mar 31, 2022
a8a6d49
use geojson package because openlayers upstream use it
smellman Mar 31, 2022
96b20f3
use OnSignature
smellman Apr 4, 2022
6f078df
use OnSignature
smellman Apr 4, 2022
2bdee33
use OnSignature
smellman Apr 4, 2022
0cf589b
use OnSignature
smellman Apr 4, 2022
3bb1933
use OnSignature
smellman Apr 4, 2022
0a3a218
use OnSignature
smellman Apr 4, 2022
4e99a13
use OnSignature
smellman Apr 4, 2022
8e52ca8
use OnSignature
smellman Apr 4, 2022
ab28425
use OnSignature
smellman Apr 4, 2022
dfabd7d
use OnSignature
smellman Apr 4, 2022
dcaadab
use OnSignature
smellman Apr 4, 2022
2da0d1b
use OnSignature
smellman Apr 4, 2022
bab9c6d
use OnSignature
smellman Apr 4, 2022
7e2361f
set UIEvent argument
smellman Apr 4, 2022
9998139
use typeof for namespace to fix TS2709
smellman Apr 4, 2022
450f84b
use typeof
smellman Apr 4, 2022
d975ddf
import LineString to fix compile error
smellman Apr 4, 2022
e5787ec
fixes interface declare
smellman Apr 4, 2022
05a159f
fixes generic define for VectorLayer
smellman Apr 4, 2022
dfdde03
import VectorSource directory
smellman Apr 4, 2022
8833693
fixes missing generic
smellman Apr 4, 2022
2a3a391
re-define ModifyEventType
smellman Apr 4, 2022
2f1df7f
fixes Duplicate identifier
smellman Apr 4, 2022
ec9124d
skip geotiff's typescript error
smellman Apr 4, 2022
a9ee3d3
added info event
smellman Apr 4, 2022
f23eb2e
ModifyEvent's feature is not collection, added oldValue in some Event…
smellman Apr 4, 2022
8baf6a8
use GridReferenceSelectEvent instead of SelectEvent
smellman Apr 4, 2022
6457add
implement SelectEvent
smellman Apr 4, 2022
ae613c2
added generic argument
smellman Apr 4, 2022
bcf669f
revert SearchJSON and implement SearchEvent in Search
smellman Apr 5, 2022
64a63cb
added missing event types
smellman Apr 5, 2022
0695d8a
added drawing event
smellman Apr 5, 2022
949831e
use Type Guard
smellman Apr 5, 2022
6f29edb
supports nullable
smellman Apr 5, 2022
9c55943
added Color event
smellman Apr 9, 2022
2d9a20b
added Slider event
smellman Apr 9, 2022
b2984ae
added Size event
smellman Apr 9, 2022
472d107
added Width event
smellman Apr 9, 2022
3edf9e6
added List event
smellman Apr 9, 2022
e775a6f
added SearchNominatim event
smellman Apr 9, 2022
ac918c6
events with array doesn't return SearchEvent
smellman Apr 9, 2022
7c40c00
use Coordinate
smellman Apr 9, 2022
5d5c6f9
accept nullable, use VectorSource
smellman Apr 9, 2022
646d30c
CollectionEvent is not having generic
smellman Apr 9, 2022
e4bc4a9
added missing generic
smellman Apr 9, 2022
8c633e1
fix typo and add import
smellman Apr 9, 2022
9bdc38a
fixes typescript error with skipLibCheck: false
smellman Apr 9, 2022
7ebe43e
fixes typescript error with skipLibCheck: false
smellman Apr 9, 2022
cc19846
Options type cannot extend
smellman Apr 9, 2022
5479b48
enable to run index signature
smellman Apr 11, 2022
e18f56c
use FeatureAnimation class instead of featureAnimation const value
smellman Apr 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 10 additions & 30 deletions @types/ol-ext/control/EditBar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ import { EventsKey } from 'ol/events';
import BaseEvent from 'ol/events/Event';
import { ObjectEvent } from 'ol/Object';
import { Geometry } from 'ol/geom';
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable';
import { Types } from 'ol/ObjectEventType';

type EditBarOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange', ObjectEvent, Return> &
OnSignature<Types | 'info', InfoEvent, Return> &
CombinedOnSignature<EventTypes | Types | 'change' | 'error' | 'propertychange' | 'info', Return>;

export enum EditBarEventType {
INFO = 'info',
Expand Down Expand Up @@ -111,38 +118,11 @@ export default class EditBar extends Bar {
*/
getControlsByName(name: string): ol_control_Control;

on(
type: string | string[],
listener: (p0: any) => any
): EventsKey | EventsKey[];
once(
type: string | string[],
listener: (p0: any) => any
): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => any): void;
on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'change', listener: (evt: BaseEvent) => void): void;
on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'error', listener: (evt: BaseEvent) => void): void;
on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void;
on: EditBarOnSignature<EventsKey>;
once: EditBarOnSignature<EventsKey>;
un: EditBarOnSignature<void>;
}
export class InfoEvent extends BaseEvent {
constructor(type: EditBarEventType, features: Collection<Feature<Geometry>>);
features: Collection<Feature<Geometry>>;
}

declare module 'ol/interaction/Select' {
interface Options {
title?: string;
}
}

declare module 'ol/interaction/Draw' {
interface Options {
title?: string;
}
}
31 changes: 9 additions & 22 deletions @types/ol-ext/control/GeoBookmark.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { Coordinate } from 'ol/coordinate';
import { EventsKey } from 'ol/events';
import BaseEvent from 'ol/events/Event';
import { ObjectEvent } from 'ol/Object';
import { Types } from 'ol/ObjectEventType';
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable';

type GeoBookmarkOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange', ObjectEvent, Return> &
OnSignature<Types | 'add' | 'remove' | 'select', BookmarkEvent, Return> &
CombinedOnSignature<EventTypes | Types | 'change' | 'error' | 'propertychange' | 'add' | 'remove' | 'select', Return>;

export enum BookMarkEventType {
ADD = "add",
Expand Down Expand Up @@ -77,28 +83,9 @@ export default class GeoBookmark extends ol_control_Control {
*/
addBookmark(name: string, position?: Coordinate, zoom?: number, permanent?: boolean): void;

on(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
once(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => any): void;
on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'change', listener: (evt: BaseEvent) => void): void;
on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'error', listener: (evt: BaseEvent) => void): void;
on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void;

on(type: 'add', listener: (evt: BookmarkEvent) => void): EventsKey;
once(type: 'add', listener: (evt: BookmarkEvent) => void): EventsKey;
un(type: 'add', listener: (evt: BookmarkEvent) => void): void;
on(type: 'remove', listener: (evt: BookmarkEvent) => void): EventsKey;
once(type: 'remove', listener: (evt: BookmarkEvent) => void): EventsKey;
un(type: 'remove', listener: (evt: BookmarkEvent) => void): void;
on(type: 'select', listener: (evt: BookmarkEvent) => void): EventsKey;
once(type: 'select', listener: (evt: BookmarkEvent) => void): EventsKey;
un(type: 'select', listener: (evt: BookmarkEvent) => void): void;
on: GeoBookmarkOnSignature<EventsKey>;
once: GeoBookmarkOnSignature<EventsKey>;
un: GeoBookmarkOnSignature<void>;
}

export class BookmarkEvent extends BaseEvent {
Expand Down
39 changes: 10 additions & 29 deletions @types/ol-ext/control/GridReference.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ import { Extent } from 'ol/extent';
import { Size } from 'ol/size';
import { Vector as VectorSource } from 'ol/source';
import { EventsKey } from 'ol/events';
import { SelectEvent } from 'ol/interaction/Select';
import BaseEvent from 'ol/events/Event';
import { ObjectEvent } from 'ol/Object';
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable';
import { Types } from 'ol/ObjectEventType';

type GridReferenceOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange', ObjectEvent, Return> &
OnSignature<Types | 'select', GridReferenceSelectEvent, Return> &
CombinedOnSignature<Types | EventTypes | 'change' | 'error' | 'propertychange' | 'select', Return>;

export enum GridReferenceEventType {
SELECT = 'select',
Expand Down Expand Up @@ -132,34 +138,9 @@ export default class GridReference extends CanvasBase {
*/
getTextFont(): string;

on(
type: string | string[],
listener: (p0: any) => any
): EventsKey | EventsKey[];
once(
type: string | string[],
listener: (p0: any) => any
): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => any): void;
on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'change', listener: (evt: BaseEvent) => void): void;
on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'error', listener: (evt: BaseEvent) => void): void;
on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void;

on(
type: 'select',
listener: (evt: GridReferenceSelectEvent) => void
): EventsKey;
once(
type: 'select',
listener: (evt: GridReferenceSelectEvent) => void
): EventsKey;
un(type: 'select', listener: (evt: GridReferenceSelectEvent) => void): void;
on: GridReferenceOnSignature<EventsKey>;
once: GridReferenceOnSignature<EventsKey>;
un: GridReferenceOnSignature<void>;
}

export class GridReferenceSelectEvent extends BaseEvent {
Expand Down
34 changes: 12 additions & 22 deletions @types/ol-ext/control/Imageline.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ import Feature from 'ol/Feature';
import { ObjectEvent } from 'ol/Object';
import { Vector as VectorSource } from 'ol/source';
import VectorLayer from 'ol/layer/Vector';
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable';
import { Types } from 'ol/ObjectEventType';
import { Geometry } from 'ol/geom';


type ImageLineOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange', ObjectEvent, Return> &
OnSignature<Types | 'select', ImageLineSelectEvent, Return> &
OnSignature<Types | 'collapse', ImageLineCollapseEvent, Return> &
CombinedOnSignature<Types | EventTypes | 'change' | 'error' | 'propertychange' | 'select' | 'collapse', Return>;
export interface Options extends ControlOptions {
className?: string;
source?: VectorSource;
layers?: VectorLayer[];
layers?: VectorLayer<VectorSource<Geometry>>[];
getImage?: (f: Feature) => string;
getTitle?: (f: Feature) => string;
collapsed?: boolean;
Expand Down Expand Up @@ -78,26 +85,9 @@ export default class Imageline extends ol_control_Control {
*/
select(feature: Feature, scroll?: boolean): void;

on(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
once(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => any): void;
on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'change', listener: (evt: BaseEvent) => void): void;
on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'error', listener: (evt: BaseEvent) => void): void;
on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey;
un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void;

on(type: 'select', listener: (evt: ImageLineSelectEvent) => void): EventsKey;
once(type: 'select', listener: (evt: ImageLineSelectEvent) => void): EventsKey;
un(type: 'select', listener: (evt: ImageLineSelectEvent) => void): void;

on(type: 'collapse', listener: (evt: ImageLineCollapseEvent) => void): EventsKey;
once(type: 'select', listener: (evt: ImageLineCollapseEvent) => void): EventsKey;
un(type: 'select', listener: (evt: ImageLineCollapseEvent) => void): void;
on: ImageLineOnSignature<EventsKey>;
once: ImageLineOnSignature<EventsKey>;
un: ImageLineOnSignature<void>;
}
export class ImageLineSelectEvent extends BaseEvent {
constructor(
Expand Down
28 changes: 8 additions & 20 deletions @types/ol-ext/control/IsochroneGeoportail.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import Feature from "ol/Feature";
import BaseEvent from "ol/events/Event";
import { EventsKey } from "ol/events";
import { ObjectEvent } from "ol/Object";
import { CombinedOnSignature, EventTypes, OnSignature } from "ol/Observable";
import { Types } from "ol/ObjectEventType";

type IsochroneGeoportailOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange' | 'isochrone', ObjectEvent, Return> &
CombinedOnSignature<Types | EventTypes | 'change' | 'error' | 'propertychange' | 'isochrone', Return>;
export interface Options extends ControlOptions {
className?: string;
apiKey?: string;
Expand Down Expand Up @@ -74,26 +79,9 @@ export default class IsochroneGeoportail extends ol_control_Control {
*/
search(coord: Coordinate, option: number | string, iter: number): void;

on(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
once(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => any): void;
on(type: "change", listener: (evt: BaseEvent) => void): EventsKey;
once(type: "change", listener: (evt: BaseEvent) => void): EventsKey;
un(type: "change", listener: (evt: BaseEvent) => void): void;
on(type: "error", listener: (evt: BaseEvent) => void): EventsKey;
once(type: "error", listener: (evt: BaseEvent) => void): EventsKey;
un(type: "error", listener: (evt: BaseEvent) => void): void;
on(type: "propertychange", listener: (evt: ObjectEvent) => void): EventsKey;
once(type: "propertychange", listener: (evt: ObjectEvent) => void): EventsKey;
un(type: "propertychange", listener: (evt: ObjectEvent) => void): void;

on(type: "error", listener: (evt: BaseEvent) => void): EventsKey;
once(type: "error", listener: (evt: BaseEvent) => void): EventsKey;
un(type: "error", listener: (evt: BaseEvent) => void): void;

on(type: "isochrone", listener: (evt: BaseEvent) => void): EventsKey;
once(type: "isochrone", listener: (evt: BaseEvent) => void): EventsKey;
un(type: "isochrone", listener: (evt: BaseEvent) => void): void;
on: IsochroneGeoportailOnSignature<EventsKey>;
once: IsochroneGeoportailOnSignature<EventsKey>;
un: IsochroneGeoportailOnSignature<void>;
}

export class IsoChroneEvent extends BaseEvent {
Expand Down
43 changes: 12 additions & 31 deletions @types/ol-ext/control/LayerSwitcher.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ import { Extent } from "ol/extent";
import BaseEvent from "ol/events/Event";
import { EventsKey } from "ol/events";
import { ObjectEvent } from "ol/Object";
import { CombinedOnSignature, EventTypes, OnSignature } from "ol/Observable";
import { Types } from "ol/ObjectEventType";

type LayerSwitcherOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange', ObjectEvent, Return> &
OnSignature<Types | 'drawlist' | 'layer:visible' | 'layer:opacity', LayerSwitcherEvent, Return> &
OnSignature<Types | 'toggle', ToggleEvent, Return> &
OnSignature<Types | 'reroder-start' | 'reroder-end', LayerSwitcherReorderEvent, Return> &
CombinedOnSignature<Types | EventTypes | 'change' | 'error' | 'propertychange' | 'drawlist' | 'layer:visible' | 'layer:opacity' | 'toggle' | 'reroder-start' | 'reroder-end', Return>;

export enum LayerSwitcherEventType {
DRAWLIST = "drawlist",
Expand Down Expand Up @@ -142,37 +151,9 @@ export default class LayerSwitcher extends ol_control_Control {
*/
drawList(element: Element, collection: Layer[]): void;

on(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
once(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => any): void;
on(type: "change", listener: (evt: BaseEvent) => void): EventsKey;
once(type: "change", listener: (evt: BaseEvent) => void): EventsKey;
un(type: "change", listener: (evt: BaseEvent) => void): void;
on(type: "error", listener: (evt: BaseEvent) => void): EventsKey;
once(type: "error", listener: (evt: BaseEvent) => void): EventsKey;
un(type: "error", listener: (evt: BaseEvent) => void): void;
on(type: "propertychange", listener: (evt: ObjectEvent) => void): EventsKey;
once(type: "propertychange", listener: (evt: ObjectEvent) => void): EventsKey;
un(type: "propertychange", listener: (evt: ObjectEvent) => void): void;

on(type: "drawlist", listener: (evt: LayerSwitcherEvent) => void): EventsKey;
once(type: "drawlist", listener: (evt: LayerSwitcherEvent) => void): EventsKey;
un(type: "drawlist", listener: (evt: LayerSwitcherEvent) => void): void;
on(type: "layer:visible", listener: (evt: LayerSwitcherEvent) => void): EventsKey;
once(type: "layer:visible", listener: (evt: LayerSwitcherEvent) => void): EventsKey;
un(type: "layer:visible", listener: (evt: LayerSwitcherEvent) => void): void;
on(type: "layer:opacity", listener: (evt: LayerSwitcherEvent) => void): EventsKey;
once(type: "layer:opacity", listener: (evt: LayerSwitcherEvent) => void): EventsKey;
un(type: "layer:opacity", listener: (evt: LayerSwitcherEvent) => void): void;
on(type: "toggle", listener: (evt: ToggleEvent) => void): EventsKey;
once(type: "toggle", listener: (evt: ToggleEvent) => void): EventsKey;
un(type: "toggle", listener: (evt: ToggleEvent) => void): void;
on(type: "reroder-start", listener: (evt: LayerSwitcherReorderEvent) => void): EventsKey;
once(type: "reorder-start", listener: (evt: LayerSwitcherReorderEvent) => void): EventsKey;
un(type: "reorder-start", listener: (evt: LayerSwitcherReorderEvent) => void): void;
on(type: "reroder-end", listener: (evt: LayerSwitcherReorderEvent) => void): EventsKey;
once(type: "reorder-end", listener: (evt: LayerSwitcherReorderEvent) => void): EventsKey;
un(type: "reorder-end", listener: (evt: LayerSwitcherReorderEvent) => void): void;
on: LayerSwitcherOnSignature<EventsKey>;
once: LayerSwitcherOnSignature<EventsKey>;
un: LayerSwitcherOnSignature<void>;
}
export class ToggleEvent extends BaseEvent {
constructor(type: ToggleEventType, collapsed: boolean);
Expand Down
27 changes: 27 additions & 0 deletions @types/ol-ext/control/Search.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
import ol_control_Control, {Options as ControlOptions} from 'ol/control/Control';
import { Feature, Map as _ol_Map_ } from 'ol';
import { Coordinate } from 'ol/coordinate';
import BaseEvent from 'ol/events/Event';
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable';
import { ObjectEvent } from 'ol/Object';
import { Types } from 'ol/ObjectEventType';
import { EventsKey } from 'ol/events';

export type SearchOnSignature<Return> = OnSignature<EventTypes, Event, Return> &
OnSignature<Types | 'change' | 'error' | 'propertychange', ObjectEvent, Return> &
OnSignature<Types | 'select', SearchEvent, Return> &
CombinedOnSignature<Types | EventTypes | 'change' | 'error' | 'propertychange'| 'select', Return>;

export enum SearchEventType {
SELECT = 'select',
}

export interface Options extends ControlOptions{
className?: string;
Expand Down Expand Up @@ -136,4 +150,17 @@ export default class Search extends ol_control_Control {
* @return {boolean}
*/
equalFeatures(f1: Feature, f2: Feature): boolean;

on: SearchOnSignature<EventsKey>;
once: SearchOnSignature<EventsKey>;
un: SearchOnSignature<void>;
}

export class SearchEvent extends BaseEvent {
constructor(type: SearchEventType, search: any, reverse: boolean, coordinate: Coordinate, option?: Options);

search: any;
reverse: boolean;
coordinate: Coordinate;
options?: Options;
}
9 changes: 8 additions & 1 deletion @types/ol-ext/control/SearchJSON.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Feature } from 'ol';
import { Coordinate } from 'ol/coordinate';
import Search, { Options as SearchOptions } from './Search';
import { EventsKey } from 'ol/events';
import BaseEvent from 'ol/events/Event';
import Search, { Options as SearchOptions, SearchEvent, SearchOnSignature } from './Search';

export interface Options extends SearchOptions {
handleResponse?: ((response: any) => any[]);
Expand Down Expand Up @@ -104,4 +106,9 @@ export default class SearchJSON extends Search {
* @return {boolean}
*/
equalFeatures(f1: any, f2: any): boolean;

on: SearchOnSignature<EventsKey>;
once: SearchOnSignature<EventsKey>;
un: SearchOnSignature<void>;
}

Loading