Skip to content

Commit 9a8694c

Browse files
committed
Hardcode scheme for default OSM tiles
The "//" relative scheme doesn't work for web pages that are served from the filesystem.
1 parent b35b573 commit 9a8694c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

R/layers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ hideGroup <- function(map, group) {
116116
#' @export
117117
addTiles <- function(
118118
map,
119-
urlTemplate = '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
119+
urlTemplate = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
120120
attribution = NULL,
121121
layerId = NULL,
122122
group = NULL,

man/map-layers.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)