Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searchlist in infowindow #1436

Closed
wants to merge 269 commits into from
Closed

Searchlist in infowindow #1436

wants to merge 269 commits into from

Conversation

jokd
Copy link
Contributor

@jokd jokd commented Jan 27, 2022

Fixes #1413
Adds a infowindow-component which can be used to create a floating infowindow or aligned to the left.
Search control is configured ike this:
{
"name": "search",
"options": {
...
"autocompletePlacement": "search", //can be search, left or floating (defaults to search)
"searchlistPlacement": "left" //can be search, left or floating, activated by hitting enter (defaults to nothing)
}
}

@tonnyandersson
Copy link
Collaborator

Tested with old default test config (v. 2.2.0). Using anything other than "search" for "autocompletePlacement" or "searchlistPlacement" results in this error:

image

image

@jokd
Copy link
Contributor Author

jokd commented Feb 9, 2022

I suppose the structure of our search responses differ. I will look into it.

@jokd
Copy link
Contributor Author

jokd commented Feb 9, 2022

This feature works when using Option 1 for search:

   * Option 1. Feature info is requested from a map service.
   * In this case idAttribute and layerNameAttribute must be provided.
   * A map service is used to get the geometry and attributes. The layer is defined
   * as an ordinary layer in the layer config section.

Will have to make adjustments to support the other variants as well. But maybe I await this PR first: #1420

@MattiasSp Are you looking into this?

@tonnyandersson
Copy link
Collaborator

Yeah, I think it would be nice if a feature like this works with more than one type of search config.

Markus Polleryd and others added 4 commits February 9, 2022 12:05
* Update layer params and resize HTML/CSS to reflect DPI changes

* Removed unnecessary function to set resolution

* Ignore TileLayers where source is OSM

* Import OSM from OL

* Check if style has image before setting scale

* Ignore layer if source is XYZ or WMTS

* Check if ImageLayer and if source is ImageWMS

* Set fixed style to close button

* refactor and able to handle LayerGroup and VectorImageLayer

* Fix issue with scalebar setting incorrect width

* Added comments

* Refresh source to re-render ArcGIS layers

* Change source for ImageArcGISRest to support DPI

Also started working on support for cluster

* Resize legend

* Print resize missing padding

* Resize stroke width and text scale

* Resize WFS theme layers

* Resize stroke width resolution fix

* Print resize change 'print attribution link' css rule

* Print resize added null/undefined check for styles

* feat: add config option for disabling new DPI methods

Co-authored-by: Mathias Thorén <mathias.thoren@sweco.se>
Co-authored-by: David <perssond9@gmail.com>
* Add legend to print map

* Added legond-icon class to icon element

* Print legend check for layer type and source type

* Print legend remove min width

* Print legend added service param to url

* Print legend support WFS and styles from index.json

* Print legend svg icons 100% width and height

* Print legend set forced height on images from index.json

* Print legend include LayerGroup

* Print legend refactor logic

* Print legend remove unused imports

* Print legend refactor list render

* Print legend render legend after scaleline

* Print legend add checks for wfs missing style

Co-authored-by: sweco-sefaed <edvin.fackel@sweco.se>
@jokd jokd marked this pull request as draft February 14, 2022 11:42
jokd and others added 4 commits February 15, 2022 10:27
* Ensure that layername is unique

* Layertitle also gets numbered
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
#1460)

* fix: enable print resolution change via compatible loop for htmlCollection

* fix: code consistency
jokd and others added 25 commits March 22, 2023 13:41
Bumps [webpack](https://github.com/webpack/webpack) from 5.67.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.67.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
#1715)

* fix: decouple default WMS server style and preselected style for the stylepicker in order to accomodate preselected alternative WMS server styles when a stylepicker is employed for WMS layers

* fix: tolerate missing initialStyle prop in layerPicker
* Added defaultLayerParams

* Update viewer.js
* Added group aggregations and length attribute helper.

* Uses ol/sphere for measurements

* Automatic units for area en length and aligning result i infowindow

* Lint...

---------

Co-authored-by: Stefan Forsgren <stefan@forsgren@xlent.se>
* fix: update zoom level when scroll zooming

* Update maputils.js
fix: editor toolbar visible as default
fix: only activate buttons on first level when expanding
* Added draw as control

* Update stylewindow.js

* Refactored code for measure control and added modify function

* Update draw.js

* Fixes for draw

* Lots of stuff

* Clean up permalink

* Some styling fixes

* Lint

* Update viewer.js

* Fix

* stylewindow fix

* Styling tweaks

* Small fixes for print

* Update stylewindow.js

* Fix for labels and buffer measure

* Forgot about measure in mapstate

* Added projection for measures

* drawHandler as component

* Moved styling to layer level

* Added screen/menu button placement

* Initial state for save button

* Added import layer functionality

* Update viewer.js

* Update drawtools.js

* Unique layer names and new icon

* Update draw.js

* Fixed scaling when printing

* Fix default function

* Make group draggable

* Fixed bugs
@jokd jokd marked this pull request as ready for review April 24, 2023 08:52
@jokd jokd removed the in progress label Apr 24, 2023
@jokd
Copy link
Contributor Author

jokd commented Apr 26, 2023

Replaced with #1751 to get a clean commit history

@jokd jokd closed this Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve how the search results are presented