Skip to content

Commit

Permalink
fix: fixing what happened with the merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneymeza committed Dec 7, 2023
1 parent 8556d94 commit 3f493ac
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 62 deletions.
103 changes: 50 additions & 53 deletions front/src/components/Maps/MapBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -425,66 +425,63 @@ function MapBox(props: MapBoxprops) {
}

return (
<div className="maps-items">
<div className="left">
<RadioButtonGroup onChange={swtichVisibility}/>
</div>
<div className="right">
{/* <MapsHistory history={props.history} mode={props.mode}/> */}
<div className="side-panel">
<div className="maps">
<div className="maps-items">
<div className="left">
<RadioButtonGroup onChange={swtichVisibility} />
</div>

</div>
</div>
<div className="mapbox-container" aria-label="Map Container">
<Map
mapboxAccessToken={ACCESS_TOKEN}
{...viewState}
// for moving the map
onMove={(ev: ViewStateChangeEvent) => setViewState(ev.viewState)}
// theme of map
mapStyle={"mapbox://styles/mapbox/streets-v12"}
onClick={(ev: MapLayerMouseEvent) => onMapClick(ev)}
onMouseMove={(ev: MapLayerMouseEvent) => onMouseMove(ev)}
onMouseOut={(ev: MapLayerMouseEvent) => onMouseOut(ev)}
ref={mapRef}
>
<Source id="geo_data" type="geojson" data={overlay}>
<Layer
id={geoLayer.id}
type={geoLayer.type}
paint={geoLayer.paint}
layout={visibilityOne} />
</Source>
<Source id="search_data" type="geojson" data={searchOverlay}>
<Layer
id={searchLayer.id}
type={searchLayer.type}
paint={searchLayer.paint}
layout={visibilityTwo} />
</Source>
<Source id="county-data" type="vector" url={TILESET_ID}>
<Layer {...countyLayer} />
<Layer
{...hoverCountyLayer}
filter={hoverArray}
/>
<Layer
{...selectedCountyLayer}
filter={filterArray}
/>
</Source>
{/* <Popup
<div className="mapbox-container center" aria-label="Map Container">
<Map
mapboxAccessToken={ACCESS_TOKEN}
{...viewState}
// for moving the map
onMove={(ev: ViewStateChangeEvent) => setViewState(ev.viewState)}
// theme of map
mapStyle={"mapbox://styles/mapbox/streets-v12"}
onClick={(ev: MapLayerMouseEvent) => onMapClick(ev)}
onMouseMove={(ev: MapLayerMouseEvent) => onMouseMove(ev)}
onMouseOut={(ev: MapLayerMouseEvent) => onMouseOut(ev)}
ref={mapRef}
>
<Source id="geo_data" type="geojson" data={overlay}>
<Layer
id={geoLayer.id}
type={geoLayer.type}
paint={geoLayer.paint}
layout={visibilityOne}
/>
</Source>
<Source id="search_data" type="geojson" data={searchOverlay}>
<Layer
id={searchLayer.id}
type={searchLayer.type}
paint={searchLayer.paint}
layout={visibilityTwo}
/>
</Source>
<Source id="county-data" type="vector" url={TILESET_ID}>
<Layer {...countyLayer} />
<Layer {...hoverCountyLayer} filter={hoverArray} />
<Layer {...selectedCountyLayer} filter={filterArray} />
</Source>
{/* <Popup
longitude={popupCoords.long}
latitude={popupCoords.lat}
closeOnClick={false}
>
Long: {popupCoords.long} <br></br> Lat: {popupCoords.lat}
</Popup> */}
</Map>
<div id="county-overlay" className="county-overlay"></div>
</div>
<div className={classVisible}>
<p className={notificationColor}>{searchNotiText}</p>
</Map>
<div id="county-overlay" className="county-overlay"></div>
</div>
<div className={classVisible}>
<p className={notificationColor}>{searchNotiText}</p>
</div>
<div className="right">
<MapsHistory history={props.history} mode={props.mode} />
<div className="side-panel"></div>
</div>
</div>
<div className="bottom">
<div className="maps-input">
Expand Down
15 changes: 6 additions & 9 deletions front/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.maps-history {
/* margin: auto; */
display: flex;
/* overflow: scroll; */
overflow: scroll;
justify-content: center;
height: 60vh;
}
Expand All @@ -44,11 +44,9 @@
padding-left: 1.5%;
width: 500px;
display: flex;
/* overflow: scroll; */
overflow: scroll;
justify-content: center;
align-items: center;
width: 30vh;
float: right;
}

.bottom{
Expand Down Expand Up @@ -117,7 +115,6 @@ td {
width: 800px;
overflow: auto;
border: 2px solid #FFC0CB;
margin-bottom: 10vh;
}


Expand Down Expand Up @@ -351,21 +348,21 @@ input[type="radio"]:focus {
/* z-index: 1; */
}

.side-panel {
/* .side-panel {
position: relative;
top: 0;
bottom: 0;
left: -300px;
height: 65vh;
width: 100vh;
margin-bottom: 14.5vh;
display: flex;
display: flex; */
/* overflow: scroll; */
justify-content: center;
/* justify-content: center;
background-color: #FFFFFF;
border: 2px solid #FFC0CB;
margin-left: 10vh;
}
} */

.error-notification {
color: red;
Expand Down

0 comments on commit 3f493ac

Please sign in to comment.