Skip to content

Commit

Permalink
chore(map): update marker pins (#4033)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 authored Feb 20, 2024
1 parent 13fc6c6 commit a69940f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/map/components/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ type MapComponentProps = {
mapData: BusinessMapMarkersQuery["businessMapMarkers"]
googleMapsApiKey: string
}
const DEFAULT_LAT = 13.7942
const DEFAULT_LNG = -88.8965
const DEFAULT_LAT = 8.046367244910527
const DEFAULT_LNG = -45.043000891414344

export default function MapComponent({ mapData, googleMapsApiKey }: MapComponentProps) {
const mapRef = useRef<google.maps.Map>()
Expand Down Expand Up @@ -243,21 +243,13 @@ export default function MapComponent({ mapData, googleMapsApiKey }: MapComponent
<GoogleMap
onLoad={onMapLoad}
options={mapOptions}
zoom={14}
zoom={4}
center={currentLocation.coordinates}
mapTypeId={google.maps.MapTypeId.ROADMAP}
mapContainerStyle={{ height: "100%", width: "100%" }}
>
{mapData.map((marker, index) => (
<MarkerF
icon={{
path: "M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z",
fillColor: "#FEBE13",
fillOpacity: 0.8,
strokeWeight: 2,
strokeColor: "gold",
scale: 0.8,
}}
key={index}
position={{
lat: marker.mapInfo.coordinates.latitude,
Expand Down Expand Up @@ -313,6 +305,14 @@ export default function MapComponent({ mapData, googleMapsApiKey }: MapComponent
position={draggablePin.coordinates}
draggable={true}
onDragEnd={handleDragEnd}
icon={{
path: "M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z",
fillColor: "#FEBE13",
fillOpacity: 0.8,
strokeWeight: 2,
strokeColor: "gold",
scale: 0.8,
}}
/>
)}
</GoogleMap>
Expand Down

0 comments on commit a69940f

Please sign in to comment.