Skip to content

Commit 6926d15

Browse files
committed
Remove a number of coding standards violations in the example notebook
1 parent fa50373 commit 6926d15

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

examples/FastMarkerCluster.ipynb

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"source": [
3636
"n = 1000\n",
3737
"\n",
38-
"# Create a list of lists that correspond to [[lat, lon], [lat, lon]]\n",
38+
"# Create a list of lists that correspond to [[lat, lon], [lat, lon]]\n",
3939
"data = np.array([\n",
40-
" np.random.uniform(low=35, high=60, size=n), # Random latitude\n",
40+
" np.random.uniform(low=35, high=60, size=n), # Random latitude\n",
4141
" np.random.uniform(low=-12, high=30, size=n) # Random longitude\n",
4242
"]).T.tolist()\n",
4343
"\n",
@@ -72,17 +72,18 @@
7272
}
7373
],
7474
"source": [
75-
"# A custom callback can be passed to edit the markers.\n",
76-
"# This should be a string representation of a valid JavaScript function.\n",
75+
"\"\"\"A custom callback can be passed to edit the markers.\n",
76+
" This should be a string representation of a valid JavaScript function.\n",
77+
"\"\"\"\n",
7778
"callback = ('function (row) {' +\n",
78-
" 'var icon, marker;' +\n",
79-
" 'icon = L.AwesomeMarkers.icon({' +\n",
80-
" 'icon: \"map-marker\", markerColor: \"red\"});' +\n",
81-
" 'marker = L.marker(new L.LatLng(row[0], ' +\n",
82-
" 'row[1]));' +\n",
83-
" 'marker.setIcon(icon);' +\n",
84-
" 'return marker;' +\n",
85-
" '};')\n",
79+
" 'var icon, marker;' +\n",
80+
" 'icon = L.AwesomeMarkers.icon({' +\n",
81+
" 'icon: \"map-marker\", markerColor: \"red\"});' +\n",
82+
" 'marker = L.marker(new L.LatLng(row[0], ' +\n",
83+
" 'row[1]));' +\n",
84+
" 'marker.setIcon(icon);' +\n",
85+
" 'return marker;' +\n",
86+
" '};')\n",
8687
"\n",
8788
"m = folium.Map([45., 3.], zoom_start=6)\n",
8889
"mc = plugins.FastMarkerCluster(data, callback=callback)\n",

0 commit comments

Comments
 (0)