11-22-2018 08:22 AM
Has anyone developed a search mechanism for either Geospatial Portal or Consumer Portal that behaves as follows:
In Geospatial Portal the search tab control meets requirement 1 & 2 but when querying a WFS-G only the centre point of the result is displayed on the map. The full geometry is not displayed. All searches go to a defined zoom scale which may not be appropriate for the search result.
In Consumer Portal the search result again is a centroid but does zoom to the extent of the geometry (defined in search configuration) but the selected object is not highlighted/selected.
I am hopeful that someone may have developed something that provides this type of functionality or has some ideas on how it could be achieved?
02-28-2019 11:14 AM
How current implementation works:
The implementation is presently per search definition. i.e. it does not automatically implement for all consumer portal search definitions, you have to manually setup each search that needs the full fit/highlight (typically a property search).
The implementation retrieves the GeoJSON from an WFS request (in our case we actually download all the GeoJSON to a local directory every night - at the time we implemented webmap was in early stages of supporting GeoJSON so we converted from GML to GeoJSON, with webMap WFS now natively supporting GeoJSON if I was doing it again it would be a direct live call to the WFS).
Looks like I neglected to add the idea to the community product ideas section - must get around to that.
03-11-2019 01:46 AM
We found your solution very intresting.
My developer asks if it possible to share a source code or a part of the code responsible for:
"Bespoke component is then envoked that fits the map extent to the extent of the underlying search result geometry (e.g. property) and the vector of the search result geometry is displayed as an overlay creating an highlighted effect"
Would be very glad for your support.