Plant-for-the-Planet-org / planet-webapp

The Open Source and Commission Free Application that powers the Trillion Tree Campaign. Visit us to meet reforestation Organizations, individuals and companies who are on a journey to plant, monitor and restore a trillion trees.
https://www.trilliontreecampaign.org
Other
31 stars 13 forks source link

Explore: Current Forests / Restoration Potential do nothing #1648

Open mohitb35 opened 1 year ago

mohitb35 commented 1 year ago

Describe the bug After clicking Explore on the map, when the toggle switches for Current Forests / Restoration Potential are switched on, nothing seems to happen. I do see a number of console errors (similar to the one below) after switching these toggles on.

Error: Could not load image because of The source image could not be decoded.. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.

Is it on a Production or Development Build? All

To Reproduce Steps to reproduce the behavior:

  1. Go to www1.plant-for-the-planet.org
  2. Click on Explore
  3. Turn on the Current Forests / Restoration Potential toggle
  4. Open console to see error
norbertschuler commented 1 year ago

Can't test on iPhone as check box is not available - requires https://github.com/Plant-for-the-Planet-org/planet-webapp/pull/1558 to be able to test on mobile device.

image

norbertschuler commented 1 year ago

Looking at the network requests triggered by our app e.g. https://tiles.arcgis.com/tiles/lKUTwQ0dhJzktt4g/arcgis/rest/services/Forest_Denisty_V2/MapServer/tile/3/5/7 and its result, I would assume some authorization is missing as the URL for the image now responds with some login form:

Bildschirm­foto 2023-01-21 um 15 21 30
sarveshpro commented 1 year ago

These Layers are hosted on our ESRI account. Now when I login into the account I see "Your subscription has been disabled because you consumed all your credits or your subscription expired." Have informed @sagararyal, will update here accordingly.

sarveshpro commented 1 year ago

Update: We don't have access to ESRI anymore. I will try to host these layers on GEE.