Skip to content

Commit 328c741

Browse files
committed
added OSM data for vignette
1 parent 227414d commit 328c741

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

vignettes/data/buildings_poly.rds

544 KB
Binary file not shown.

vignettes/polygons3d.Rmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This map layer is the same as `tm_polygons`, with one addition: polygons can be
4949

5050
## Example: buildings heights
5151

52-
```{r}
52+
```{r, eval = FALSE}
5353
tmap_mode("maplibre")
5454
5555
# get vector buildings
@@ -70,9 +70,14 @@ buildings_poly <- buildings$osm_polygons |>
7070
height = if_else(is.na(height), levels * 3, height))
7171
```
7272

73+
```{r, echo=FALSE, eval=FALSE}
74+
#saveRDS(buildings_poly, file = "vignettes/data/buildings_poly.rds")
75+
buildings_poly = readRDS(file = "https://r-tmap.github.io/tmap.mapgl/reference/data/buildings_poly.rds")
76+
```
77+
7378
For the time being, we need to compute the maximum building height, because `tm_scale_asis` doesn't support units yet.
7479

75-
```{r, fig.height = 6}
80+
```{r, fig.height = 6, eval=FALSE}
7681
# maximum building height
7782
mx = max(buildings_poly$height)
7883

0 commit comments

Comments
 (0)