Determine features' visibilities by their priorities, size and the current map density (not pre-defined zoom levels) #6330

Open
opened 2023-10-17 16:42:55 +00:00 by pastk · 0 comments
Member

ATM a zoom level when a feature appears on the screen is "hard-coded" in styles.
However it might appear later if:

  • there are more important POIs around and not enough space to display all of them (a lower priority POI gets "displaced")
  • an area / polygon feature is deemed to small to be displayed (e.g. very small buildings disappear before big ones when zooming out)

The idea is to rely more on the "displacement" and "size filtering" a-like approaches as they allow visibilities to be adjusted to particular places / situations better.
E.g. why make a very big hospital area fill to disappear at z13? Or supermarket's icon not shown at z15 even though there is nothing else around?

  1. Overlays (icons, captions....)
  • make all overlays z10- (or some reasonable min-zoom value, e.g. if we don't want to see a trash can at z10 even amongst a desert)
    • could be defined in styles or hard-coded (e.g. use drule from the closest defined zoom level)
  • in any case we need to add small -s icons for all feature types that have -m icons only ATM
  • probably define hard-coded icon-min-distance values for lower zoom levels, otherwise at overview zooms in the cities the map will be densely packed with icons #10064
  • and/or develop more sophisticated "dynamic density" controls #6223
  1. Areas
  • similarly, make all areas z10- via styles or hardcode (see #2856 as an example)
  • the existing "size filter" should work well for most cases
  • but still there might be cases with e.g. many small forest patches making the map hard to read, then a more sophisticated solution will be needed #6223
  1. Lines
  • at the moment we don't have any solution to adjust lines visibilities
  • so need some kind of density control #6223
  • a "too short lines filtering" algo will help in some cases also (e.g. filter short yard-crossing paths in the cities), it'll help with making a world map look better too, see #5655
ATM a zoom level when a feature appears on the screen is "hard-coded" in styles. However it might appear later if: - there are more important POIs around and not enough space to display all of them (a lower priority POI gets "displaced") - an area / polygon feature is deemed to small to be displayed (e.g. very small buildings disappear before big ones when zooming out) The idea is to rely more on the "displacement" and "size filtering" a-like approaches as they allow visibilities to be adjusted to particular places / situations better. E.g. why make a very big hospital area fill to disappear at z13? Or supermarket's icon not shown at z15 even though there is nothing else around? 1. Overlays (icons, captions....) - make all overlays z10- (or some reasonable min-zoom value, e.g. if we don't want to see a trash can at z10 even amongst a desert) - could be defined in styles or hard-coded (e.g. use drule from the closest defined zoom level) - in any case we need to add small `-s` icons for all feature types that have `-m` icons only ATM - probably define hard-coded icon-min-distance values for lower zoom levels, otherwise at overview zooms in the cities the map will be densely packed with icons #10064 - and/or develop more sophisticated "dynamic density" controls #6223 2. Areas - similarly, make all areas z10- via styles or hardcode (see #2856 as an example) - the existing "size filter" should work well for most cases - but still there might be cases with e.g. many small forest patches making the map hard to read, then a more sophisticated solution will be needed #6223 3. Lines - at the moment we don't have any solution to adjust lines visibilities - so need some kind of density control #6223 - a "too short lines filtering" algo will help in some cases also (e.g. filter short yard-crossing paths in the cities), it'll help with making a world map look better too, see #5655
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#6330
No description provided.