From 3fd0ccc4a433ec0a689ab3fe18896938096874a3 Mon Sep 17 00:00:00 2001 From: dleadbetter <> Date: Tue, 2 Apr 2024 10:39:23 -0400 Subject: [PATCH] Atlas #4 - Adding PlaceLayersSelector component; Updating OverlayLayers to allow GeoJSON data or URL --- packages/core-data/package.json | 3 +- .../core-data/src/components/OverlayLayers.js | 23 +- .../src/components/PlaceLayersSelector.js | 96 + packages/core-data/src/index.js | 1 + .../core-data/PlaceLayersSelector.stories.js | 61 + .../storybook/src/data/GeorgiaBorder.json | 2184 +++++++++++++++++ yarn.lock | 15 + 7 files changed, 2376 insertions(+), 7 deletions(-) create mode 100644 packages/core-data/src/components/PlaceLayersSelector.js create mode 100644 packages/storybook/src/core-data/PlaceLayersSelector.stories.js create mode 100644 packages/storybook/src/data/GeorgiaBorder.json diff --git a/packages/core-data/package.json b/packages/core-data/package.json index 00610f7f..a79c41ea 100644 --- a/packages/core-data/package.json +++ b/packages/core-data/package.json @@ -21,6 +21,7 @@ }, "dependencies": { "@radix-ui/react-accordion": "^1.1.2", + "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dropdown-menu": "^2.0.6", "@samvera/clover-iiif": "^2.3.2", @@ -56,4 +57,4 @@ "vite": "^5.1.4", "vite-plugin-copy": "^0.1.6" } -} \ No newline at end of file +} diff --git a/packages/core-data/src/components/OverlayLayers.js b/packages/core-data/src/components/OverlayLayers.js index 9db35614..df02dfd6 100644 --- a/packages/core-data/src/components/OverlayLayers.js +++ b/packages/core-data/src/components/OverlayLayers.js @@ -4,11 +4,17 @@ import { MapStyles } from '@performant-software/geospatial'; import { GeoJSONLayer, RasterLayer } from '@peripleo/maplibre'; import React from 'react'; import _ from 'underscore'; -import type { Layer as LayerType } from '../types/RuntimeConfig'; -interface OverlayLayerProps { - overlay: Layer; -} +type Layer = { + layer_type: string, + data?: { [key: string]: any }, + name: string, + url?: string +}; + +type OverlayLayerProps = { + overlay: Layer +}; const OverlayLayer = (props: OverlayLayerProps) => { const { overlay } = props; @@ -17,7 +23,7 @@ const OverlayLayer = (props: OverlayLayerProps) => { return ( ( - _.map(props.overlays, (overlay: any) => ) + _.map(props.overlays, (overlay: LayerType, index: number) => ( + + )) ); export default OverlayLayers; diff --git a/packages/core-data/src/components/PlaceLayersSelector.js b/packages/core-data/src/components/PlaceLayersSelector.js new file mode 100644 index 00000000..95a8aad7 --- /dev/null +++ b/packages/core-data/src/components/PlaceLayersSelector.js @@ -0,0 +1,96 @@ +// @flow + +import * as Checkbox from '@radix-ui/react-checkbox'; +import { CheckSquare2, Square } from 'lucide-react'; +import React, { useCallback, useState } from 'react'; +import _ from 'underscore'; +import OverlayLayers from './OverlayLayers'; +import type { Layer as LayerType } from '../types/RuntimeConfig'; + +type Props = { + label: string, + layers: Array +}; + +const PlaceLayersSelector = (props: Props) => { + const [selectedLayers, setSelectedLayers] = useState([]); + + /** + * Returns true if the passed ID is in the collection of selected IDs. + * + * @type {function(*): boolean} + */ + const isSelected = useCallback(({ name }) => _.findWhere(selectedLayers, { name }), [selectedLayers]); + + /** + * Toggles selection for the passed ID. + * + * @type {(function(*): void)|*} + */ + const onChange = useCallback((layer) => { + if (isSelected(layer)) { + setSelectedLayers((prevSelected) => _.filter(prevSelected, (l) => l.url !== layer.url)); + } else { + setSelectedLayers((prevSelected) => [...prevSelected, layer]); + } + }, [isSelected]); + + if (_.isEmpty(props.layers)) { + return null; + } + + return ( +
+ +

+ { props.label } +

