Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 5 additions & 2 deletions src/component/Multisearch/Multisearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getUid } from 'ol/util';
import Logger from '@terrestris/base-util/dist/Logger';

import WfsSearchInput from '@terrestris/react-geo/dist/Field/WfsSearchInput/WfsSearchInput';
import NominatimSearch from '@terrestris/react-geo/dist/Field/NominatimSearch/NominatimSearch';
import NominatimSearch, { NominatimSearchProps } from '@terrestris/react-geo/dist/Field/NominatimSearch/NominatimSearch';

import MapUtil from '@terrestris/ol-util/dist/MapUtil/MapUtil';
import PermalinkUtil from '@terrestris/ol-util/dist/PermalinkUtil/PermalinkUtil';
Expand All @@ -32,9 +32,10 @@ interface DefaultMultisearchProps {
placeHolder: string;
}

interface MultisearchProps extends Partial<DefaultMultisearchProps> {
export interface MultisearchProps extends Partial<DefaultMultisearchProps> {
map: OlMap;
wfsSearchBaseUrl?: string;
nominatimProps?: Partial<NominatimSearchProps>;
}

interface MultisearchState {
Expand Down Expand Up @@ -343,6 +344,7 @@ export default class Multisearch extends
*/
render() {
const {
nominatimProps,
map,
className,
useNominatim,
Expand Down Expand Up @@ -380,6 +382,7 @@ export default class Multisearch extends
</div>
{useNominatim &&
<NominatimSearch
{...nominatimProps}
countryCodes={''}
map={map}
minChars={minChars}
Expand Down
3 changes: 2 additions & 1 deletion src/component/container/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import OlMap from 'ol/Map';
import { toggleHelpModal } from '../../../state/appState';

import './Header.css';
import Multisearch from '../../../component/Multisearch/Multisearch';
import Multisearch, { MultisearchProps } from '../../../component/Multisearch/Multisearch';

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faQuestion, faUser } from '@fortawesome/free-solid-svg-icons';
Expand Down Expand Up @@ -42,6 +42,7 @@ interface HeaderProps extends Partial<DefaultHeaderProps> {
i18n: any;
t: (arg: string) => {};
wfsSearchBaseUrl?: string;
nominatimProps: MultisearchProps['nominatimProps'];
}

interface HeaderState {
Expand Down