Skip to content

Commit 7c92659

Browse files
Add OpenTopoMap to default basemaps in dft_map_interactive()
Shows stream names, contour lines, roads, and place names for watershed context alongside satellite and light basemaps. Fixes #13 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db9dfa9 commit 7c92659

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

R/dft_map_interactive.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ dft_map_interactive <- function(x,
7979
titiler_url = getOption("drift.titiler_url"),
8080
basemaps = c("Light" = "CartoDB.Positron",
8181
"Esri Satellite" = "Esri.WorldImagery",
82-
"Google Satellite" = "https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}"),
82+
"Google Satellite" = "https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}",
83+
"OpenTopoMap" = "OpenTopoMap"),
8384
legend_position = "bottomright",
8485
zoom = 14) {
8586
rlang::check_installed(c("leaflet", "leaflet.extras"))

man/dft_map_interactive.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)