[drape] Draw embankments. #2738
No reviewers
Labels
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
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#2738
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "vng-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -701,23 +701,25 @@ line|z18-[barrier=hedge],
line|z18-[barrier=retaining_wall],
line|z18-[barrier=wall],
line|z18-[historic=citywalls],
please add a comment explaining meaning of
dashes: 6,4,4,2;
so that others can use the feature for other objects later
@ -701,23 +701,25 @@ line|z18-[barrier=hedge],
line|z18-[barrier=retaining_wall],
line|z18-[barrier=wall],
line|z18-[historic=citywalls],
also would be great to make it dark-brown :)
@ -701,23 +701,25 @@ line|z18-[barrier=hedge],
line|z18-[barrier=retaining_wall],
line|z18-[barrier=wall],
line|z18-[historic=citywalls],
Как забор красить точно не нужно.
@ -15,3 +14,3 @@
uint32_t const kStippleHeight = 1;
uint32_t const kMaxStipplePenLength = 512; /// @todo Should be equal with kStippleTextureWidth?
StipplePenPacker::StipplePenPacker(m2::PointU const & canvasSize)
Так сразу пропиши equal.
@ -39,2 +41,4 @@
// Reserved for elements like RuleDrawer or other LineShapes.
uint32_t const kReservedPatterns = 0;
size_t const kReservedColors = 20;
Если сомневаешься, сделай сразу равной kMaxStipplePenLength, и оставь туду.
Тут на && или ниже на empace бы не ускорили чуток инициализацию?
Нехорошо, может метод неконстантным сделать? А то неочевидно что у конст объекта что-то меняется.
@ -15,3 +14,3 @@
uint32_t const kStippleHeight = 1;
uint32_t const kMaxStipplePenLength = 512; /// @todo Should be equal with kStippleTextureWidth?
StipplePenPacker::StipplePenPacker(m2::PointU const & canvasSize)
Они сейчас equal, я оставляю вопрос, т.к. кажется что константы одной природы, но не уверен.
@ -39,2 +41,4 @@
// Reserved for elements like RuleDrawer or other LineShapes.
uint32_t const kReservedPatterns = 0;
size_t const kReservedColors = 20;
Они равны, тут вопрос
нет
я наверное уберу этот хак
Как красить embankment? Вот я смотрел в вики ОСМ, везде серый цвет.
https://wiki.openstreetmap.org/wiki/File:Natural_cliff-125.png
https://wiki.openstreetmap.org/wiki/File:Man_made_embankment.png
Second screen with embankment like path color:

Latest version:

Its not clear how "base height" is different from the thickness of the line (dash)...
Does the renderer really make breaks between the "dashes" to fit triangles into instead of just overlaying them?
I imagined it looks more like
base height is the thickness of the dash line
whys is it different from
width: 7.0;
then? (base height is just 2)"width" is a total pattern height = 5 + 2
Ok, thanks, I understand now - could you please add it to the comment?
Also what (bad) will happen if
width
andbase height + triangle height
are inconsistent? Maybe its possible not to have an extra parameter if it could be derived from other params?Is it technically hard to make it (imho) more logical like
width
- line width w/o trianglesdashes: dash-length, pattern-base-width, pattern-height
?
(also I don't really like overloading the
dashes:
with something that doesn't look like a dashed line, but maybe its too much to ask)Yes, this is not about "dashes" pattern, but it was the optimal way to implement at this moment.
Will reconsider style definitions, when "pattern" line drawing will be more varied and complicated.