r-spatial / rgee

Google Earth Engine for R
https://r-spatial.github.io/rgee/
Other
677 stars 146 forks source link

Is zoom=18 the maximum? #248

Closed aloboa closed 2 years ago

aloboa commented 2 years ago

At submit an issue, please attached the following information of your rgee session:

library(rgee)

# Initialize the Earth Engine module.
ee_Initialize()

# Print metadata for a DEM dataset.
print(ee$Image('USGS/SRTMGL1_003')$getInfo())

Attach your Python (reticulate) configuration:

library(reticulate)
> py_config()
python:         /home/alobo/.virtualenvs/rgee/bin/python
libpython:      /usr/lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.so
pythonhome:     /home/alobo/.virtualenvs/rgee:/home/alobo/.virtualenvs/rgee
version:        3.9.5 (default, Nov 18 2021, 16:00:48)  [GCC 10.3.0]
numpy:          /home/alobo/.virtualenvs/rgee/lib/python3.9/site-packages/numpy
numpy_version:  1.22.3
ee:             /home/alobo/.virtualenvs/rgee/lib/python3.9/site-packages/ee

python versions found: 
 /usr/bin/python3
 /home/alobo/miniconda3/bin/python
 /home/alobo/.virtualenvs/rgee/bin/python
 /home/alobo/miniconda3/envs/qgis_stable/bin/python

Description

Maximum zoom at which the image is displayed is 18. Increasing zoom makes the image disappear from the display. I expected being able to go up to 24. This is important for displaying my own images uploaded as asset.

What I Did

image <- ee$Image("LANDSAT/LC08/C01/T1/LC08_044034_20140318")
Map$centerObject(image, 24)
m4 <- Map$addLayer(
  eeObject = image,
  visParams = list(
    bands = c("B4", "B3", "B2"),
    max = 10000
  ),
  name = "SF"
)
m4
csaybar commented 2 years ago

Hi @aloboa thanks, we fixed the issue. Please let us know if the problem persists!

remotes::install_github("r-spatial/rgee")
aloboa commented 2 years ago

Works great, thanks!