when i call this first time for dropping the image in the map then is show me error InvalidValueError: setIcon: not a string; and should be a PinView; and no url property; and no path property . this is come when is call import React from "react";
import { Marker } from "@react-google-maps/api";
when i call this first time for dropping the image in the map then is show me error InvalidValueError: setIcon: not a string; and should be a PinView; and no url property; and no path property . this is come when is call import React from "react"; import { Marker } from "@react-google-maps/api";
const DraggableMarker = ({ gatePosition, gateImage, handleGateDrag, handleGateDrop, gateId, rotation, }) => { // console.log("gate image" , pos) const onDragEnd = (e) => { const newLat = e.latLng.lat(); const newLng = e.latLng.lng(); handleGateDrop({ lat: newLat, lng: newLng }, gateId); };
const onDrag = (e) => { const newLat = e.latLng.lat(); const newLng = e.latLng.lng(); handleGateDrag({ lat: newLat, lng: newLng }); };
return (
); };
export default DraggableMarker; can any resolv this