@angular/google-maps 17.3.4 → 17.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/map-advanced-marker/map-advanced-marker.mjs +5 -1
- package/esm2022/map-anchor-point.mjs +1 -1
- package/esm2022/map-info-window/map-info-window.mjs +14 -11
- package/fesm2022/google-maps.mjs +17 -10
- package/fesm2022/google-maps.mjs.map +1 -1
- package/index.d.ts +7 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -466,7 +466,7 @@ declare namespace i9 {
|
|
|
466
466
|
*
|
|
467
467
|
* See developers.google.com/maps/documentation/javascript/reference/marker
|
|
468
468
|
*/
|
|
469
|
-
export declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy {
|
|
469
|
+
export declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint {
|
|
470
470
|
private readonly _googleMap;
|
|
471
471
|
private _ngZone;
|
|
472
472
|
private _eventManager;
|
|
@@ -488,7 +488,7 @@ export declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy {
|
|
|
488
488
|
* Note: AdvancedMarkerElement does not clone the passed-in DOM element. Once the DOM element is passed to an AdvancedMarkerElement, passing the same DOM element to another AdvancedMarkerElement will move the DOM element and cause the previous AdvancedMarkerElement to look empty.
|
|
489
489
|
* See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.content
|
|
490
490
|
*/
|
|
491
|
-
set content(content: Node | google.maps.marker.PinElement);
|
|
491
|
+
set content(content: Node | google.maps.marker.PinElement | null);
|
|
492
492
|
private _content;
|
|
493
493
|
/**
|
|
494
494
|
* If true, the AdvancedMarkerElement can be dragged.
|
|
@@ -542,6 +542,7 @@ export declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy {
|
|
|
542
542
|
private _initialize;
|
|
543
543
|
ngOnChanges(changes: SimpleChanges): void;
|
|
544
544
|
ngOnDestroy(): void;
|
|
545
|
+
getAnchor(): google.maps.marker.AdvancedMarkerElement;
|
|
545
546
|
/** Creates a combined options object using the passed-in options and the individual inputs. */
|
|
546
547
|
private _combineOptions;
|
|
547
548
|
/** Asserts that the map has been initialized. */
|
|
@@ -553,7 +554,7 @@ export declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy {
|
|
|
553
554
|
|
|
554
555
|
/// <reference types="google.maps" />
|
|
555
556
|
export declare interface MapAnchorPoint {
|
|
556
|
-
getAnchor(): google.maps.MVCObject;
|
|
557
|
+
getAnchor(): google.maps.MVCObject | google.maps.marker.AdvancedMarkerElement;
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
export declare class MapBaseLayer implements OnInit, OnDestroy {
|
|
@@ -1055,13 +1056,15 @@ export declare class MapInfoWindow implements OnInit, OnDestroy {
|
|
|
1055
1056
|
getZIndex(): number;
|
|
1056
1057
|
/**
|
|
1057
1058
|
* Opens the MapInfoWindow using the provided AdvancedMarkerElement.
|
|
1059
|
+
* @deprecated Use the `open` method instead.
|
|
1060
|
+
* @breaking-change 20.0.0
|
|
1058
1061
|
*/
|
|
1059
1062
|
openAdvancedMarkerElement(advancedMarkerElement: google.maps.marker.AdvancedMarkerElement, content?: string | Element | Text): void;
|
|
1060
1063
|
/**
|
|
1061
1064
|
* Opens the MapInfoWindow using the provided anchor. If the anchor is not set,
|
|
1062
1065
|
* then the position property of the options input is used instead.
|
|
1063
1066
|
*/
|
|
1064
|
-
open(anchor?: MapAnchorPoint, shouldFocus?: boolean): void;
|
|
1067
|
+
open(anchor?: MapAnchorPoint, shouldFocus?: boolean, content?: string | Element | Text): void;
|
|
1065
1068
|
private _combineOptions;
|
|
1066
1069
|
private _watchForOptionsChanges;
|
|
1067
1070
|
private _watchForPositionChanges;
|