This commit is contained in:
Alireza Adli 2023-10-19 14:42:31 -04:00
parent e1354cbc66
commit 06186b6cc9
2 changed files with 3 additions and 9 deletions

View File

@ -23,14 +23,8 @@ export function CityMap() {
}, []); }, []);
return ( return (
<div> <div className="map-container">
<head> <div id="map" style={{ width: '300px', height: '100vh' }}></div>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js'></script>
</head>
<div className="map-container">
<div id="map" style={{ width: '300px', height: '100vh' }}></div>
</div>
</div> </div>
); );
} }

View File

@ -8,7 +8,7 @@
@media (min-width: 990px) { @media (min-width: 990px) {
.map-container { .map-container {
top: 0; top: 0;
left: 470px; left: 0px;
} }
} }
.leaflet-container { .leaflet-container {