-
-
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
Fill closed Polyline with different color than border #972
Comments
Can you just use a |
Hi, I cannot see, that the Unfortunately I have no polygons, but polylines (some of them are closed, which, of course, makes them a polygon: These are the ones I want to fill). Moreover, as far as I can see,
Why should Polygons act differently here? I need the Polylines, because I need them tappable (adding a Tap Listener), which is done but the plugin |
I'm not sure. Try increasing the stroke width of your polyline? It could be that color is actually a fill color of the line, and border color is a color of the line's border? |
Hm this might be, actually. However, that wouldn't solve my probleme anyway. I need to fill closed area created by a polyline. |
In that case you'll need to use Polygon. I'm not sure how you can get a tap listener, however. |
Please see #968 for an issue of adding tap handlers to polygons. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
We would still be interessted in this topic. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still requested |
Well, i run into this problem too. i want to add fill color to my closed polyline |
How are you drawing your closed polyline ? |
Drawing a polyline which includes twice the same point (with at least two points inbetween to create a real shape). |
Just pondering, I suspect there's a few issues around this. Sorry it's a bit rambly, just thinking out loud... Firstly, I'm guessing (but may be wrong), the paths aren't truly closed, and just have a duplicate start/end point (as I don't think there's any current way to specify a polyline is closed)? There is no area fill for polylines to my understanding (again I may be wrong), so this would never work. However, I think it wouldn't be impossible to add a true "close" option for the polyline, and internally make sure the path is closed. What's not very clear (to me) is what the intention of the current polyline color options are...ie you currently almost seem to fill the line (rather than area) in, and changing that may break some peoples implementations. So would a 3rd colour option be needed, or reuse the main one. Then there's the issue of the click handler (assuming not using the other tap plugin, which may be the best solution). Let's say you have 3 overlapping poly(line/gons) or layers, I'm guessing the topmost poly should have the click...so I'm guessing all the handlers (and layers) would need to be tied together somehow to traverse through ? I'm guessing there's none of that in flutter_map already ? If there was a click handler somehow, it would probably remove the need for a filled area polyline (as you'd just use a polygon) ? So wondering if thats actually the main issue. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still required |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This topic is still interesting for US. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
still interested |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
still interested |
I'm going to close this now. For this use-case, a polygon with tap detection would be more appropriate. Please see #385 for the latest discussions on this - hopefully something can be done sooner rather than later. |
In
Polyline
options you can insert both,color
andborderColor
. So, I guess, it should be possible to enter different colors for the outline and the filling, correct? However, this seems not work:color
is taken as outline color. No filling,borderColor
is ignored.Is it possible to
The text was updated successfully, but these errors were encountered: