Call <Finder> on intent
This commit is contained in:
1 parent
dec79c9c2d
commit
0af58ccb4f
2 files changed
+5
-10
No files matched your search
@@ -16,6 +16,7 @@ import WptEditDialog from '../wpt/WptEditDialog';
|
||||
|
||||
const [popup, setPopup] = createSignal<Overlay>();
|
||||
const [open, setOpen] = createSignal(false);
|
||||
const [coordinate, setCoordinate] = createSignal<Coordinate>();
|
||||
let popupElement: HTMLElement;
|
||||
|
||||
export const findLocation = (
|
||||
@@ -37,6 +38,7 @@ export const findLocation = (
|
||||
popup: popup(),
|
||||
popupElement,
|
||||
});
|
||||
setCoordinate(coordinate);
|
||||
popup().setMap(getMap());
|
||||
popup().setPosition(fromLonLat(coordinate));
|
||||
getMap()?.addOverlay(popup());
|
||||
@@ -54,7 +56,6 @@ const Finder: Component<Props> = (props) => {
|
||||
const [searchString, setSearchString] = createSignal('');
|
||||
const [popupContent, setPopupContent] = createSignal(<></>);
|
||||
const [t, { add, locale, dict }] = useI18n();
|
||||
const [coordinate, setCoordinate] = createSignal<Coordinate>();
|
||||
const searchStringChangeHandler = (event: any) => {
|
||||
setSearchString(event.target.value);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user