Skip to content

iobis/mpaeu_map_platform

Repository files navigation

MPA Europe maps platform

This is the repository for the maps platform being developed by OBIS to hold the SDM (Species Distribution Models) maps produced as part of the MPA Europe project.

The platform uses Quarto and Shiny, and is still under development. You can access the platform here: (https://shiny.obis.org/distmaps/)

Below, a screenshot showing the most recent status:

App structure

flowchart
	n1["(1) TARGET SELECTION"]
	n2@{ shape: "stadium", label: "Stadium" }
	n2@{ shape: "stadium", label: "USER INPUT" } --- n1
	n3@{ shape: "stadium", label: "Stadium" }
	n3@{ shape: "stadium", label: "TAB SELECTION" } --- n1
	style n1 fill:#5CE1E6,stroke:#0097B2
	n4["CONTEXTUAL INFORMATION"]
	n5@{ label: "Rectangle" }
	style n5 fill:#FFDE59
	n5["DATABASES"]
	n1["(1) TARGET SELECTION (selectinfo.R)"] --- n5
	n5 --- n4["(3) CONTEXTUAL INFORMATION (contextualinfo.R)"]
	style n4 fill:#5CE1E6,stroke:#0097B2
	n17@{ label: "Rectangle" }
	n5 ------ n17["TAB CONTEXTUAL INFORMATION (tabcontexts.R)"]
	n6["(2) MAP MODULE"]
	style n6 fill:#5CE1E6,stroke:#0097B2
	n5
	n6
	n7["MASK"]
	n5 --- n7
	n7["MASK (mapreactive.R)"] --- n6
	n8["MAP GRAPH"]
	n9@{ shape: "stadium", label: "USER SELECTION" }
	n6["(2) MAP MODULE (mapreactive.R)"] --- n9
	n9 --- n8["MAP GRAPH (extrainfomaps.R)"]
	n10@{ shape: "stadium", label: "DOWNLOAD ACTION" }
	n5 --- n10
	n11["(4) DOWNLOAD MODULE (downloads.R)"]
	style n11 fill:#5CE1E6,stroke:#0097B2
	n10 --- n11
	n12["SELECT PANEL"]
	n4
	n12
	n13["UPDATE OPTIONS"]
	n13 --- n12
	n1 --- n13["UPDATE OPTIONS (updateoptions.R)"]
	n14["TABLES AND PLOTS"]
	n4
	n14
	n15@{ shape: "stadium", label: "SHOW EXTRA INPUT" }
	n14 --- n15
	n4 --- n14["TABLES AND PLOTS (renders.R)"]
	n16["EXTRA INFORMATION SECTION"]
	n15 --- n16["EXTRA INFORMATION SECTION (extrainfo.R)"]
	n5
	n12
	n12["SELECT PANEL (tabactions.R)"] --- n4
	style n2 fill:#D9D9D9,stroke:#737373
	style n3 fill:#D9D9D9,stroke:#737373
	style n9 fill:#D9D9D9,stroke:#737373
	style n10 fill:#D9D9D9,stroke:#737373
	style n15 fill:#D9D9D9,stroke:#737373
	n18["ADDITIONAL DATA (dataloaders.R)"]
	n5 --- n18
	n18 --- n6
	n5 --- n6["(2) MAP MODULE (mapreactive.R / maprenders.R)"]
Loading

Repository structure

The main files are:

  • index.qmd: Quarto file used to generate the webpage and the frontend part of the app (generate index.html).
  • _quarto.yml: Quarto configuration file.
  • www/addons.js: Javascript additional functions.
  • www/styles.css: CSS stylesheet for personalization of the interface.

Main folders:

  • quarto_components: Page sections.
  • components: Shiny server-side components.
  • scripts: R functions/scripts needed within components.

Components explanation:

  • serverstart.R: Information loaded on server start
  • tabactions.R: Tab control/actions
  • tabcontexts.R: Tab contextual information
  • updateoptions.R: Update selectize options
  • selectinfo.R: Main information from input
  • contextualinfo.R: Add/update contextual information
  • dataloaders.R: Load accessory data
  • renders.R: Contextual information renders
  • maprenders.R: Map render and placeholder
  • mapreactive.R: Main reactive for map change
  • extrainfo.R: Extra information section
  • extrainfomaps.R: Extra information popup - maps
  • downloads.R: Manage download requests

The zip folder app_bundle.zip contains files produced by pre-render.R and is provided for a faster deployment on server. The script build.R, which should be called on the server when the app is deployed, will unzip this file on the data folder.

About

A platform for hosting SDM maps produced by OBIS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published