Saturday, November 21, 2026
HomeiOS Developmentios - Mapkit MkPolygon not getting drawn

ios – Mapkit MkPolygon not getting drawn

[ad_1]

I’m drawing polygons utilizing MKMultipolygon and MKPolygonRenderer

if let polygon = overlay as? MKMultiPolygon {
        
        let polygonView = MKMultiPolygonRenderer(multiPolygon: polygon)
        polygonView.lineWidth = polygon.lineWidth
        polygonView.fillColor = polygon.fillColor
        polygonView.strokeColor = polygon.lineColor
        polygonView.alpha = 0.7
        return polygonView
}

I get following error for one of many polygons

Wrapped across the polygon with out ending... :-(
Record has 3 nodes:
23 25 22 

The identical polygon will get drawn at one zoom degree and disappears at one other zoom degree printing the above error in console

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments