##----------------------------------------------------------------------------##
## Coordinates of cells in projection.
##----------------------------------------------------------------------------##
overview_projection_coordinates <- reactive({
req(
overview_projection_parameters_plot(),
overview_projection_cells_to_show()
)
# message('--> trigger "overview_projection_coordinates"')
parameters <- overview_projection_parameters_plot()
cells_to_show <- overview_projection_cells_to_show()
req(parameters[["projection"]] %in% availableProjections())
coordinates <- getProjection(parameters[["projection"]])[cells_to_show,]
# message(str(coordinates))
return(coordinates)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.