@@ -48,7 +48,7 @@ def __init__(self, url, name=None,
4848 ).addTo({{this._parent.get_name()}});
4949
5050 {% endmacro %}
51- """ )
51+ """ ) # noqa
5252
5353
5454class RegularPolygonMarker (MacroElement ):
@@ -99,7 +99,7 @@ def render(self, **kwargs):
9999 "if it's not in a Figure." )
100100
101101 figure .header .add_children (
102- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet-dvf/0.2/leaflet-dvf.markers.min.js" ),
102+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet-dvf/0.2/leaflet-dvf.markers.min.js" ), # noqa
103103 name = 'dvf_js' )
104104
105105
@@ -145,11 +145,11 @@ def render(self, **kwargs):
145145 """ ).render (this = self , ** kwargs )), name = self .get_name ())
146146
147147 figure .header .add_children (
148- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" ),
148+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" ), # noqa
149149 name = 'd3' )
150150
151151 figure .header .add_children (
152- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/vega/1.4.3/vega.min.js" ),
152+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/vega/1.4.3/vega.min.js" ), # noqa
153153 name = 'vega' )
154154
155155 figure .header .add_children (
@@ -158,7 +158,7 @@ def render(self, **kwargs):
158158
159159 figure .script .add_children (
160160 Template ("""function vega_parse(spec, div) {
161- vg.parse.spec(spec, function(chart) { chart({el:div}).update(); });}""" ),
161+ vg.parse.spec(spec, function(chart) { chart({el:div}).update(); });}""" ), # noqa
162162 name = 'vega_parse' )
163163
164164
@@ -171,7 +171,7 @@ def __init__(self, data):
171171 ----------
172172 data: file, dict or str.
173173 The geo-json data you want to plot.
174- If file, then data will be read in the file and fully embedded in Leaflet's javascript.
174+ If file, then data will be read in the file and fully embedded in Leaflet's javascript. # noqa
175175 If dict, then data will be converted to JSON and embedded in the javascript.
176176 If str, then data will be passed to the javascript as-is.
177177
@@ -196,7 +196,7 @@ def __init__(self, data):
196196
197197 self ._template = Template (u"""
198198 {% macro script(this, kwargs) %}
199- var {{this.get_name()}} = L.geoJson({{this.data}}).addTo({{this._parent.get_name()}});
199+ var {{this.get_name()}} = L.geoJson({{this.data}}).addTo({{this._parent.get_name()}}); # noqa
200200 {% endmacro %}
201201 """ )
202202
@@ -234,7 +234,7 @@ def render(self, **kwargs):
234234 "if it's not in a Figure." )
235235
236236 figure .header .add_children (
237- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js" ),
237+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js" ), # noqa
238238 name = 'topojson' )
239239
240240
@@ -306,7 +306,7 @@ def render(self, **kwargs):
306306 "if it's not in a Figure." )
307307
308308 figure .header .add_children (
309- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" ),
309+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" ), # noqa
310310 name = 'd3' )
311311
312312
@@ -334,7 +334,7 @@ def render(self, **kwargs):
334334 "if it's not in a Figure." )
335335
336336 figure .header .add_children (
337- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" ),
337+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" ), # noqa
338338 name = 'd3' )
339339
340340
@@ -363,19 +363,19 @@ def render(self, **kwargs):
363363 assert isinstance (figure , Figure ), ("You cannot render this Element "
364364 "if it's not in a Figure." )
365365 figure .header .add_children (
366- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster-src.js" ),
366+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster-src.js" ), # noqa
367367 name = 'marker_cluster_src' )
368368
369369 figure .header .add_children (
370- JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js" ),
370+ JavascriptLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js" ), # noqa
371371 name = 'marker_cluster' )
372372
373373 figure .header .add_children (
374- CssLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css" ),
374+ CssLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css" ), # noqa
375375 name = 'marker_cluster_css' )
376376
377377 figure .header .add_children (
378- CssLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css" ),
378+ CssLink ("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css" ), # noqa
379379 name = "marker_cluster_default_css" )
380380
381381
@@ -449,7 +449,7 @@ def __init__(self):
449449 }
450450 {{this._parent.get_name()}}.on('click', latLngPop);
451451 {% endmacro %}
452- """ )
452+ """ ) # noqa
453453
454454
455455class ClickForMarker (MacroElement ):
@@ -476,7 +476,7 @@ def __init__(self, popup=None):
476476 };
477477 {{this._parent.get_name()}}.on('click', newMarker);
478478 {% endmacro %}
479- """ )
479+ """ ) # noqa
480480
481481
482482class PolyLine (MacroElement ):
@@ -517,7 +517,7 @@ def __init__(self, locations, color=None, weight=None,
517517 });
518518 {{this._parent.get_name()}}.addLayer({{this.get_name()}});
519519 {% endmacro %}
520- """ )
520+ """ ) # noqa
521521
522522
523523class MultiPolyLine (MacroElement ):
@@ -558,7 +558,7 @@ def __init__(self, locations, color=None, weight=None,
558558 });
559559 {{this._parent.get_name()}}.addLayer({{this.get_name()}});
560560 {% endmacro %}
561- """ )
561+ """ ) # noqa
562562
563563
564564class ImageOverlay (MacroElement ):
@@ -572,10 +572,13 @@ def __init__(self, image, bounds, opacity=1., attribution=None,
572572 image: string, file or array-like object
573573 The data you want to draw on the map.
574574 * If string, it will be written directly in the output file.
575- * If file, it's content will be converted as embedded in the output file.
576- * If array-like, it will be converted to PNG base64 string and embedded in the output.
575+ * If file, it's content will be converted as embedded in the
576+ output file.
577+ * If array-like, it will be converted to PNG base64 string and
578+ embedded in the output.
577579 bounds: list
578- Image bounds on the map in the form [[lat_min, lon_min], [lat_max, lon_max]]
580+ Image bounds on the map in the form
581+ [[lat_min, lon_min], [lat_max, lon_max]]
579582 opacity: float, default Leaflet's default (1.0)
580583 attr: string, default Leaflet's default ("")
581584 origin : ['upper' | 'lower'], optional, default 'upper'
@@ -584,9 +587,9 @@ def __init__(self, image, bounds, opacity=1., attribution=None,
584587 colormap : callable, used only for `mono` image.
585588 Function of the form [x -> (r,g,b)] or [x -> (r,g,b,a)]
586589 for transforming a mono image into RGB.
587- It must output iterables of length 3 or 4, with values between 0. and 1.
588- Hint : you can use colormaps from `matplotlib.cm`.
589- mercator_project : bool, default False, used only for array-like image.
590+ It must output iterables of length 3 or 4, with values between
591+ 0. and 1. Hint : you can use colormaps from `matplotlib.cm`.
592+ mercator_project : bool, default False, used for array-like image.
590593 Transforms the data to project (longitude, latitude)
591594 coordinates to the Mercator projection.
592595 """
@@ -627,8 +630,10 @@ def __init__(self, icon_image, icon_size=None, icon_anchor=None,
627630 icon_image : string, file or array-like object
628631 The data you want to use as an icon.
629632 * If string, it will be written directly in the output file.
630- * If file, it's content will be converted as embedded in the output file.
631- * If array-like, it will be converted to PNG base64 string and embedded in the output.
633+ * If file, it's content will be converted as embedded in the
634+ output file.
635+ * If array-like, it will be converted to PNG base64 string and
636+ embedded in the output.
632637 icon_size : tuple of 2 int
633638 Size of the icon image in pixels.
634639 icon_anchor : tuple of 2 int
@@ -676,4 +681,4 @@ def __init__(self, icon_image, icon_size=None, icon_anchor=None,
676681 });
677682 {{this._parent.get_name()}}.setIcon({{this.get_name()}});
678683 {% endmacro %}
679- """ )
684+ """ ) # noqa
0 commit comments