Interface gmfSearchOptions

interface gmfSearchOptions {
    clearButton?: boolean;
    colorChooser?: boolean;
    coordinatesProjections: string[];
    datasources: SearchComponentDatasource[];
    delay?: number;
    maxZoom?: number;
    placeholder?: string;
    styles: {};
}

Properties

clearButton?: boolean

Clear button in the input search.

colorChooser?: boolean

Whether to let the user change the style of the feature on the map.

coordinatesProjections: string[]

codes of supported projections for coordinates search (projections must be defined in ol3). If not provided, only the map's view projection format will be supported.

The used datasources.

delay?: number

bloodhound request delay in ms.

maxZoom?: number

maximum zoom we will zoom on result.

placeholder?: string

The placeholder.

styles: {}

A map of styles to apply on searched features. Keys must be the 'layer_name' property of features except for coordinates where the key ifor its style is the value of the constant 'gmf.COORDINATES_LAYER_NAME'. The 'default' key is used to apply the default style.