1111import json
1212
1313from branca .colormap import LinearColormap
14- from branca .element import (CssLink , Element , Figure , JavascriptLink , MacroElement )
14+ from branca .element import (CssLink , Element , Figure , JavascriptLink , MacroElement ) # noqa
1515from branca .utilities import (_locations_mirror , _locations_tolist , _parse_size ,
1616 image_to_url , iter_points , none_max , none_min )
1717
@@ -250,11 +250,11 @@ def render(self, **kwargs):
250250 """ ).render (this = self , ** kwargs )), name = self .get_name ())
251251
252252 figure .header .add_child (
253- JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js' ),
253+ JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js' ), # noqa
254254 name = 'd3' )
255255
256256 figure .header .add_child (
257- JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega/1.4.3/vega.min.js' ),
257+ JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega/1.4.3/vega.min.js' ), # noqa
258258 name = 'vega' )
259259
260260 figure .header .add_child (
@@ -327,7 +327,9 @@ def render(self, **kwargs):
327327 mode: "vega-lite",
328328 spec: {{this.json}}
329329 };
330- vg.embed({{this.get_name()}}, embedSpec, function(error, result) {});
330+ vg.embed(
331+ {{this.get_name()}}, embedSpec, function(error, result) {}
332+ );
331333 """ ).render (this = self )), name = self .get_name ())
332334
333335 figure = self .get_root ()
@@ -349,15 +351,15 @@ def render(self, **kwargs):
349351 name = 'd3' )
350352
351353 figure .header .add_child (
352- JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega/2.6.5/vega.min.js' ),
354+ JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega/2.6.5/vega.min.js' ), # noqa
353355 name = 'vega' )
354356
355357 figure .header .add_child (
356- JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega-lite/1.3.1/vega-lite.min.js' ),
358+ JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega-lite/1.3.1/vega-lite.min.js' ), # noqa
357359 name = 'vega-lite' )
358360
359361 figure .header .add_child (
360- JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega-embed/2.2.0/vega-embed.min.js' ),
362+ JavascriptLink ('https://cdnjs.cloudflare.com/ajax/libs/vega-embed/2.2.0/vega-embed.min.js' ), # noqa
361363 name = 'vega-embed' )
362364
363365
@@ -375,9 +377,9 @@ class GeoJson(Layer):
375377 in the JavaScript.
376378 * If str, then data will be passed to the JavaScript as-is.
377379 style_function: function, default None
378- A function mapping a GeoJson Feature to a style dict.
380+ Function mapping a GeoJson Feature to a style dict.
379381 highlight_function: function, default None
380- A function mapping a GeoJson Feature to a style dict for mouse over events.
382+ Function mapping a GeoJson Feature to a style dict for mouse events.
381383 name : string, default None
382384 The name of the Layer, as it will appear in LayerControls
383385 overlay : bool, default False
0 commit comments