@@ -48,7 +48,7 @@ def __init__(self, url, name=None,
48
48
).addTo({{this._parent.get_name()}});
49
49
50
50
{% endmacro %}
51
- """ )
51
+ """ ) # noqa
52
52
53
53
54
54
class RegularPolygonMarker (MacroElement ):
@@ -99,7 +99,7 @@ def render(self, **kwargs):
99
99
"if it's not in a Figure." )
100
100
101
101
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
103
103
name = 'dvf_js' )
104
104
105
105
@@ -145,11 +145,11 @@ def render(self, **kwargs):
145
145
""" ).render (this = self , ** kwargs )), name = self .get_name ())
146
146
147
147
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
149
149
name = 'd3' )
150
150
151
151
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
153
153
name = 'vega' )
154
154
155
155
figure .header .add_children (
@@ -158,7 +158,7 @@ def render(self, **kwargs):
158
158
159
159
figure .script .add_children (
160
160
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
162
162
name = 'vega_parse' )
163
163
164
164
@@ -171,7 +171,7 @@ def __init__(self, data):
171
171
----------
172
172
data: file, dict or str.
173
173
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
175
175
If dict, then data will be converted to JSON and embedded in the javascript.
176
176
If str, then data will be passed to the javascript as-is.
177
177
@@ -196,7 +196,7 @@ def __init__(self, data):
196
196
197
197
self ._template = Template (u"""
198
198
{% 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
200
200
{% endmacro %}
201
201
""" )
202
202
@@ -234,7 +234,7 @@ def render(self, **kwargs):
234
234
"if it's not in a Figure." )
235
235
236
236
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
238
238
name = 'topojson' )
239
239
240
240
@@ -306,7 +306,7 @@ def render(self, **kwargs):
306
306
"if it's not in a Figure." )
307
307
308
308
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
310
310
name = 'd3' )
311
311
312
312
@@ -334,7 +334,7 @@ def render(self, **kwargs):
334
334
"if it's not in a Figure." )
335
335
336
336
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
338
338
name = 'd3' )
339
339
340
340
@@ -363,19 +363,19 @@ def render(self, **kwargs):
363
363
assert isinstance (figure , Figure ), ("You cannot render this Element "
364
364
"if it's not in a Figure." )
365
365
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
367
367
name = 'marker_cluster_src' )
368
368
369
369
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
371
371
name = 'marker_cluster' )
372
372
373
373
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
375
375
name = 'marker_cluster_css' )
376
376
377
377
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
379
379
name = "marker_cluster_default_css" )
380
380
381
381
@@ -449,7 +449,7 @@ def __init__(self):
449
449
}
450
450
{{this._parent.get_name()}}.on('click', latLngPop);
451
451
{% endmacro %}
452
- """ )
452
+ """ ) # noqa
453
453
454
454
455
455
class ClickForMarker (MacroElement ):
@@ -476,7 +476,7 @@ def __init__(self, popup=None):
476
476
};
477
477
{{this._parent.get_name()}}.on('click', newMarker);
478
478
{% endmacro %}
479
- """ )
479
+ """ ) # noqa
480
480
481
481
482
482
class PolyLine (MacroElement ):
@@ -517,7 +517,7 @@ def __init__(self, locations, color=None, weight=None,
517
517
});
518
518
{{this._parent.get_name()}}.addLayer({{this.get_name()}});
519
519
{% endmacro %}
520
- """ )
520
+ """ ) # noqa
521
521
522
522
523
523
class MultiPolyLine (MacroElement ):
@@ -558,7 +558,7 @@ def __init__(self, locations, color=None, weight=None,
558
558
});
559
559
{{this._parent.get_name()}}.addLayer({{this.get_name()}});
560
560
{% endmacro %}
561
- """ )
561
+ """ ) # noqa
562
562
563
563
564
564
class ImageOverlay (MacroElement ):
@@ -572,10 +572,13 @@ def __init__(self, image, bounds, opacity=1., attribution=None,
572
572
image: string, file or array-like object
573
573
The data you want to draw on the map.
574
574
* 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.
577
579
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]]
579
582
opacity: float, default Leaflet's default (1.0)
580
583
attr: string, default Leaflet's default ("")
581
584
origin : ['upper' | 'lower'], optional, default 'upper'
@@ -584,9 +587,9 @@ def __init__(self, image, bounds, opacity=1., attribution=None,
584
587
colormap : callable, used only for `mono` image.
585
588
Function of the form [x -> (r,g,b)] or [x -> (r,g,b,a)]
586
589
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.
590
593
Transforms the data to project (longitude, latitude)
591
594
coordinates to the Mercator projection.
592
595
"""
@@ -627,8 +630,10 @@ def __init__(self, icon_image, icon_size=None, icon_anchor=None,
627
630
icon_image : string, file or array-like object
628
631
The data you want to use as an icon.
629
632
* 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.
632
637
icon_size : tuple of 2 int
633
638
Size of the icon image in pixels.
634
639
icon_anchor : tuple of 2 int
@@ -676,4 +681,4 @@ def __init__(self, icon_image, icon_size=None, icon_anchor=None,
676
681
});
677
682
{{this._parent.get_name()}}.setIcon({{this.get_name()}});
678
683
{% endmacro %}
679
- """ )
684
+ """ ) # noqa
0 commit comments