Skip to content

Commit

Permalink
fix: Kasvata sallitun geometrian kokoa 99999999 m2:een
Browse files Browse the repository at this point in the history
  • Loading branch information
hakalap committed Aug 21, 2024
1 parent b440625 commit 16e3fad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ export function createVectorLayer(source: VectorSource<Geometry>): VectorLayer<V
});
}

const MAXIMUM_AREA = 9999999;
const MAXIMUM_AREA = 99999999;
const validateSelection = (geom: Geometry | undefined): geom is Polygon => {
if (!(geom instanceof Polygon || geom instanceof MultiPolygon)) {
throw new UnsupportedGeometryTypeError("Lisätty ei tuettu geometria. Tuetut geometriatyypit: Polygon ja MultiPolygon");
Expand Down

0 comments on commit 16e3fad

Please sign in to comment.