Skip to content

Commit

Permalink
update z-index so that all markers are above polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
RWParsons committed Jun 11, 2024
1 parent eddc5d9 commit ae04bc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/app/mapping/make_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ make_base_map <- function() {
m <- leaflet$leaflet() |>
leaflet$setView(144.4583, -22.49671, zoom = 5) |>
leaflet$addMapPane(name = "layers", zIndex = 200) |>
leaflet$addMapPane(name = "maplabels", zIndex = 400) |>
leaflet$addMapPane(name = "acute_centres", zIndex = 205) |>
leaflet$addMapPane(name = "rehab_centres", zIndex = 204) |>
leaflet$addMapPane(name = "rsq_centres", zIndex = 205) |>
leaflet$addMapPane(name = "qas_centres", zIndex = 210) |>
leaflet$addMapPane(name = "maplabels", zIndex = 1400) |>
leaflet$addMapPane(name = "acute_centres", zIndex = 1205) |>
leaflet$addMapPane(name = "rehab_centres", zIndex = 1204) |>
leaflet$addMapPane(name = "rsq_centres", zIndex = 1205) |>
leaflet$addMapPane(name = "qas_centres", zIndex = 1210) |>
leaflet$addProviderTiles("CartoDB.VoyagerNoLabels") |>
leaflet$addProviderTiles("CartoDB.VoyagerOnlyLabels",
options = leaflet$leafletOptions(pane = "maplabels"),
Expand Down

0 comments on commit ae04bc7

Please sign in to comment.