react-google-maps-api
react-google-maps-api copied to clipboard
Missing event type KmlMouseEvent
Please forgive any incorrect terminology as I am new to TS.
The KmlMouseEvent type is not associated with the onClick prop for the KmlLayer component, and is not defined elsewhere. KmlLayer returns a KmlMouseEvent when clicked.
Here is the interface from the Google Maps API types:
export interface KmlMouseEvent {
/**
* A <code>KmlFeatureData</code> object, containing information about the
* clicked feature.
*/
featureData: google.maps.KmlFeatureData | null;
/**
* The position at which to anchor an infowindow on the clicked feature.
*/
latLng: google.maps.LatLng | null;
/**
* The offset to apply to an infowindow anchored on the clicked feature.
*/
pixelOffset: google.maps.Size | null;
}
Please provide a PR and I will merge