react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

Missing event type KmlMouseEvent

Open tichaelmurvey opened this issue 10 months ago • 1 comments

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;
  }

tichaelmurvey avatar Jan 20 '25 16:01 tichaelmurvey

Please provide a PR and I will merge

JustFly1984 avatar Jan 30 '25 03:01 JustFly1984