|
@@ -17,11 +17,7 @@ const MarkerItem = ({
|
|
|
token: string;
|
|
token: string;
|
|
|
}) => {
|
|
}) => {
|
|
|
const calloutRef = useRef<MapLibreRN.PointAnnotationRef>(null);
|
|
const calloutRef = useRef<MapLibreRN.PointAnnotationRef>(null);
|
|
|
- useEffect(() => {
|
|
|
|
|
- if (Platform.OS === 'android' && calloutRef.current) {
|
|
|
|
|
- calloutRef.current?.refresh();
|
|
|
|
|
- }
|
|
|
|
|
- }, [marker]);
|
|
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
{Platform.OS === 'ios' ? (
|
|
{Platform.OS === 'ios' ? (
|
|
@@ -74,6 +70,7 @@ const MarkerItem = ({
|
|
|
</MapLibreRN.PointAnnotation>
|
|
</MapLibreRN.PointAnnotation>
|
|
|
) : (
|
|
) : (
|
|
|
<MapLibreRN.PointAnnotation
|
|
<MapLibreRN.PointAnnotation
|
|
|
|
|
+ key={`${marker.id}-${marker.visited}`}
|
|
|
id="selected_marker_callout"
|
|
id="selected_marker_callout"
|
|
|
coordinate={marker.coordinates}
|
|
coordinate={marker.coordinates}
|
|
|
anchor={{ x: 0.5, y: 0.9 }}
|
|
anchor={{ x: 0.5, y: 0.9 }}
|