File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ /* Fix version switcher dropdown overflow - GitHub issue #578 */
2+ .version-switcher__menu {
3+ max-height : 60vh ;
4+ overflow-y : auto !important ;
5+ overflow-x : hidden;
6+ }
Original file line number Diff line number Diff line change 4646 ],
4747}
4848html_static_path = ["_static" ]
49+ html_css_files = ["custom.css" ]
4950html_logo = "_static/logo.svg"
5051html_favicon = "_static/favicon.ico"
Original file line number Diff line number Diff line change @@ -979,6 +979,8 @@ def plot_samples_interactive_map(
979979 fill_value = 0 ,
980980 )
981981
982+ taxa = df_pivot .columns .dropna ().sort_values ().unique ()
983+
982984 # Append aggregations to pivot.
983985 df_location_aggs = df_samples .groupby (location_composite_key ).agg (
984986 {
@@ -1023,7 +1025,6 @@ def plot_samples_interactive_map(
10231025 samples_map .layout .width = width
10241026
10251027 # Add markers.
1026- count_factors = df_samples [count_by ].dropna ().sort_values ().unique ()
10271028 for _ , row in df_pivot .reset_index ().iterrows ():
10281029 title = (
10291030 f"Location: { row .location } ({ row .latitude :.3f} , { row .longitude :.3f} )"
@@ -1036,13 +1037,13 @@ def plot_samples_interactive_map(
10361037 title += f"\n Contributors: { row .contributor } "
10371038 title += "\n No. specimens: "
10381039 all_n = 0
1039- for factor in count_factors :
1040+ for taxon in taxa :
10401041 # Get the number of samples in this taxon
1041- n = row [factor ]
1042+ n = int ( row [taxon ])
10421043 # Count the number of samples in all taxa
10431044 all_n += n
10441045 if n > 0 :
1045- title += f"{ n } { factor } ; "
1046+ title += f"{ n } { taxon } ; "
10461047 # Only show a marker when there are enough samples
10471048 if all_n >= min_samples :
10481049 marker = ipyleaflet .Marker (
You can’t perform that action at this time.
0 commit comments