project-icp / bee-pollinator-app

The web application front end for the ICP Pollinator Decision Support Tool 🐝
Apache License 2.0
6 stars 1 forks source link

Use 2017 CDL Raster #429

Closed rajadain closed 5 years ago

rajadain commented 5 years ago

Overview

Updates the app to use the new 2017 CDL raster for visualization. See https://github.com/project-icp/bee-pollinator-app/issues/371#issuecomment-456216003 for details.

Connects #371

Testing Instructions

rajadain commented 5 years ago

Ah good catch. This fixes it:

diff --git a/src/icp/apps/beekeepers/js/src/components/Map.jsx b/src/icp/apps/beekeepers/js/src/components/Map.jsx
index 21d30e2c..14d2fe76 100644
--- a/src/icp/apps/beekeepers/js/src/components/Map.jsx
+++ b/src/icp/apps/beekeepers/js/src/components/Map.jsx
@@ -182,6 +182,7 @@ class Map extends Component {
             <TileLayer
                 url="https://{s}.tiles.azavea.com/cdl-reclass-2017-gdal/{z}/{x}/{y}.png"
                 subdomains="abcd"
+                maxNativeZoom={13}
                 opacity={cropLayerOpacity}
             />
         );

image

Force pushed the update.