search
Provides a generic and extensible search user-interface
Description
Provides (address etc) search functionality with a flyout UI.
Screenshot
Bundle configuration
No configuration is required, but it can be used to set ajax URL. If not set, sandbox.getAjaxUrl()
with action_route=GetSearchResult
is used instead.
The default search UI can be disable through config.
{
"url" : "http://www.google.com",
"disableDefault": "{{boolean}}"
}
Requests the bundle sends out
Request | How does the bundle react |
---|---|
MapMoveRequest | When a search result is clicked, the map is centered on the location. |
InfoBox.ShowInfoBoxRequest | When a search result is clicked, information about the results is shown on an Infobox |
InfoBox.HideInfoBoxRequest | Hides search result infobox. |
MapModulePlugin.RemoveMarkerRequest | When the search keyword is removed, any markers on the map are removed. |
Dependencies
Dependency | Linked from | Purpose |
---|---|---|
jQuery | Linked in portal theme | Used to create the component UI from begin to end |
OpenLayers | Expects mapmodule to be present and OpenLayers already linked | To control map and show an Openlayers popup on it |
Oskari divmanazer | DivManazerBundle | Provides flyout/tile functionality |
Backend API | N/A | Search is handled in backend |