mapbox / mapbox/mapbox-maps-flutter
Missing Outline Preferences for PolygonAnnotation and its options class.
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
Description
The PolygonAnnotation class in the mapbox_maps_flutter package currently lacks options for configuring the outline (stroke) of polygon annotations. This limitation restricts developers' ability to customize and enhance the visualization of polygons, as the existing implementation only supports filling the polygons without any options for the outline.
Using polylines to simulate polygon borders is not an ideal or efficient solution.
Link to Documentation
PolygonAnnotation Class Documentation
Feature Request
Please add support for outline preferences in the PolygonAnnotationOptions, such as:
- Outline color
- Outline width
- Outline pattern
Example
PolygonAnnotationOptions polygonAnnotationOptions = PolygonAnnotationOptions(
geometry: polygon,
fillColor: "#FF0000",
fillOpacity: 0.5,
// Proposed properties
outlineColor: "#000000",
outlineWidth: 2.0,
outlinePattern: [2, 4] // Dash pattern: 2px line, 4px gap
);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the PolygonAnnotation and PolygonAnnotationOptions documentation linked in the issue, then trace how existing fill options are represented in the package. Add support for outline color, width, and pattern, and verify that the documented example can configure all three preferences.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100