Skip to content
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

Missing Outline Preferences for PolygonAnnotation and its options class. #578

Open
1plam opened this issue Jun 11, 2024 · 0 comments
Open

Comments

@1plam
Copy link

1plam commented Jun 11, 2024

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
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant