Skip to content

Commit

Permalink
fix: PinElement registered as WebComponent (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink authored Oct 16, 2023
1 parent 5436195 commit d40c6bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/drawing/advanced-marker-element/pin-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
import { MapsEventListener } from "../../maps/event/event";
import { __registerMockInstance } from "../../registry";

export class PinElement implements google.maps.marker.PinElement {
export class PinElement
extends HTMLElement
implements google.maps.marker.PinElement
{
public background?: string;
public borderColor?: string;
public element: HTMLElement;
Expand All @@ -37,6 +40,8 @@ export class PinElement implements google.maps.marker.PinElement {
);

constructor(options?: google.maps.marker.PinElementOptions) {
super();
__registerMockInstance(this.constructor, this);
}
}
customElements.define("gmp-pin", PinElement);

0 comments on commit d40c6bf

Please sign in to comment.