mapbox / mapbox/mapbox-maps-flutter
Circle radius does not remain same while zoom in or out
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
Hi, Mapbox Flutter Team,
We have implement CircleAnnotationOptions but while zoom in or out circle radius not remaing same as for polygone.
Reference code for circle annotation is:
void createOneCircleAnnotation() {
circleAnnotationManager
?.create(CircleAnnotationOptions(
geometry: Point(
coordinates: Position(
55.16437208336748,
25.04712277259982,
),
).toJson(),
circleColor: Colors.yellow.value,
circleRadius: 40.0,
circleOpacity: 0.4))
.then((value) {
circleAnnotation = value;
});
}
Reference screen recording of circle annotation link is:
https://drive.google.com/file/d/1Jbf3B0A7YzmXAj7doehrLY7LMp4IaWO9/view?usp=sharing
Expected as behavior as for Polygone annotation link is:
https://drive.google.com/file/d/1APErUFPfRyZozcQ4HVDfor9VpNhhkxJK/view?usp=sharing
Thanks and regards
Mehmood
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 supplied createOneCircleAnnotation entry point and CircleAnnotationOptions configuration, then reproduce the behavior using the linked screen recordings as the comparison. Done means the circle annotation's radius remains visually consistent during zooming, matching the reported polygon behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100