edgarodriguez commited on
Commit
1b84e66
·
verified ·
1 Parent(s): f0cd565

Upload 2 files

Browse files
Files changed (2) hide show
  1. depth_interactive_map_alpha.R +6 -6
  2. styles.css +2 -2
depth_interactive_map_alpha.R CHANGED
@@ -741,12 +741,12 @@ WEB_SPEC <- list(
741
  checked = TRUE),
742
  list(kind = "radios", group = "crime"),
743
  list(kind = "layer", value = "migrants-pts",
744
- label = "Missing migrant incidents by IOM",
745
- tooltip = "Each dot marks a location where migrants went missing or died, recorded by the International Organization for Migration.",
746
  legend = list(type = "dot", color = COL_YEL, label = "Incident location")),
747
  list(kind = "layer", value = "desap-choro",
748
  label = "Missing and no located persons per 100k (RNPDNO)",
749
- tooltip = "People officially reported as disappeared and no located in each municipality, shown per 100,000 residents.",
750
  legend = list(type = "ramp", pal = "desap", unit = " /100k")),
751
  list(kind = "layer", value = "fosas-choro",
752
  label = "Clandestine graves by municipality",
@@ -1388,7 +1388,7 @@ rank_row <- function(i, name, state, rate_str, pct, color) {
1388
 
1389
  # --- Accordion layer panel helpers ----------------------------------------------
1390
 
1391
- acc_group <- function(id, label, items_list, open = FALSE) {
1392
  div(class = "acc-group",
1393
  div(class = "acc-header",
1394
  onclick = paste0("toggleGroup('", id, "')"),
@@ -2695,12 +2695,12 @@ server <- function(input, output, session) {
2695
  id = "satellite-source",
2696
  tiles = list("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"),
2697
  tileSize = 256,
2698
- maxzoom = 19
2699
  ) |>
2700
  add_raster_layer(
2701
  id = "satellite-basemap",
2702
  source = "satellite-source",
2703
- raster_opacity = zoom_fade_in(14, 16),
2704
  raster_fade_duration = 300
2705
  )
2706
 
 
741
  checked = TRUE),
742
  list(kind = "radios", group = "crime"),
743
  list(kind = "layer", value = "migrants-pts",
744
+ label = "Missing migrant incidents by Internation Organization of Migration",
745
+ tooltip = "Each dot is a location where migrants went missing or died, recorded by the International Organization for Migration.",
746
  legend = list(type = "dot", color = COL_YEL, label = "Incident location")),
747
  list(kind = "layer", value = "desap-choro",
748
  label = "Missing and no located persons per 100k (RNPDNO)",
749
+ tooltip = "People officially reported as disappeared and no located in each municipality, shown per 100,000 residents (2010 to 2024)",
750
  legend = list(type = "ramp", pal = "desap", unit = " /100k")),
751
  list(kind = "layer", value = "fosas-choro",
752
  label = "Clandestine graves by municipality",
 
1388
 
1389
  # --- Accordion layer panel helpers ----------------------------------------------
1390
 
1391
+ acc_group <- function(id, label, items_list, open = TRUE) {
1392
  div(class = "acc-group",
1393
  div(class = "acc-header",
1394
  onclick = paste0("toggleGroup('", id, "')"),
 
2695
  id = "satellite-source",
2696
  tiles = list("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"),
2697
  tileSize = 256,
2698
+ maxzoom = 23
2699
  ) |>
2700
  add_raster_layer(
2701
  id = "satellite-basemap",
2702
  source = "satellite-source",
2703
+ raster_opacity = zoom_fade_in(13, 16),
2704
  raster_fade_duration = 300
2705
  )
2706
 
styles.css CHANGED
@@ -3,7 +3,7 @@
3
  Renamed from 10.08_styles.css on 2026-05-20.
4
  ============================================================================ */
5
 
6
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');
7
 
8
  /* -- Design tokens --------------------------------------------------------- */
9
  :root {
@@ -1325,7 +1325,7 @@ button.mapbox-gl-draw_uncombine { display: none !important; }
1325
  /* ---- Brand ---- */
1326
  .nav-brand {
1327
  font-size: 20px;
1328
- font-weight: 800;
1329
  letter-spacing: 0.16em;
1330
  text-transform: uppercase;
1331
  color: var(--c-text);
 
3
  Renamed from 10.08_styles.css on 2026-05-20.
4
  ============================================================================ */
5
 
6
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600&display=swap');
7
 
8
  /* -- Design tokens --------------------------------------------------------- */
9
  :root {
 
1325
  /* ---- Brand ---- */
1326
  .nav-brand {
1327
  font-size: 20px;
1328
+ font-weight: 900;
1329
  letter-spacing: 0.16em;
1330
  text-transform: uppercase;
1331
  color: var(--c-text);