Spaces:
Running
Running
round zoom level when running inference
Browse files- 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 |
|