Project

General

Profile

Feature #1136

Map enhancements

Added by Roland Filzwieser about 2 months ago. Updated 10 days ago.

Status:
Closed
Priority:
Low
Category:
Maps
Target version:
Start date:
2020-02-06
Estimated time:
16.00 h

Description

General:
In view mode: display the respective unit (blue) and its subunits (green) e.g. place and all features of this place. Do not show superior unit e.g. do not show the place in the feature view.
Due to that too many markers can be hindering for orientation, it should be possible to switch the markers off.

In insert and edit mode: display the respective unit (blue) and its sibling units (green) e.g. grave (blue) and all other graves of this place (grey). Do not show superior- or sub-units e.g. only show the selected grave and sibling graves.

However, show marker of superior unit to make it easier findable.
Due to that too many markers can be hindering for orientation, it should be possible to switch the markers off.

It seems that intermediate centerpoints are calculated on the fly. They should only be calculated if there is no point geometry. If there is point geometry no calculated centerpoint is needed.

Zoom (in view/edit/insert): Zoom to bounds of all units (recursive) of this place if zoom is < 22; Else zoom to default value from profile settings

History

#1

Updated by Roland Filzwieser about 2 months ago

  • Description updated (diff)
#2

Updated by Stefan Eichert about 2 months ago

  • Assignee changed from Stefan Eichert to Alexander Watzinger
  • Category set to Maps
  • Description updated (diff)
#3

Updated by Alexander Watzinger about 2 months ago

  • Target version set to 5.0.0
  • Status changed from New to Assigned

Thank you for the feedback.

Better zoom and a toggle functions for markers will be added after Bootstrap implementation. If you didn't meant to toggle all markers please specify there (#1137) which one should be toggled.

#5

Updated by Sonja Mayer about 2 months ago

Just tested:

In insert mode all features of a place are shown, but in edit mode only the respective unit is displayed.

#6

Updated by Alexander Watzinger about 2 months ago

  • Assignee changed from Alexander Watzinger to Stefan Eichert
  • Status changed from Assigned to In Progress

As soon as we have fixed following issues I will merge it to the develop branch which is important so that it can be integrated to the bootstrap branch.

  • The new general/polygones/linestrings option which are not marked by default - I'm not sure what they are about and guess others will wonder too
  • We should look at the new zoom/cluster mechanics, test edge cases and maybe remove some admin/profile options if they are not needed anymore

@ Stefan: Many thanks for the work, I especially like the new cluster toggle option. Assigning this ticket to you.

#7

Updated by Alexander Watzinger 28 days ago

@ Stefan:

I implemented a default_zoom setting. Default for is 12 (can be changed with DEFAULT_ZOOM in instance/production.py) which can be overridden by users in their profile.

It is than injected in templates/map.html as a JavaScript variable called mapDefaultZoom and would be available in map scripts like the mapMaxZoom variable.

Please implement so that if e.g. only one place is shown the map zooms only to the default zoom (currently it zooms to max zoom).

It's already committed in the develop branch on GitHub and online at https://thanados.openatlas.eu

#8

Updated by Stefan Eichert 25 days ago

  • Status changed from In Progress to Closed
  • Description updated (diff)
  • Subject changed from Display geodata in map enhancements to Map enhancements
#9

Updated by Alexander Watzinger 10 days ago

  • Estimated time set to 16.00 h

Also available in: Atom PDF