diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-16 14:31:09 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-16 14:31:09 +0700 |
| commit | cf76c139519b8fda880969e151928c203538fd69 (patch) | |
| tree | 93cb02814b028355839c2465ea20639eaec62973 /src/lib/maps/components | |
| parent | 91b73f89b35874df3e0b88c67cf906df06965782 (diff) | |
<Miqdad> Fix Map
Diffstat (limited to 'src/lib/maps/components')
| -rw-r--r-- | src/lib/maps/components/PinPointMap.jsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/maps/components/PinPointMap.jsx b/src/lib/maps/components/PinPointMap.jsx index f89e6e75..75ab1d59 100644 --- a/src/lib/maps/components/PinPointMap.jsx +++ b/src/lib/maps/components/PinPointMap.jsx @@ -64,6 +64,7 @@ const PinpointLocation = ({ return component ? component.long_name : ''; }; + // fill from pin point const getAddress = async (lat, lng) => { try { const response = await fetch( @@ -76,10 +77,10 @@ const PinpointLocation = ({ const formattedAddress = data.results[0].formatted_address; const details = { - street: - getAddressComponent(addressComponents, 'route') + - ' ' + - getAddressComponent(addressComponents, 'street_number'), + // street: + // getAddressComponent(addressComponents, 'route') + + // ' ' + + // getAddressComponent(addressComponents, 'street_number'), province: getAddressComponent( addressComponents, 'administrative_area_level_1' |
