Skip to content

The polygon cannot be drawn correctly when multiple holes intersect within it. #865

@nibinPositec

Description

@nibinPositec

maps-compose:8.2.0
play-services-maps:20.0.0
android phone:Galaxy Z Flip5(SM-F310)
android:15
one ui:7.0

On some mobile phones(such as Galaxy Z Flip5), when the internal holes intersect, the polygon fill cannot be drawn correctly.

points = listOf(LatLng(0.0,0.0),LatLng(5.0,0.0),LatLng(5.0,5.0),LatLng(0.0,5.0))

holes = listOf(listOf(LatLng(1.0,1.0),LatLng(3.0,1.0),LatLng(3.0,3.0),LatLng(1.0,3.0)),listOf(LatLng(3.0,3.0),LatLng(4.0,3.0),LatLng(4.0,4.0),LatLng(3.0,4.0)))

Incorrect:
Image

Correct(Most Android phones):
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.priority: p2Moderately-important priority. Fix may not be included in next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions