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

Issue with GeoportailFrance provider #1124

@adns-dev

Description

@adns-dev

Hi,

I am using tmap 4.1, with R 4.4.1 and Rstudio 2025.05.

I want to use GeoportailFrance.orthos and GeoportailFrance.plan to produce maps in plot mode.

The maps produced (in plot or view mode) don't have any background and no error is returned.
Here is a small eg.

tmap_mode("plot")
    tm_basemap(server = providers$GeoportailFrance.orthos) +
    tm_shape(World |> dplyr::filter(name == "France")) +
    tm_polygons(
      "HPI",
      fill.scale = tm_scale(values = "reds"),
      fill_alpha.scale = 0.5)

I tried the same code with tm_tiles() without success.
I checked the leaflet repo (both original and r versions) and no issue has been posted on this.
On the leaflet provider preview, it seems that the GeoportailFrance layers are working : https://leaflet-extras.github.io/leaflet-providers/preview/index.html

So, I assume the error comes from me ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions