Closed SpeckiJ closed 4 years ago
Currently triggerSearch() in GeosearchControlComponent https://github.com/52North/helgoland-toolbox/blob/125db821e1d78021466dcbfaae4a80679ced7a77/projects/helgoland/map/src/lib/control/geosearch/geosearch.component.ts#L44 does only emit a ResultChanged-Event if the request is successfull. When the request fails, the frontend is not notified.
A more correct implementation can be found here: https://github.com/irceline/aq-mobile-be/blob/595f7200eb6f9aa19421ab5d9f045b018a84076d/src/app/components/mobile-geosearch-control/mobile-geosearch-control.component.ts#L57
Currently triggerSearch() in GeosearchControlComponent https://github.com/52North/helgoland-toolbox/blob/125db821e1d78021466dcbfaae4a80679ced7a77/projects/helgoland/map/src/lib/control/geosearch/geosearch.component.ts#L44 does only emit a ResultChanged-Event if the request is successfull. When the request fails, the frontend is not notified.
A more correct implementation can be found here: https://github.com/irceline/aq-mobile-be/blob/595f7200eb6f9aa19421ab5d9f045b018a84076d/src/app/components/mobile-geosearch-control/mobile-geosearch-control.component.ts#L57