Type alias gmfSearchOptions

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

Type declaration

  • Optional clearButton?: boolean

    Clear button in the input search.

  • Optional 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.

  • datasources: SearchComponentDatasource[]

    The used datasources.

  • Optional delay?: number

    bloodhound request delay in ms.

  • Optional maxZoom?: number

    maximum zoom we will zoom on result.

  • Optional placeholder?: string

    The placeholder.

  • styles: {
        [x: string]: StyleLike;
    }

    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.

Generated using TypeDoc