Skip to content

Commit

Permalink
Merge pull request #8 from SchoolOfCode/iconremover
Browse files Browse the repository at this point in the history
Iconremover
  • Loading branch information
Greedent82 authored Sep 25, 2024
2 parents 54b7878 + 9b2c127 commit 9171c48
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions baggit-app/src/app/components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ const locations = [
},
]

//fuck me, all that reading and it was literally a single array to add...
const mapStyles = [
{
featureType: "poi",
elementType: "labels",
stylers: [{ visibility: "off" }]
},
{
featureType: "transit",
elementType: "labels.icon",
stylers: [{ visibility: "off" }]
}
];

// This is the map container styling
const mapContainerStyle = {
width: '100%',
Expand Down Expand Up @@ -139,6 +153,7 @@ export default function MapApp() {
zoom={zoom}
onLoad={onLoad}
onUnmount={onUnmount}
options={{ styles: mapStyles, streetViewControl: false, zoomControl: false }} //pt2 of removing shit
>
{locations.map((location) => (
<Marker
Expand Down

0 comments on commit 9171c48

Please sign in to comment.