diff --git a/client/src/components/J40Map.module.scss b/client/src/components/J40Map.module.scss index a500ef7c..acdd97eb 100644 --- a/client/src/components/J40Map.module.scss +++ b/client/src/components/J40Map.module.scss @@ -26,3 +26,11 @@ overflow-y: auto; height: 90vh; } + +// This will control the height of the map when the device +// width is less than desktop (1024px) +.j40Map { + @include at-media-max("desktop") { + height: 55vh; + } +} \ No newline at end of file diff --git a/client/src/components/J40Map.module.scss.d.ts b/client/src/components/J40Map.module.scss.d.ts index 222f10c4..502b1205 100644 --- a/client/src/components/J40Map.module.scss.d.ts +++ b/client/src/components/J40Map.module.scss.d.ts @@ -8,6 +8,7 @@ declare namespace J40MapModuleScssNamespace { geolocateControl: string; detailView: string; mapInfoPanel: string; + j40Map: string; } } diff --git a/client/src/components/J40Map.tsx b/client/src/components/J40Map.tsx index 2c005ea6..516316ff 100644 --- a/client/src/components/J40Map.tsx +++ b/client/src/components/J40Map.tsx @@ -229,7 +229,7 @@ const J40Map = ({location}: IJ40Interface) => { return ( <> - + {/** * This will render the MapSearch component @@ -256,25 +256,28 @@ const J40Map = ({location}: IJ40Interface) => { * some children. */} { touchRotate={false} interactiveLayerIds={[constants.HIGH_ZOOM_LAYER_ID, constants.PRIORITIZED_HIGH_ZOOM_LAYER_ID]} - // Callback props: + + // ****** Callback props: ****** // http://visgl.github.io/react-map-gl/docs/api-reference/interactive-map#callbacks onViewportChange={setViewport} onClick={onClick} @@ -401,10 +405,10 @@ const J40Map = ({location}: IJ40Interface) => { )} {/* This will add the navigation controls of the zoom in and zoom out buttons */} - constants.USWDS_BREAKPOINTS.MOBILE_LG && + /> } {/* This places Geolocation behind a feature flag */} {'gl' in flags ? { - +
- No location found. Please try another location. + No location found. Please try again.