Skip to content

Commit

Permalink
feat: adding 'div'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugahnstn committed Oct 2, 2023
1 parent a3a58d6 commit b76cba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/SearchMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ export const SearchMap = ({ longitude, latitude }: SearchMapProps) => {
}, [longitude, latitude]);

return (
<div>
<Map
mapLib={import("mapbox-gl")}
initialViewState={{ ...viewPort }}
style={{ width: screenWidth, height: 420}}
mapStyle="mapbox://styles/mapbox/streets-v10"
mapboxAccessToken={import.meta.env.VITE_MAPBOX_TOKEN} />
</div>
);
};

0 comments on commit b76cba4

Please sign in to comment.