sitmun / sitmun-viewer-app

A basic map viewer application for the SITMUN platform.
European Union Public License 1.2
1 stars 1 forks source link

Implement Generic Search Bar controller #31

Open daniboube opened 4 months ago

daniboube commented 4 months ago

It is necessary to implement a configurable control for generic searches by street, neighborhood, municipality, cadastral reference, etc. SITNA includes one, but if it is not configured correctly, the searches will be applied to the Navarra databases.

daniboube commented 4 months ago

Implemented in commit a656c92bdebd878b76b1e23a0a20a9d202fe3940

The SITNA search bar is now capable of querying WFS databases served from the backend. To do this, optional parameters must be provided within the search control that match the types defined by the SITNA API for this case: https://sitna.navarra.es/api/doc/SITNA.control.html#.SearchOptions

It is important to take into account the default values ​​of these fields, since some are enabled by default, so if it is not given a new reference to search on, it will perform queries on the IDENA database.

fjlopez commented 4 months ago

Do you refer to this line? https://github.com/sitmun/sitmun-viewer-app/commit/a656c92bdebd878b76b1e23a0a20a9d202fe3940#r141474226

daniboube commented 4 months ago

Yes, exactly that. A parameters object must be provided by the backend in the same way that is defined in the SITNA API documentation (with the optional parameters cadastralParcel, municipality, postalAddress, road, etc)

Do you refer to this line? a656c92#r141474226