Project

General

Profile

Actions

Feature #2296

closed

Different display of shapes on maps

Added by Alexander Watzinger 7 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
2024-05-22
Estimated time:

Description

When viewing the maps with all places it would be better to display shapes just as center points (like in the backend) to avoid confusing, or really big, overlapping shapes.

The question than would be how to continue, some suggestions:
  • Adding a show polygon switch option (default off) like in the backend
  • Show shapes when mouse over center points (idea from Olivia)
Actions #1

Updated by Alexander Watzinger 7 months ago

  • Status changed from Acknowledged to Assigned
  • Assignee set to Bernhard Koschiček-Krombholz

Assigning this issue to Bernhard first with the question if the center points for shapes are already available via the API?

If no, maybe give an estimate when this could be available and create an issue for it at the OpenAtlas project.
If yes, maybe give a hint how to best use/request them and assign this issue to Olivia.
Thanks

Actions #2

Updated by Alexander Watzinger 7 months ago

  • Description updated (diff)
Actions #3

Updated by Bernhard Koschiček-Krombholz 7 months ago

  • Assignee changed from Bernhard Koschiček-Krombholz to Olivia Reichl

Yes, it is possible for lp, lpx, geojson and geojson-v2 with the parameter centroid=true. I'm sorry, it appears, that it is not in the OpenAPI file. (there is quite a data loss between two times rewriting the whole documentation...)

Since you are using lpx, there will be both geometries available. E.g a place have one polygon and with centroid=true you will get an additional entry which will look like this:

  {
    "type": "Point",
    "coordinates": [
      16.372119237,
      48.559091285
    ],
    "title": "This can be the title(autogenerated)",
    "description": "Here will be the description",
    "shapeType": "centerpoint" 
  }

If there are multiple polygons and linestrings, there is no way to distinguish between those, except the title and description. If this is relevant, please make a ticket or tell me.

I will update the OpenAPI file in develop. Sorry for the inconvenience.

Actions #4

Updated by Olivia Reichl 7 months ago

  • Status changed from Assigned to Closed
Actions #5

Updated by Alexander Watzinger 7 months ago

  • Target version changed from 347 to 0.7.0

Moving to upcoming release version because already implemented.

Actions #6

Updated by Alexander Watzinger 5 months ago

  • Target version changed from 0.7.0 to 0.5.0
Actions

Also available in: Atom PDF