Skip to content

Commit 96513bc

Browse files
committed
feat: new popup in at sea
issue #153
1 parent fce190b commit 96513bc

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

R/mod_a_first_fct_map.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ data_ocean <- function(ices_geom,
88
filter(ices_type == spatial_type) %>%
99
inner_join(
1010
dataALL %>%
11+
select(-c(icesname, division_name)) %>%
1112
filter(latin_name == species_latin_name),
1213
by = c("ices_type", "gid")
1314
) %>%
@@ -45,7 +46,7 @@ tm_ocean <- function(dataOcean,
4546
"[10, 12]",
4647
"[13, 15]"
4748
),
48-
popup.vars = c("prevalence: " = "nb_occurence")
49+
popup.vars = c('in division:' = 'division_name', 'prevalence:' = 'nb_occurence')
4950
)
5051
}
5152

data-raw/bb-page1-catch-bycatch.Rmd

+1-12
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ for (i in species$species_id) {
5353
cli::cat_rule(i)
5454
print(
5555
get_conservation_status(
56-
6,
56+
i,
5757
con
5858
)
5959
)
@@ -84,17 +84,6 @@ tm_draw(
8484
session = session
8585
)
8686
87-
tm_draw(
88-
species_latin_name = "Salmo trutta",
89-
spatial_type = "division",
90-
con = con,
91-
dataCatchment = datasets$dataCatchment,
92-
catchment_geom = datasets$catchment_geom,
93-
dataALL = datasets$dataALL,
94-
ices_geom = datasets$ices_geom,
95-
session = session
96-
)
97-
9887
tm_draw(
9988
species_latin_name = "Chelon ramada",
10089
spatial_type = "rectangle",

0 commit comments

Comments
 (0)