mhassanch commited on
Commit
f609be6
·
1 Parent(s): d990cec

round zoom level when running inference

Browse files
Files changed (1) hide show
  1. src/App.js +1 -1
src/App.js CHANGED
@@ -154,7 +154,7 @@ function App() {
154
  setSuppressResult(false);
155
  runInference({
156
  inputs: { polygon: currentPolygon },
157
- mapSourceParams: { zoomLevel: map.current?.getZoom() || 18 },
158
  });
159
  };
160
 
 
154
  setSuppressResult(false);
155
  runInference({
156
  inputs: { polygon: currentPolygon },
157
+ mapSourceParams: { zoomLevel: Math.round(map.current?.getZoom() || 18) },
158
  });
159
  };
160