OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
139 stars 91 forks source link

Polygons added as layers are always filled on iOS #276

Open the-unforgiven opened 8 years ago

the-unforgiven commented 8 years ago

Hi, I noticed that polygons added as layers are always filled on iOS - the bool fill parameter is ignored in DrawPolygon(), see OsmSharp.iOS.UI.CGContextRenderer.

I replaced

                target.Target.CGContext.FillPath ();

with

if (fill) {
                target.Target.CGContext.FillPath ();
            } else {
                target.Target.CGContext.DrawPath (CGPathDrawingMode.Stroke); }