-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate Zoom based on shapefile size (#2242)
* calculate zoom depending on shapefile size * update map context * Revert "update map context" This reverts commit 08ab86f. * Revert "Revert "update map context"" This reverts commit 5ed5976. * fix preview bug * code smells * Delete met-web/package-lock.json should not be part of this pr * Revert "Delete met-web/package-lock.json" This reverts commit 3059e0f. * revert package lock * update to most recent * resolve conflict * change lock file version to 1 * update package lock * change submit text from submit form to submit * Revert "change submit text from submit form to submit" This reverts commit 63f7787. * add optional dependencies to test * update github actions * update lock file version * add no platform check * update node version
- Loading branch information
1 parent
48bcfca
commit c560fbf
Showing
12 changed files
with
680 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
met-web/src/components/engagement/form/EngagementWidgets/Map/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { GeoJSON } from 'geojson'; | ||
import * as turf from '@turf/turf'; | ||
|
||
export interface PreviewMap { | ||
longitude: number; | ||
latitude: number; | ||
markerLabel?: string; | ||
geojson?: GeoJSON; | ||
} | ||
|
||
export type GeoJSONInput = turf.AllGeoJSON | GeoJSON | undefined | string; |
34 changes: 34 additions & 0 deletions
34
met-web/src/components/engagement/form/EngagementWidgets/Map/utils.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.