Skip to content

Commit

Permalink
updated MV location info
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshbio committed Jan 21, 2025
1 parent 87f71b7 commit 3ac4cbe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _child-info.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```{r}
#| echo: false
icons <- awesomeIcons(icon = dfr2$marker_icon, markerColor = dfr2$marker_color, iconColor = "#FFFFFF", library = "fa")
htmltools::div(
style = "margin-bottom:1em;",
htmltools::tagList(leaflet(height = 450, width = "auto", elementId = paste0("leaflet-", p)) %>%
addTiles(urlTemplate = "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") %>%
addAwesomeMarkers(lat = dfr2$lat, lng = dfr2$lon, label = dfr2$label, popup = dfr2$popup, icon = icons) %>%
setView(lat = dfr2$lat[1], lng = dfr2$lon[1], zoom = 13))
)
```

0 comments on commit 3ac4cbe

Please sign in to comment.