Issue with GeoportailFrance provider
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 907
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided tmap_mode("plot") example using tm_basemap(server = providers$GeoportailFrance.orthos) and compare it with tm_tiles() and the Leaflet provider preview. Trace the GeoportailFrance provider handling; done when the orthophoto and plan layers render as backgrounds in the reported map modes without errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100