Skip to content

bug: PolylineMarker appears solid when stroke_pattern set to DashedStrokePattern #5615

@Vulturu1

Description

@Vulturu1

Duplicate Check

Describe the bug

Hello. As the title says the issue I'm having is that when I add a PolylineMarker to my map with the DashedStrokePattern the line appears as if it's solid. I assume this may have something to do with the spacing between the individual dashes but ultimately I am not sure. I have tried to fix this using the segment argument in the DashedStrokePattern however that does not seem to have any effect at all. No idea why this is happening and I could not find any helpful resources online. Any fixes?

Code sample

Code
self.demo_line = ftm.PolylineMarker(coordinates=[ftm.MapLatitudeLongitude(center_lat, center_lon - 0.006), ftm.MapLatitudeLongitude(center_lat, center_lon + 0.006)], color=ft.Colors.WHITE, stroke_width=10, stroke_pattern=ftm.DashedStrokePattern())

To reproduce

Create a map object.
Create reference to PolylineLayer.
Add polyline to layer.

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11

Flet version

0.28.3

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions