Skip to content

Commit

Permalink
Merge pull request #15 from reflejar/dev
Browse files Browse the repository at this point in the history
actualizamos
  • Loading branch information
mpvaldez authored Jan 18, 2024
2 parents 649f61b + f8aece4 commit 5f34602
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Binary file modified apps/testeos/data/ambientales.parquet
Binary file not shown.
Binary file modified apps/testeos/data/hexagonos.parquet
Binary file not shown.
Binary file modified apps/testeos/data/puntos.parquet
Binary file not shown.
9 changes: 5 additions & 4 deletions apps/testeos/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ oceanIcons <- awesomeIconList(
agua_superficial = makeAwesomeIcon(text = fa("water"),markerColor="lightblue"),
agua_lluvia = makeAwesomeIcon(text = fa("cloud-rain"),markerColor="lightblue"),
agua_red = makeAwesomeIcon(text = fa("faucet"),markerColor="lightblue"),
sedimento=makeAwesomeIcon(text = fa("mound"),markerColor="lightgreen"),
sedimento=makeAwesomeIcon(text = fa("mountain"),markerColor="lightgreen"),
vegetal=makeAwesomeIcon(text = fa("leaf"),markerColor="lightgreen"),
suelo=makeAwesomeIcon(text = fa("mountain"),markerColor="lightgreen"),
aire=makeAwesomeIcon(text = fa("wind"),markerColor="gray")
suelo=makeAwesomeIcon(text = fa("mound"),markerColor="lightgreen"),
aire=makeAwesomeIcon(text = fa("wind"),markerColor="gray"),
peces=makeAwesomeIcon(text = fa("fish"),markerColor="beige")

)

Expand Down Expand Up @@ -249,7 +250,7 @@ shinyServer(function(input, output, session) {
if (input$switch2) {
proxy %>% clearGroup("Ambientales2")

proxy %>% addAwesomeMarkers(data=amb,lat=~Lat,lng=~Long,label=hover_markers,icon = ~oceanIcons[type],
proxy %>% addAwesomeMarkers(data=amb,lat=~Lat,lng=~Long,label=hover_markers, popup=hover_markers,icon = ~oceanIcons[type],
group = "Ambientales",clusterOptions = markerClusterOptions(spiderfyOnMaxZoom=T,disableClusteringAtZoom=11,
removeOutsideVisibleBounds=T))
} else {
Expand Down
2 changes: 1 addition & 1 deletion apps/testeos/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ shinyUI(fluidPage(

tags$div(
materialSwitch(inputId = "switch1", label = "Testeos Humanos", status = "danger",value=T, right = T),
materialSwitch(inputId = "switch2", label = "Testeos Ambientales", status = "primary",value=F, right = T),
materialSwitch(inputId = "switch2", label = "Testeos Ambientales", status = "primary",value=T, right = T),
class="mt-3 mb-5 text-white"
),
tags$img(alt="Línea", src="img/linea.svg", class="mt-5 mb-3"),
Expand Down
Binary file modified assets/data/Testeos.xlsx
Binary file not shown.

0 comments on commit 5f34602

Please sign in to comment.