+
    + { _.map(props.layers, (layer, index) => ( +
  • +
    + onChange(layer)} + > + { isSelected(layer) && ( + + )} + { !isSelected(layer) && ( + + )} + + +
    +
  • + ))} +
+
+ ); +}; + +export default PlaceLayersSelector; diff --git a/packages/core-data/src/index.js b/packages/core-data/src/index.js index 3355149a..cc160f8c 100644 --- a/packages/core-data/src/index.js +++ b/packages/core-data/src/index.js @@ -15,6 +15,7 @@ export { default as MediaGallery } from './components/MediaGallery'; export { default as OverlayLayers } from './components/OverlayLayers'; export { default as PersistentSearchStateContextProvider } from './components/PersistentSearchStateContextProvider'; export { default as PlaceDetails } from './components/PlaceDetails'; +export { default as PlaceLayersSelector } from './components/PlaceLayersSelector'; export { default as PlaceMarkers } from './components/PlaceMarkers'; export { default as PlaceResultsList } from './components/PlaceResultsList'; export { default as RefinementListProxy } from './components/RefinementListProxy'; diff --git a/packages/storybook/src/core-data/PlaceLayersSelector.stories.js b/packages/storybook/src/core-data/PlaceLayersSelector.stories.js new file mode 100644 index 00000000..1262f310 --- /dev/null +++ b/packages/storybook/src/core-data/PlaceLayersSelector.stories.js @@ -0,0 +1,61 @@ +// @flow + +import { Map, Zoom } from '@peripleo/maplibre'; +import { Controls, Peripleo } from '@peripleo/peripleo'; +import React from 'react'; +import LocationMarkers from '../../../geospatial/src/components/LocationMarkers'; +import mapStyle from '../data/MapStyles.json'; +import PlaceLayersSelector from '../../../core-data/src/components/PlaceLayersSelector'; +import data from '../data/GeorgiaBorder.json'; + +export default { + title: 'Components/Core Data/PlaceLayersSelector', + component: PlaceLayersSelector +}; + +export const Default = () => ( + + + + + +
+ +
+
+ +
+); diff --git a/packages/storybook/src/data/GeorgiaBorder.json b/packages/storybook/src/data/GeorgiaBorder.json new file mode 100644 index 00000000..7ae96378 --- /dev/null +++ b/packages/storybook/src/data/GeorgiaBorder.json @@ -0,0 +1,2184 @@ +{ + "_id": "georgia", + "type": "Feature", + "properties": { + "name": "Georgia", + "abbreviation": "GA", + "capital": "Atlanta", + "city": "Atlanta", + "population": 9992167, + "area": 153910, + "waterarea": 4950, + "landarea": 148958, + "houseseats": 14, + "statehood": "1788-01-02", + "group": "US States" + }, + "geometry": { + "coordinates": [ + [ + [ + -84.810477, + 34.987607 + ], + [ + -84.809184, + 34.987569 + ], + [ + -84.808127, + 34.987592 + ], + [ + -84.775852, + 34.9878 + ], + [ + -84.731022, + 34.988088 + ], + [ + -84.727434, + 34.98802 + ], + [ + -84.621483, + 34.988329 + ], + [ + -84.509886, + 34.98801 + ], + [ + -84.509052, + 34.988033 + ], + [ + -84.394903, + 34.98803 + ], + [ + -84.393935, + 34.988068 + ], + [ + -84.321869, + 34.988408 + ], + [ + -84.129555, + 34.987504 + ], + [ + -84.129455, + 34.987504 + ], + [ + -84.029954, + 34.987321 + ], + [ + -84.021357, + 34.98743 + ], + [ + -84.005457, + 34.98744 + ], + [ + -83.936646, + 34.987485 + ], + [ + -83.936413, + 34.987485 + ], + [ + -83.673621, + 34.987111 + ], + [ + -83.620185, + 34.992091 + ], + [ + -83.549381, + 34.992492 + ], + [ + -83.483064, + 34.993737 + ], + [ + -83.108714, + 35.000768 + ], + [ + -83.108535, + 35.000771 + ], + [ + -83.143261, + 34.924756 + ], + [ + -83.242962, + 34.877749 + ], + [ + -83.267293, + 34.832748 + ], + [ + -83.283151, + 34.821328 + ], + [ + -83.32406, + 34.788691 + ], + [ + -83.339129, + 34.741266 + ], + [ + -83.352422, + 34.716111 + ], + [ + -83.352485, + 34.715993 + ], + [ + -83.351392, + 34.714456 + ], + [ + -83.350976, + 34.713243 + ], + [ + -83.351293, + 34.701703 + ], + [ + -83.338194, + 34.687924 + ], + [ + -83.337867, + 34.687681 + ], + [ + -83.291683, + 34.653396 + ], + [ + -83.240669, + 34.624507 + ], + [ + -83.240676, + 34.624307 + ], + [ + -83.167523, + 34.600424 + ], + [ + -83.170978, + 34.598798 + ], + [ + -83.170278, + 34.592398 + ], + [ + -83.106874, + 34.534053 + ], + [ + -83.087189, + 34.515939 + ], + [ + -83.072746, + 34.504349 + ], + [ + -83.052161, + 34.493062 + ], + [ + -83.034712, + 34.483495 + ], + [ + -83.006848, + 34.474376 + ], + [ + -82.995284, + 34.474549 + ], + [ + -82.992671, + 34.479072 + ], + [ + -82.992215, + 34.479198 + ], + [ + -82.979568, + 34.482702 + ], + [ + -82.939067, + 34.486202 + ], + [ + -82.902665, + 34.485902 + ], + [ + -82.882864, + 34.479003 + ], + [ + -82.873831, + 34.471508 + ], + [ + -82.874864, + 34.468891 + ], + [ + -82.848651, + 34.423844 + ], + [ + -82.766078, + 34.293509 + ], + [ + -82.755028, + 34.276067 + ], + [ + -82.74198, + 34.230196 + ], + [ + -82.743461, + 34.227343 + ], + [ + -82.744415, + 34.224913 + ], + [ + -82.74192, + 34.210063 + ], + [ + -82.741491, + 34.208709 + ], + [ + -82.731881, + 34.178363 + ], + [ + -82.717507, + 34.150504 + ], + [ + -82.70414, + 34.141007 + ], + [ + -82.67732, + 34.131657 + ], + [ + -82.668113, + 34.12016 + ], + [ + -82.659077, + 34.103544 + ], + [ + -82.658561, + 34.103118 + ], + [ + -82.654019, + 34.100346 + ], + [ + -82.652175, + 34.099704 + ], + [ + -82.641252, + 34.088914 + ], + [ + -82.640701, + 34.088341 + ], + [ + -82.597079, + 34.01239 + ], + [ + -82.564582, + 33.95581 + ], + [ + -82.564483, + 33.955744 + ], + [ + -82.429164, + 33.865844 + ], + [ + -82.422803, + 33.863754 + ], + [ + -82.408354, + 33.86632 + ], + [ + -82.403881, + 33.865477 + ], + [ + -82.32448, + 33.820033 + ], + [ + -82.301457, + 33.801864 + ], + [ + -82.247472, + 33.752591 + ], + [ + -82.218649, + 33.686299 + ], + [ + -82.196583, + 33.630582 + ], + [ + -82.179854, + 33.615945 + ], + [ + -82.135046, + 33.591044 + ], + [ + -82.12908, + 33.589925 + ], + [ + -82.124841, + 33.591274 + ], + [ + -82.11663, + 33.589723 + ], + [ + -82.098816, + 33.586358 + ], + [ + -82.069039, + 33.575382 + ], + [ + -82.046335, + 33.56383 + ], + [ + -82.028238, + 33.544934 + ], + [ + -82.014293, + 33.530313 + ], + [ + -82.007638, + 33.523335 + ], + [ + -82.007138, + 33.522835 + ], + [ + -81.967037, + 33.480636 + ], + [ + -81.957934, + 33.468632 + ], + [ + -81.912572, + 33.408811 + ], + [ + -81.902737, + 33.331242 + ], + [ + -81.852136, + 33.247544 + ], + [ + -81.851975, + 33.247408 + ], + [ + -81.772251, + 33.18012 + ], + [ + -81.696934, + 33.116551 + ], + [ + -81.620287, + 33.095408 + ], + [ + -81.615756, + 33.092534 + ], + [ + -81.541831, + 33.045654 + ], + [ + -81.51169, + 33.024506 + ], + [ + -81.496637, + 33.010224 + ], + [ + -81.491495, + 32.998572 + ], + [ + -81.494736, + 32.978998 + ], + [ + -81.49983, + 32.963816 + ], + [ + -81.423772, + 32.810514 + ], + [ + -81.404949, + 32.747027 + ], + [ + -81.405134, + 32.744964 + ], + [ + -81.414761, + 32.63744 + ], + [ + -81.418431, + 32.634704 + ], + [ + -81.41866, + 32.629392 + ], + [ + -81.411906, + 32.61841 + ], + [ + -81.389338, + 32.595436 + ], + [ + -81.389258, + 32.595385 + ], + [ + -81.348155, + 32.569294 + ], + [ + -81.328753, + 32.561228 + ], + [ + -81.318255, + 32.559722 + ], + [ + -81.286776, + 32.544831 + ], + [ + -81.275415, + 32.539457 + ], + [ + -81.199029, + 32.467286 + ], + [ + -81.168032, + 32.368391 + ], + [ + -81.140932, + 32.349393 + ], + [ + -81.134332, + 32.341693 + ], + [ + -81.122333, + 32.305395 + ], + [ + -81.120333, + 32.285796 + ], + [ + -81.128034, + 32.276297 + ], + [ + -81.125457, + 32.22713 + ], + [ + -81.122034, + 32.161803 + ], + [ + -81.117234, + 32.117605 + ], + [ + -81.113334, + 32.113205 + ], + [ + -81.06185, + 32.087935 + ], + [ + -81.042833, + 32.084508 + ], + [ + -81.004115, + 32.072225 + ], + [ + -80.885517, + 32.0346 + ], + [ + -80.859111, + 32.023693 + ], + [ + -80.852276, + 32.026676 + ], + [ + -80.84313, + 32.024226 + ], + [ + -80.840549, + 32.011306 + ], + [ + -80.841913, + 32.002643 + ], + [ + -80.848441, + 31.988279 + ], + [ + -80.862814, + 31.969346 + ], + [ + -80.882814, + 31.959075 + ], + [ + -80.897687, + 31.949065 + ], + [ + -80.911207, + 31.943769 + ], + [ + -80.929101, + 31.944964 + ], + [ + -80.930279, + 31.956705 + ], + [ + -80.948491, + 31.95723 + ], + [ + -80.972392, + 31.94127 + ], + [ + -80.975714, + 31.923602 + ], + [ + -80.968494, + 31.915822 + ], + [ + -80.954469, + 31.911768 + ], + [ + -80.941359, + 31.912984 + ], + [ + -80.934508, + 31.90918 + ], + [ + -80.947294, + 31.89621 + ], + [ + -80.971434, + 31.877941 + ], + [ + -80.99269, + 31.857641 + ], + [ + -81.000317, + 31.856744 + ], + [ + -81.014478, + 31.867474 + ], + [ + -81.041548, + 31.876198 + ], + [ + -81.065255, + 31.877095 + ], + [ + -81.058596, + 31.857811 + ], + [ + -81.05907, + 31.850106 + ], + [ + -81.06279, + 31.84474 + ], + [ + -81.076178, + 31.836132 + ], + [ + -81.075812, + 31.829031 + ], + [ + -81.057181, + 31.822687 + ], + [ + -81.050946, + 31.822383 + ], + [ + -81.04794, + 31.824881 + ], + [ + -81.039808, + 31.823 + ], + [ + -81.036958, + 31.819558 + ], + [ + -81.036873, + 31.812721 + ], + [ + -81.047345, + 31.802865 + ], + [ + -81.068116, + 31.768735 + ], + [ + -81.077057, + 31.761256 + ], + [ + -81.097402, + 31.753126 + ], + [ + -81.130634, + 31.722692 + ], + [ + -81.138448, + 31.720934 + ], + [ + -81.154686, + 31.726203 + ], + [ + -81.16067, + 31.728144 + ], + [ + -81.192784, + 31.733245 + ], + [ + -81.198394, + 31.72607 + ], + [ + -81.203572, + 31.719448 + ], + [ + -81.186303, + 31.701509 + ], + [ + -81.161084, + 31.691401 + ], + [ + -81.154624, + 31.693874 + ], + [ + -81.151888, + 31.698411 + ], + [ + -81.149369, + 31.699304 + ], + [ + -81.139394, + 31.699917 + ], + [ + -81.131137, + 31.695774 + ], + [ + -81.135608, + 31.683491 + ], + [ + -81.136408, + 31.674832 + ], + [ + -81.131728, + 31.654484 + ], + [ + -81.133493, + 31.623348 + ], + [ + -81.14997, + 31.593476 + ], + [ + -81.160364, + 31.570436 + ], + [ + -81.173079, + 31.555908 + ], + [ + -81.178822, + 31.55553 + ], + [ + -81.183252, + 31.560058 + ], + [ + -81.186114, + 31.568032 + ], + [ + -81.19438, + 31.568101 + ], + [ + -81.204315, + 31.568183 + ], + [ + -81.214536, + 31.557601 + ], + [ + -81.240699, + 31.552313 + ], + [ + -81.254218, + 31.55594 + ], + [ + -81.260076, + 31.54828 + ], + [ + -81.263905, + 31.532579 + ], + [ + -81.263437, + 31.530932 + ], + [ + -81.258809, + 31.52906 + ], + [ + -81.217948, + 31.527284 + ], + [ + -81.213519, + 31.528152 + ], + [ + -81.199518, + 31.537596 + ], + [ + -81.193016, + 31.535833 + ], + [ + -81.181592, + 31.527697 + ], + [ + -81.17831, + 31.52241 + ], + [ + -81.177254, + 31.517074 + ], + [ + -81.189643, + 31.503588 + ], + [ + -81.204883, + 31.473124 + ], + [ + -81.246911, + 31.422784 + ], + [ + -81.258616, + 31.404425 + ], + [ + -81.278798, + 31.367214 + ], + [ + -81.279338, + 31.351127 + ], + [ + -81.282923, + 31.326491 + ], + [ + -81.274513, + 31.326237 + ], + [ + -81.268027, + 31.324218 + ], + [ + -81.25482, + 31.315452 + ], + [ + -81.260958, + 31.30391 + ], + [ + -81.269906, + 31.294489 + ], + [ + -81.274688, + 31.289454 + ], + [ + -81.276862, + 31.254734 + ], + [ + -81.282842, + 31.24433 + ], + [ + -81.289136, + 31.225487 + ], + [ + -81.288403, + 31.211065 + ], + [ + -81.293359, + 31.206332 + ], + [ + -81.304957, + 31.206173 + ], + [ + -81.314183, + 31.207938 + ], + [ + -81.339028, + 31.186918 + ], + [ + -81.35488, + 31.167204 + ], + [ + -81.360791, + 31.155903 + ], + [ + -81.359349, + 31.149166 + ], + [ + -81.368241, + 31.136534 + ], + [ + -81.38683, + 31.133214 + ], + [ + -81.399677, + 31.134113 + ], + [ + -81.402096, + 31.125383 + ], + [ + -81.403732, + 31.107115 + ], + [ + -81.401209, + 31.086143 + ], + [ + -81.401267, + 31.072781 + ], + [ + -81.415123, + 31.026718 + ], + [ + -81.420474, + 31.016703 + ], + [ + -81.424732, + 31.013678 + ], + [ + -81.432475, + 31.012991 + ], + [ + -81.43471, + 31.014641 + ], + [ + -81.434923, + 31.017804 + ], + [ + -81.44317, + 31.016661 + ], + [ + -81.451444, + 31.015515 + ], + [ + -81.457795, + 31.010259 + ], + [ + -81.45924, + 31.005692 + ], + [ + -81.469298, + 30.996028 + ], + [ + -81.490586, + 30.984952 + ], + [ + -81.493651, + 30.977528 + ], + [ + -81.486966, + 30.969602 + ], + [ + -81.475789, + 30.965976 + ], + [ + -81.472321, + 30.969899 + ], + [ + -81.466814, + 30.97091 + ], + [ + -81.453568, + 30.965573 + ], + [ + -81.447388, + 30.956732 + ], + [ + -81.426929, + 30.956615 + ], + [ + -81.420108, + 30.974076 + ], + [ + -81.415825, + 30.977192 + ], + [ + -81.408484, + 30.977718 + ], + [ + -81.403409, + 30.957914 + ], + [ + -81.405153, + 30.908203 + ], + [ + -81.428577, + 30.836336 + ], + [ + -81.430835, + 30.831156 + ], + [ + -81.44013, + 30.821369 + ], + [ + -81.446927, + 30.81039 + ], + [ + -81.455287, + 30.79093 + ], + [ + -81.460061, + 30.769912 + ], + [ + -81.461065, + 30.753684 + ], + [ + -81.45947, + 30.741979 + ], + [ + -81.449375, + 30.715601 + ], + [ + -81.444124, + 30.709714 + ], + [ + -81.544618, + 30.712636 + ], + [ + -81.606221, + 30.718135 + ], + [ + -81.624298, + 30.736194 + ], + [ + -81.637222, + 30.733835 + ], + [ + -81.719927, + 30.744634 + ], + [ + -81.732627, + 30.749934 + ], + [ + -81.741278, + 30.762681 + ], + [ + -81.759338, + 30.771377 + ], + [ + -81.806652, + 30.789683 + ], + [ + -81.827014, + 30.788933 + ], + [ + -81.840375, + 30.786384 + ], + [ + -81.868608, + 30.792754 + ], + [ + -81.906014, + 30.822176 + ], + [ + -81.999836, + 30.788348 + ], + [ + -82.023213, + 30.781987 + ], + [ + -82.050432, + 30.676266 + ], + [ + -82.049401, + 30.655296 + ], + [ + -82.037609, + 30.633271 + ], + [ + -82.01329, + 30.595665 + ], + [ + -82.005477, + 30.563495 + ], + [ + -82.01699, + 30.519358 + ], + [ + -82.016103, + 30.497355 + ], + [ + -82.050031, + 30.36249 + ], + [ + -82.050069, + 30.362338 + ], + [ + -82.124835, + 30.366564 + ], + [ + -82.165192, + 30.358035 + ], + [ + -82.171508, + 30.359869 + ], + [ + -82.189583, + 30.376213 + ], + [ + -82.204151, + 30.40133 + ], + [ + -82.210291, + 30.42459 + ], + [ + -82.20604, + 30.455507 + ], + [ + -82.21233, + 30.499558 + ], + [ + -82.214385, + 30.566958 + ], + [ + -82.214847, + 30.567009 + ], + [ + -82.249841, + 30.570863 + ], + [ + -82.2581, + 30.571559 + ], + [ + -82.287343, + 30.573458 + ], + [ + -82.374844, + 30.579004 + ], + [ + -82.418915, + 30.581745 + ], + [ + -82.459544, + 30.584272 + ], + [ + -82.459792, + 30.584287 + ], + [ + -82.524899, + 30.588189 + ], + [ + -82.536233, + 30.588885 + ], + [ + -82.545055, + 30.589361 + ], + [ + -82.553159, + 30.589934 + ], + [ + -82.565476, + 30.590622 + ], + [ + -82.569237, + 30.590965 + ], + [ + -82.584002, + 30.591796 + ], + [ + -82.689271, + 30.597719 + ], + [ + -82.689539, + 30.597734 + ], + [ + -82.698618, + 30.598232 + ], + [ + -82.698902, + 30.598271 + ], + [ + -82.877259, + 30.609024 + ], + [ + -82.878779, + 30.609082 + ], + [ + -83.136616, + 30.624346 + ], + [ + -83.15617, + 30.625504 + ], + [ + -83.163309, + 30.625895 + ], + [ + -83.174411, + 30.626444 + ], + [ + -83.187391, + 30.627223 + ], + [ + -83.256218, + 30.631279 + ], + [ + -83.309249, + 30.634405 + ], + [ + -83.30925, + 30.634405 + ], + [ + -83.309455, + 30.634417 + ], + [ + -83.311647, + 30.634577 + ], + [ + -83.340852, + 30.636336 + ], + [ + -83.341011, + 30.636346 + ], + [ + -83.357703, + 30.637359 + ], + [ + -83.37946, + 30.63868 + ], + [ + -83.390062, + 30.639333 + ], + [ + -83.429477, + 30.641519 + ], + [ + -83.429584, + 30.641496 + ], + [ + -83.440021, + 30.642023 + ], + [ + -83.448895, + 30.64241 + ], + [ + -83.611667, + 30.651255 + ], + [ + -83.61172, + 30.651258 + ], + [ + -83.674058, + 30.654747 + ], + [ + -83.676773, + 30.654905 + ], + [ + -83.743729, + 30.658396 + ], + [ + -83.810536, + 30.66188 + ], + [ + -83.820886, + 30.662612 + ], + [ + -83.855216, + 30.664412 + ], + [ + -83.88022, + 30.665832 + ], + [ + -83.880317, + 30.665807 + ], + [ + -84.007391, + 30.672097 + ], + [ + -84.007454, + 30.6721 + ], + [ + -84.039707, + 30.673819 + ], + [ + -84.04181, + 30.673878 + ], + [ + -84.046605, + 30.6742 + ], + [ + -84.057228, + 30.674705 + ], + [ + -84.083753, + 30.675954 + ], + [ + -84.28121, + 30.685256 + ], + [ + -84.282562, + 30.685316 + ], + [ + -84.380719, + 30.689673 + ], + [ + -84.535042, + 30.696523 + ], + [ + -84.53937, + 30.696775 + ], + [ + -84.606249, + 30.699872 + ], + [ + -84.606386, + 30.699865 + ], + [ + -84.863465, + 30.711487 + ], + [ + -84.864693, + 30.711542 + ], + [ + -84.896122, + 30.750591 + ], + [ + -84.941925, + 30.887988 + ], + [ + -84.959626, + 30.910587 + ], + [ + -84.983527, + 30.935486 + ], + [ + -84.998628, + 30.971386 + ], + [ + -85.002368, + 31.000682 + ], + [ + -84.999428, + 31.013843 + ], + [ + -85.022121, + 31.07548 + ], + [ + -85.029736, + 31.096163 + ], + [ + -85.035615, + 31.108192 + ], + [ + -85.076628, + 31.156927 + ], + [ + -85.083582, + 31.15963 + ], + [ + -85.092106, + 31.160293 + ], + [ + -85.100207, + 31.16549 + ], + [ + -85.107516, + 31.186451 + ], + [ + -85.111871, + 31.258388 + ], + [ + -85.101561, + 31.283362 + ], + [ + -85.087651, + 31.308677 + ], + [ + -85.068065, + 31.427586 + ], + [ + -85.046859, + 31.517451 + ], + [ + -85.041305, + 31.540987 + ], + [ + -85.057473, + 31.618624 + ], + [ + -85.059534, + 31.621717 + ], + [ + -85.065236, + 31.624351 + ], + [ + -85.087029, + 31.640966 + ], + [ + -85.12553, + 31.694965 + ], + [ + -85.12653, + 31.716764 + ], + [ + -85.12223, + 31.722764 + ], + [ + -85.11893, + 31.732664 + ], + [ + -85.124501, + 31.763081 + ], + [ + -85.12523, + 31.767063 + ], + [ + -85.130731, + 31.772263 + ], + [ + -85.138668, + 31.780425 + ], + [ + -85.141331, + 31.783163 + ], + [ + -85.141831, + 31.839861 + ], + [ + -85.132931, + 31.88826 + ], + [ + -85.10663, + 31.915159 + ], + [ + -85.08213, + 31.944658 + ], + [ + -85.07233, + 31.964758 + ], + [ + -85.062246, + 31.991857 + ], + [ + -85.050212, + 32.024196 + ], + [ + -85.056029, + 32.063055 + ], + [ + -85.047865, + 32.142033 + ], + [ + -84.995929, + 32.184852 + ], + [ + -84.964828, + 32.194952 + ], + [ + -84.923638, + 32.231539 + ], + [ + -84.92165, + 32.233306 + ], + [ + -84.909052, + 32.26354 + ], + [ + -84.916611, + 32.281177 + ], + [ + -84.93868, + 32.300708 + ], + [ + -85.001874, + 32.322015 + ], + [ + -85.007103, + 32.328362 + ], + [ + -85.008096, + 32.336677 + ], + [ + -84.987386, + 32.381201 + ], + [ + -84.987278, + 32.381623 + ], + [ + -84.979431, + 32.412244 + ], + [ + -84.983831, + 32.445643 + ], + [ + -84.998231, + 32.469842 + ], + [ + -85.000779, + 32.506548 + ], + [ + -85.00103, + 32.510157 + ], + [ + -85.001052, + 32.510477 + ], + [ + -85.001324, + 32.512973 + ], + [ + -85.0071, + 32.523868 + ], + [ + -85.022509, + 32.542923 + ], + [ + -85.044606, + 32.559499 + ], + [ + -85.069583, + 32.58393 + ], + [ + -85.079935, + 32.602889 + ], + [ + -85.080288, + 32.603577 + ], + [ + -85.082454, + 32.607022 + ], + [ + -85.10479, + 32.642542 + ], + [ + -85.114737, + 32.685634 + ], + [ + -85.137136, + 32.745168 + ], + [ + -85.136776, + 32.746512 + ], + [ + -85.13204, + 32.764211 + ], + [ + -85.123421, + 32.772248 + ], + [ + -85.184131, + 32.870525 + ], + [ + -85.221868, + 33.055538 + ], + [ + -85.223261, + 33.06258 + ], + [ + -85.232378, + 33.108077 + ], + [ + -85.236509, + 33.129562 + ], + [ + -85.293902, + 33.428079 + ], + [ + -85.304439, + 33.482884 + ], + [ + -85.313999, + 33.529807 + ], + [ + -85.314091, + 33.530218 + ], + [ + -85.314994, + 33.535898 + ], + [ + -85.322497, + 33.574167 + ], + [ + -85.337974, + 33.653111 + ], + [ + -85.360491, + 33.767958 + ], + [ + -85.361844, + 33.773951 + ], + [ + -85.386693, + 33.901697 + ], + [ + -85.398837, + 33.964129 + ], + [ + -85.421731, + 34.080821 + ], + [ + -85.455057, + 34.250689 + ], + [ + -85.455371, + 34.252854 + ], + [ + -85.458071, + 34.265736 + ], + [ + -85.458693, + 34.269437 + ], + [ + -85.462304, + 34.286365 + ], + [ + -85.502316, + 34.473954 + ], + [ + -85.502454, + 34.474527 + ], + [ + -85.508384, + 34.501212 + ], + [ + -85.512108, + 34.518252 + ], + [ + -85.513699, + 34.524133 + ], + [ + -85.513709, + 34.52417 + ], + [ + -85.51393, + 34.525192 + ], + [ + -85.527127, + 34.588684 + ], + [ + -85.534423, + 34.623789 + ], + [ + -85.541264, + 34.656701 + ], + [ + -85.541267, + 34.656783 + ], + [ + -85.552454, + 34.708138 + ], + [ + -85.552482, + 34.708321 + ], + [ + -85.583145, + 34.860371 + ], + [ + -85.595163, + 34.924171 + ], + [ + -85.595191, + 34.924331 + ], + [ + -85.605165, + 34.984678 + ], + [ + -85.474472, + 34.983972 + ], + [ + -85.363919, + 34.983375 + ], + [ + -85.308257, + 34.984375 + ], + [ + -85.305457, + 34.984475 + ], + [ + -85.301488, + 34.984475 + ], + [ + -85.2945, + 34.984651 + ], + [ + -85.277556, + 34.984975 + ], + [ + -85.275856, + 34.984975 + ], + [ + -85.265055, + 34.985075 + ], + [ + -85.254955, + 34.985175 + ], + [ + -85.235555, + 34.985475 + ], + [ + -85.230354, + 34.985475 + ], + [ + -85.221854, + 34.985475 + ], + [ + -85.220554, + 34.985575 + ], + [ + -85.217854, + 34.985675 + ], + [ + -85.216554, + 34.985675 + ], + [ + -85.185905, + 34.985995 + ], + [ + -85.180553, + 34.986075 + ], + [ + -85.045183, + 34.986883 + ], + [ + -85.045052, + 34.986859 + ], + [ + -84.97986, + 34.987647 + ], + [ + -84.976973, + 34.987669 + ], + [ + -84.955623, + 34.98783 + ], + [ + -84.94442, + 34.987864 + ], + [ + -84.939306, + 34.987916 + ], + [ + -84.861314, + 34.987791 + ], + [ + -84.858032, + 34.987746 + ], + [ + -84.831799, + 34.988004 + ], + [ + -84.82401, + 34.987707 + ], + [ + -84.820478, + 34.987913 + ], + [ + -84.817279, + 34.987753 + ], + [ + -84.810742, + 34.987615 + ], + [ + -84.810477, + 34.987607 + ] + ] + ], + "type": "Polygon" + } +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index dfe7dec4..1038b97e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2238,6 +2238,21 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-primitive" "1.0.3" +"@radix-ui/react-checkbox@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@radix-ui/react-checkbox/-/react-checkbox-1.0.4.tgz#98f22c38d5010dd6df4c5744cac74087e3275f4b" + integrity sha512-CBuGQa52aAYnADZVt/KBQzXrwx6TqnlwtcIPGtVt5JkkzQwMOLJjPukimhfKEr4GQNd43C+djUh5Ikopj8pSLg== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/primitive" "1.0.1" + "@radix-ui/react-compose-refs" "1.0.1" + "@radix-ui/react-context" "1.0.1" + "@radix-ui/react-presence" "1.0.1" + "@radix-ui/react-primitive" "1.0.3" + "@radix-ui/react-use-controllable-state" "1.0.1" + "@radix-ui/react-use-previous" "1.0.1" + "@radix-ui/react-use-size" "1.0.1" + "@radix-ui/react-collapsible@1.0.3", "@radix-ui/react-collapsible@^1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@radix-ui/react-collapsible/-/react-collapsible-1.0.3.tgz#df0e22e7a025439f13f62d4e4a9e92c4a0df5b81"