upd
This commit is contained in:
@@ -21,13 +21,14 @@ export default function MapMarker({
|
||||
<AdvancedMarker
|
||||
onClick={() => {
|
||||
map?.panTo(poi.location);
|
||||
map?.setZoom(15);
|
||||
map?.setZoom(17);
|
||||
}}
|
||||
key={markerKey}
|
||||
position={poi.location}
|
||||
ref={(marker) =>
|
||||
!poi.ignoreClusterization && setMarkerRef(marker, markerKey.toString())
|
||||
}
|
||||
ref={(marker) => {
|
||||
if (!poi.ignoreClusterization)
|
||||
setMarkerRef(marker, markerKey.toString());
|
||||
}}
|
||||
>
|
||||
<Pin
|
||||
background={"transparent"}
|
||||
@@ -35,10 +36,7 @@ export default function MapMarker({
|
||||
borderColor={"transparent"}
|
||||
scale={poi.clickableAreaScale || 1}
|
||||
>
|
||||
<>
|
||||
{children}
|
||||
<span className={`text-black text-center opacity-[1]`}></span>
|
||||
</>
|
||||
<>{children}</>
|
||||
</Pin>
|
||||
</AdvancedMarker>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user