-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add darkened intersection effect to translucent self-intersecting Polyline
s
#1457
Comments
Hi @stx, |
@JaffaKetchup |
That's kind of correct for the 2nd example, however I would imagine your first example would be feasible changing saveLayers (assuming multiple lines), but your 2nd example not. It feels like it would be a bit strange I think for a single path to change depth of colour when overlapping itself, but maybe I'm wrong. |
The first example is actually one polyline. flutter_map bogs down the device extremely when many polylines are drawn (think hundreds), so using multiple polylines is only an option if that's fixed. Until then we combine multiple lines into one polyline. Given that it may not be possible to support drawing so many polylines, we'd like single polyline coloring to work like other map renderers if possible. |
Ok, I assume it was more than one. In which case I suspect you're out of luck unless you can split it into segments, which is feasible but a lot of work. |
Polyline
missing darker/layered effect on self-intersections
@JaffaKetchup Thanks for following up. This has no effect and the issue remains. Master: Code:
|
I don't think the issue will be affected with this is if its one polyline, I don't think that will change, as I'm not sure it makes sense unless I'm misunderstanding it how it would work. I would only expect this to have any effect with multiple polylines. |
Polyline
missing darker/layered effect on self-intersectionsPolyline
s
(This is now a feature request, as this functionality never existed AFAIK). |
This comment was marked as off-topic.
This comment was marked as off-topic.
I can't see how we can implement this at the moment. If anyone can post some code that does this (a self intersecting translucent line on a |
What is the bug?
In Google Maps, Leaflet and Mapbox, on both the web and in Flutter, when you draw a polyline with a low opacity it gets darker when it overlaps, like this:
This provides a very nice UX for showing more popular routes.
However, in flutter_map, when drawn at low opacity, the line never darkens, so there appears to be no way to achieve this nice UX:
What is the expected behaviour?
Polyline opacity overlaps.
How can we reproduce this issue?
Do you have a potential solution?
No response
Can you provide any other information?
No response
Platforms Affected
Android, iOS, Web, Windows, MacOS, Linux, Other
Severity
Minimum: Allows normal functioning
Frequency
Consistently: Always occurs at the same time and location
Requirements
flutter doctor
finds no relevant issuesThe text was updated successfully, but these errors were encountered: