Move map zoom controls to top right

This commit is contained in:
2026-02-07 19:41:41 +01:00
parent 08e883533f
commit 5700c61421
2 changed files with 9 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ server <- function(input, output, session) {
#div() steht für division und sorgt für das Styling oder Layout von Inhalten, hier: die Inhalte "Bezirk:" und "Stadtteil:"
#bez und req(bez) sowie sdt und req(sdt) (müsste es nicht auch std sein, so wie oben? Nur wegen der Einheitlichkeit und so) führen dazu, dass der richtige Bezirk bzw. Stadtteil, die angeklickt wurden, auch als Auswahl neben der Karte rechts auftauchen
output$hhmap <- renderLeaflet({
leaflet() %>%
leaflet(options = leafletOptions(zoomControl = FALSE)) %>%
addProviderTiles(providers$CartoDB.Positron) %>%
addPolygons(
data = geo_bezirke,
@@ -202,12 +202,17 @@ server <- function(input, output, session) {
bringToFront = TRUE
),
) %>%
setView(
lng = 9.98716634776887,
lat = 53.5488439196432,
zoom = 11
)
) %>%
onRender(
"function(el, x) {
L.control.zoom({
position:'topright'
}).addTo(this);
}")
})
output$txt_map_selection_bezirk <- renderUI({
bez <- currently_selected_bezirk()