[gnome-maps] GeoJSONSource: Do not fill holes in polygons



commit d35d8e7744f8a302c820c6c23fa3e853ff68113f
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Oct 27 07:21:47 2015 +0100

    GeoJSONSource: Do not fill holes in polygons
    
    The cairo EVEN_ODD fill rule will not fill if the total
    number of intersections is even. I think this will solve this
    issue for us. Magic is on our side.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757159

 src/geoJSONSource.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/geoJSONSource.js b/src/geoJSONSource.js
index 29c8e97..77ac28f 100644
--- a/src/geoJSONSource.js
+++ b/src/geoJSONSource.js
@@ -231,6 +231,7 @@ const GeoJSONSource = new Lang.Class({
             cr.paint();
             cr.setOperator(Cairo.Operator.OVER);
             cr.setLineWidth(1);
+            cr.setFillRule(Cairo.FillRule.EVEN_ODD);
 
             tileJSON.features.forEach(function(feature) {
                 if (feature.type === TileFeature.POINT)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]