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

Identify for annotations is showing all internal properties rather than title/description #7332

Closed
1 task done
allyoucanmap opened this issue Sep 20, 2021 · 4 comments
Closed
1 task done

Comments

@allyoucanmap
Copy link
Contributor

Description

The annotation is showing the default identify viewer with all the internal properties of the feature.

How to reproduce

Expected Result

  • the identify popup should show only the needed information without the editing buttons if the Annotation plugin is not included

image

default viewer in map:

image

Current Result

  • The annotation shows info such as visibility and id and the viewer is different from the one displayed in the default map viewer

image

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

It seems that the custom viewer for annotations is included only if the Annotations plugin is in localConfig in particular it needs to include the reducers and the addAnnotationsLayerEpic epic

@allyoucanmap
Copy link
Contributor Author

@tdipisa @giohappy Proposal:

  • change the default properties response similar to the one presented by annotation to keep a UI consistency between responses

before

image
image

after

image
image

  • add a layer property to include only a list of properties (eg includeInfoProperties: [ 'title', 'description' ])

@giohappy
Copy link
Contributor

It's fine to me but I leave the final decision to the frontend team (@tdipisa)

@tdipisa
Copy link
Member

tdipisa commented Sep 27, 2021

+1 @allyoucanmap

dsuren1 pushed a commit that referenced this issue Oct 13, 2021
…ther than title/description (#7443)

* refactor of identify property viewer

* remove properties from vector map info

* remove hideToolbar prop
@tdipisa tdipisa modified the milestones: 2021.02.01, 2021.02.00 Oct 13, 2021
@ElenaGallo ElenaGallo self-assigned this Oct 14, 2021
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this issue Oct 14, 2021
…l properties rather than title/description (geosolutions-it#7443)

* refactor of identify property viewer

* remove properties from vector map info

* remove hideToolbar prop
tdipisa pushed a commit that referenced this issue Oct 14, 2021
…ther than title/description (#7443) (#7448)

* refactor of identify property viewer

* remove properties from vector map info

* remove hideToolbar prop
@tdipisa
Copy link
Member

tdipisa commented Oct 14, 2021

@ElenaGallo Backport merged in QA, please keep an eye on tests this there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants