File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,11 +207,6 @@ def __init__(self,
207207 self .legend_function = legend_function
208208 self .legend_style = legend_style
209209 self .legend_gradient = legend_gradient
210-
211- if all ([self .legend , self .legend_gradient , self .legend_function == 'radius' ]):
212- raise LegendError (' ' .join (['Gradient legend format not compatible with a variable radius legend.' ,
213- 'Please either change `legend_gradient` to `False` or `legend_function` to `color`.' ]))
214-
215210 self .legend_fill = legend_fill
216211 self .legend_header_fill = legend_header_fill
217212 self .legend_text_color = legend_text_color
@@ -271,6 +266,11 @@ def create_html(self, filename=None):
271266 )
272267
273268 if self .legend :
269+
270+ if all ([self .legend , self .legend_gradient , self .legend_function == 'radius' ]):
271+ raise LegendError (' ' .join (['Gradient legend format not compatible with a variable radius legend.' ,
272+ 'Please either change `legend_gradient` to False or `legend_function` to "color".' ]))
273+
274274 options .update (
275275 showLegend = self .legend ,
276276 legendLayout = self .legend_layout ,
You can’t perform that action at this time.
0 commit comments