这是indexloc提供的服务,不要输入任何密码
Skip to content

Specifying many basemaps results in empty map in a view mode #1172

@Nowosad

Description

@Nowosad

(The code below worked in tmap3 and many tmap4 versions)

library(tmap)
tmap_mode("view")
#> ℹ tmap mode set to "view".
tm_basemap(c(StreetMap = "OpenStreetMap", TopoMap = "OpenTopoMap")) +
  tm_shape(metro) +
  tm_bubbles(size = "pop2020")
#> Input to asJSON(keep_vec_names=TRUE) is a named vector. In a future version of jsonlite, this option will not be supported, and named vectors will be translated into arrays instead of objects. If you want JSON object output, please use a named list instead. See ?toJSON.
#> Input to asJSON(keep_vec_names=TRUE) is a named vector. In a future version of jsonlite, this option will not be supported, and named vectors will be translated into arrays instead of objects. If you want JSON object output, please use a named list instead. See ?toJSON.

Created on 2025-07-25 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions