Layers - Which is better readable? #3961
Replies: 2 comments 1 reply
-
The other one lists the footways in the |
Beta Was this translation helpful? Give feedback.
-
It's little over my head as I'm not fully grasping what/how the implementation would work (e.g. What are the elements fetched used for exactly? When does the quest-equivalent itself comes into play? What does
|
Beta Was this translation helpful? Give feedback.
-
I am contemplating about an interface and I'd like your opinion which style you find more readable.
The following code snippets do the same: From given map data, color footways green and color the left and right side of a road each depending whether there is a sidewalk, it is separate or is tagged at all. Non-roads are filtered out, i.e. not displayed.
isDisplayed
+getStyle
Notes
isDisplayed
and once ingetStyle
)getStyledElements
Notes
OsmElementQuestType::getHighlightedElements
OsmElementQuestType::getHighlightedElements
. (This alone should not be the reason to use this, as an performance improvement can also be achieved otherwise, albeit with a little more code like e.g. requiring to specify which element types are displayed at all up-front)Pinging some regular and recent contributors: @matkoniecz @FloEdelmann @mnalis @arrival-spring @peternewman @Cj-Malone
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions