Skip to content
Permalink
Browse files
Substation icon
  • Loading branch information
lius21 committed Aug 1, 2022
1 parent fce73fe commit 0dc7b864cbafe2053b4c286f8594930fab1c53f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 app.R
@@ -522,6 +522,13 @@ server <- function(input, output, session) {
reservoir_data <- reactive({return(get_dataset(input$state, 'reservoir'))})
substation_data <- reactive({return(get_dataset(input$state, 'substation'))})

# Electric substation icon =====
sub_icon <- makeIcon(
iconUrl = 'substation.png',
iconWidth = 18,
iconHeight = 18
)

# Update congressional district selection upon changing states =====
# Set to At-large for states containing only one congressional district
# Default to 20 for New York
@@ -784,6 +791,7 @@ server <- function(input, output, session) {
data = substations_in_range(),
lng=substations_in_range()$LONGITUDE,
lat=substations_in_range()$LATITUDE,
icon = sub_icon,
group = 'substations'
)
})
BIN +24.5 KB www/substation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0dc7b86

Please sign in to comment.