Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing event type KmlMouseEvent #3402

Open
tichaelmurvey opened this issue Jan 20, 2025 · 1 comment
Open

Missing event type KmlMouseEvent #3402

tichaelmurvey opened this issue Jan 20, 2025 · 1 comment

Comments

@tichaelmurvey
Copy link

tichaelmurvey commented Jan 20, 2025

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;
  }
@JustFly1984
Copy link
Owner

Please provide a PR and I will merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants