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

OpenLayers doesn't work properly with GeometryCollection #2533

Closed
offtherailz opened this issue Jan 19, 2018 · 1 comment
Closed

OpenLayers doesn't work properly with GeometryCollection #2533

offtherailz opened this issue Jan 19, 2018 · 1 comment

Comments

@offtherailz
Copy link
Member

Description

OpenLayers vector data on map do not manage geometrycollection correctly. This causes problems when you use search services that expose those kind of geometry, or when you try to display on map vector version of this kind of geometry).
note: this issue is hard to replicate because this kind of geometry is not present on current demo GeoServer. We could evaluate to add it.

In case of Bug (otherwise remove this paragraph)

Browser Affected
any

Steps to reproduce

  • It is reproductable on c028 test env. Otherwise you have to configure a search service to a layer that exposes geometrycollection
  • In c028
    • open a map
    • Search Edificabili
    • Select Dodiciville
    • search for 212
    • select .212
  • if you configured a search service that uses geometrycollection
  • Open the map with Openlayers
  • Search for a geometry
  • select the geometry

Expected Result
You can see the geometry

Current Result
You can not see anything. If you try to search for another element and select it, you will see an error in console.

Other useful information (optional):

openlayers/Feature.jsx skip geometry creation because it checks for coordinates but not for geometries before to create and style the vector objects to add to the map.

@offtherailz
Copy link
Member Author

Closing because this issue has been already fixed on master. I found this issue on a previous version

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

3 participants