only put shade on area outside the selected polygon when it is

an actual boundary polygon, not for simple bounding boxes
(like we already did for single page renderers for quite a while)
pull/21/head
Hartmut Holzgraefe 2017-09-23 10:31:32 +00:00
rodzic dbdf30c07b
commit f93e2bb61e
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -293,9 +293,10 @@ class MultiPageRenderer(Renderer):
os.path.join(self.tmpdir, 'grid%d.shp' % i))
map_canvas.add_shape_file(shade)
map_canvas.add_shape_file(shade_contour,
self.rc.stylesheet.shade_color_2,
self.rc.stylesheet.shade_alpha_2)
if self.rc.osmid != None:
map_canvas.add_shape_file(shade_contour,
self.rc.stylesheet.shade_color_2,
self.rc.stylesheet.shade_alpha_2)
map_canvas.add_shape_file(grid_shape,
self.rc.stylesheet.grid_line_color,
self.rc.stylesheet.grid_line_alpha,