Spaces:
Running
Running
chore: Increase initial map and home button zoom level to 5.5.
Browse files
server.R
CHANGED
|
@@ -310,7 +310,7 @@ server <- function(input, output, session) {
|
|
| 310 |
maplibre(
|
| 311 |
style = ofm_positron_style,
|
| 312 |
center = c(19.1451, 51.9194),
|
| 313 |
-
zoom = 5
|
| 314 |
) %>%
|
| 315 |
add_navigation_control(show_compass = FALSE, visualize_pitch = FALSE, position = "top-left")
|
| 316 |
})
|
|
@@ -318,7 +318,7 @@ server <- function(input, output, session) {
|
|
| 318 |
# Zoom to extent of all stations (home button)
|
| 319 |
observeEvent(input$zoom_home, {
|
| 320 |
maplibre_proxy("map") %>%
|
| 321 |
-
fly_to(center = c(19.1451, 51.9194), zoom = 5)
|
| 322 |
})
|
| 323 |
|
| 324 |
# --- Basemap Switching Logic ---
|
|
|
|
| 310 |
maplibre(
|
| 311 |
style = ofm_positron_style,
|
| 312 |
center = c(19.1451, 51.9194),
|
| 313 |
+
zoom = 5.5
|
| 314 |
) %>%
|
| 315 |
add_navigation_control(show_compass = FALSE, visualize_pitch = FALSE, position = "top-left")
|
| 316 |
})
|
|
|
|
| 318 |
# Zoom to extent of all stations (home button)
|
| 319 |
observeEvent(input$zoom_home, {
|
| 320 |
maplibre_proxy("map") %>%
|
| 321 |
+
fly_to(center = c(19.1451, 51.9194), zoom = 5.5)
|
| 322 |
})
|
| 323 |
|
| 324 |
# --- Basemap Switching Logic ---
|