Skip to content

Maximum Image zoom #507

@eduardszoecs

Description

@eduardszoecs

Raster are displayed only till level 18.
Is there a was to increase this?

With tileOptions(maxZoom = 20) the background can go to 20.
However, the raster disappears at 18.

Maybe add at maxZoom option to addRasterImage?

See also r-spatial/mapview#90

library(leaflet)
library(mapview)

leaflet() %>% 
  addTiles() %>% 
  addRasterImage(poppendorf[[1]], opacity = 0.7)
# stops a zoom level 18

# can go deeper with tileOptions.
# However, the raster image disappears at 18
leaflet() %>% 
  addTiles(options = tileOptions(maxZoom = 20)) %>% 
  addRasterImage(poppendorf[[1]], opacity = 0.7)

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