Socket
Socket
Sign inDemoInstall

@angular/google-maps

Package Overview
Dependencies
Maintainers
2
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/google-maps - npm Package Compare versions

Comparing version 9.1.1 to 9.1.2

25

bundles/google-maps.umd.min.js

@@ -1,2 +0,16 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("tslib"),require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/google-maps",["exports","tslib","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e(((t=t||self).ng=t.ng||{},t.ng.googleMaps={}),t.tslib,t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,i,o,r){"use strict";
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/google-maps",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e(((t=t||self).ng=t.ng||{},t.ng.googleMaps={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,i,o){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var r=function(){return(r=Object.assign||function t(e){for(var n,i=1,o=arguments.length;i<o;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}
/**

@@ -8,3 +22,4 @@ * @license

* found in the LICENSE file at https://angular.io/license
*/var a=function(){function t(t){this._ngZone=t,this._pending=[],this._listeners=[]}return t.prototype._clearListeners=function(){var t,n;try{for(var i=e.__values(this._listeners),o=i.next();!o.done;o=i.next())o.value.remove()}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this._listeners=[]},t.prototype.getLazyEmitter=function(t){var e=this,n=new o.Observable((function(i){if(e._target){var o=e._target.addListener(t,(function(t){e._ngZone.run((function(){return i.next(t)}))}));return e._listeners.push(o),function(){return o.remove()}}e._pending.push({observable:n,observer:i})}));return n},t.prototype.setTarget=function(t){t!==this._target&&(this._target&&(this._clearListeners(),this._pending=[]),this._target=t,this._pending.forEach((function(t){return t.observable.subscribe(t.observer)})),this._pending=[])},t.prototype.destroy=function(){this._clearListeners(),this._pending=[],this._target=void 0},t}(),s={center:{lat:37.421995,lng:-122.084092},zoom:17},p="500px",g="500px",u=function(){function t(t,e,n){if(this._elementRef=t,this._ngZone=e,this._eventManager=new a(this._ngZone),this._options=new o.BehaviorSubject(s),this._center=new o.BehaviorSubject(void 0),this._zoom=new o.BehaviorSubject(void 0),this._destroy=new o.Subject,this.height=p,this.width=g,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=n?i.isPlatformBrowser(n):"object"==typeof window&&!!window,this._isBrowser&&!window.google)throw Error("Namespace google not found, cannot construct embedded google map. Please install the Google Maps JavaScript API: https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API")}return Object.defineProperty(t.prototype,"center",{set:function(t){this._center.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoom",{set:function(t){this._zoom.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||s)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._setSize()},t.prototype.ngOnInit=function(){var t=this;this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._googleMapChanges=this._initializeMap(this._combineOptions()),this._googleMapChanges.subscribe((function(e){t._googleMap=e,t._eventManager.setTarget(t._googleMap)})),this._watchForOptionsChanges(),this._watchForCenterChanges(),this._watchForZoomChanges())},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete()},t.prototype.fitBounds=function(t,e){this._assertInitialized(),this._googleMap.fitBounds(t,e)},t.prototype.panBy=function(t,e){this._assertInitialized(),this._googleMap.panBy(t,e)},t.prototype.panTo=function(t){this._assertInitialized(),this._googleMap.panTo(t)},t.prototype.panToBounds=function(t,e){this._assertInitialized(),this._googleMap.panToBounds(t,e)},t.prototype.getBounds=function(){return this._assertInitialized(),this._googleMap.getBounds()||null},t.prototype.getCenter=function(){return this._assertInitialized(),this._googleMap.getCenter()},t.prototype.getClickableIcons=function(){return this._assertInitialized(),this._googleMap.getClickableIcons()},t.prototype.getHeading=function(){return this._assertInitialized(),this._googleMap.getHeading()},t.prototype.getMapTypeId=function(){return this._assertInitialized(),this._googleMap.getMapTypeId()},t.prototype.getProjection=function(){return this._assertInitialized(),this._googleMap.getProjection()},t.prototype.getStreetView=function(){return this._assertInitialized(),this._googleMap.getStreetView()},t.prototype.getTilt=function(){return this._assertInitialized(),this._googleMap.getTilt()},t.prototype.getZoom=function(){return this._assertInitialized(),this._googleMap.getZoom()},Object.defineProperty(t.prototype,"controls",{get:function(){return this._assertInitialized(),this._googleMap.controls},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._assertInitialized(),this._googleMap.data},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mapTypes",{get:function(){return this._assertInitialized(),this._googleMap.mapTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayMapTypes",{get:function(){return this._assertInitialized(),this._googleMap.overlayMapTypes},enumerable:!0,configurable:!0}),t.prototype._setSize=function(){if(this._mapEl){var t=this._mapEl.style;t.height=l(this.height)||p,t.width=l(this.width)||g}},t.prototype._combineOptions=function(){return o.combineLatest([this._options,this._center,this._zoom]).pipe(r.map((function(t){var n=e.__read(t,3),i=n[0],o=n[1],r=n[2];return e.__assign(e.__assign({},i),{center:o||i.center,zoom:void 0!==r?r:i.zoom})})))},t.prototype._initializeMap=function(t){var e=this;return t.pipe(r.take(1),r.map((function(t){return e._ngZone.runOutsideAngular((function(){return new google.maps.Map(e._mapEl,t)}))})),r.shareReplay(1))},t.prototype._watchForOptionsChanges=function(){o.combineLatest([this._googleMapChanges,this._options]).pipe(r.takeUntil(this._destroy)).subscribe((function(t){var n=e.__read(t,2);n[0].setOptions(n[1])}))},t.prototype._watchForCenterChanges=function(){o.combineLatest([this._googleMapChanges,this._center]).pipe(r.takeUntil(this._destroy)).subscribe((function(t){var n=e.__read(t,2),i=n[1];i&&n[0].setCenter(i)}))},t.prototype._watchForZoomChanges=function(){o.combineLatest([this._googleMapChanges,this._zoom]).pipe(r.takeUntil(this._destroy)).subscribe((function(t){var n=e.__read(t,2),i=n[1];void 0!==i&&n[0].setZoom(i)}))},t.prototype._assertInitialized=function(){if(!this._googleMap)throw Error("Cannot access Google Map information before the API has been initialized. Please wait for the API to load before trying to interact with it.")},t.decorators=[{type:n.Component,args:[{selector:"google-map",changeDetection:n.ChangeDetectionStrategy.OnPush,template:'<div class="map-container"></div><ng-content></ng-content>',encapsulation:n.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:Object,decorators:[{type:n.Optional},{type:n.Inject,args:[n.PLATFORM_ID]}]}]},t.propDecorators={height:[{type:n.Input}],width:[{type:n.Input}],center:[{type:n.Input}],zoom:[{type:n.Input}],options:[{type:n.Input}],boundsChanged:[{type:n.Output}],centerChanged:[{type:n.Output}],mapClick:[{type:n.Output}],mapDblclick:[{type:n.Output}],mapDrag:[{type:n.Output}],mapDragend:[{type:n.Output}],mapDragstart:[{type:n.Output}],headingChanged:[{type:n.Output}],idle:[{type:n.Output}],maptypeidChanged:[{type:n.Output}],mapMousemove:[{type:n.Output}],mapMouseout:[{type:n.Output}],mapMouseover:[{type:n.Output}],projectionChanged:[{type:n.Output}],mapRightclick:[{type:n.Output}],tilesloaded:[{type:n.Output}],tiltChanged:[{type:n.Output}],zoomChanged:[{type:n.Output}]},t}(),h=/([A-Za-z%]+)$/;
*/
var s=function(){function t(t){this._ngZone=t,this._pending=[],this._listeners=[]}return t.prototype._clearListeners=function(){var t,e;try{for(var n=function i(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(this._listeners),o=n.next();!o.done;o=n.next())o.value.remove()}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this._listeners=[]},t.prototype.getLazyEmitter=function(t){var e=this,n=new i.Observable((function(i){if(e._target){var o=e._target.addListener(t,(function(t){e._ngZone.run((function(){return i.next(t)}))}));return e._listeners.push(o),function(){return o.remove()}}e._pending.push({observable:n,observer:i})}));return n},t.prototype.setTarget=function(t){t!==this._target&&(this._target&&(this._clearListeners(),this._pending=[]),this._target=t,this._pending.forEach((function(t){return t.observable.subscribe(t.observer)})),this._pending=[])},t.prototype.destroy=function(){this._clearListeners(),this._pending=[],this._target=void 0},t}(),p={center:{lat:37.421995,lng:-122.084092},zoom:17},g="500px",u="500px",h=function(){function t(t,e,o){if(this._elementRef=t,this._ngZone=e,this._eventManager=new s(this._ngZone),this._options=new i.BehaviorSubject(p),this._center=new i.BehaviorSubject(void 0),this._zoom=new i.BehaviorSubject(void 0),this._destroy=new i.Subject,this.height=g,this.width=u,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=o?n.isPlatformBrowser(o):"object"==typeof window&&!!window,this._isBrowser&&!window.google)throw Error("Namespace google not found, cannot construct embedded google map. Please install the Google Maps JavaScript API: https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API")}return Object.defineProperty(t.prototype,"center",{set:function(t){this._center.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoom",{set:function(t){this._zoom.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||p)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._setSize()},t.prototype.ngOnInit=function(){var t=this;this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._googleMapChanges=this._initializeMap(this._combineOptions()),this._googleMapChanges.subscribe((function(e){t._googleMap=e,t._eventManager.setTarget(t._googleMap)})),this._watchForOptionsChanges(),this._watchForCenterChanges(),this._watchForZoomChanges())},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete()},t.prototype.fitBounds=function(t,e){this._assertInitialized(),this._googleMap.fitBounds(t,e)},t.prototype.panBy=function(t,e){this._assertInitialized(),this._googleMap.panBy(t,e)},t.prototype.panTo=function(t){this._assertInitialized(),this._googleMap.panTo(t)},t.prototype.panToBounds=function(t,e){this._assertInitialized(),this._googleMap.panToBounds(t,e)},t.prototype.getBounds=function(){return this._assertInitialized(),this._googleMap.getBounds()||null},t.prototype.getCenter=function(){return this._assertInitialized(),this._googleMap.getCenter()},t.prototype.getClickableIcons=function(){return this._assertInitialized(),this._googleMap.getClickableIcons()},t.prototype.getHeading=function(){return this._assertInitialized(),this._googleMap.getHeading()},t.prototype.getMapTypeId=function(){return this._assertInitialized(),this._googleMap.getMapTypeId()},t.prototype.getProjection=function(){return this._assertInitialized(),this._googleMap.getProjection()},t.prototype.getStreetView=function(){return this._assertInitialized(),this._googleMap.getStreetView()},t.prototype.getTilt=function(){return this._assertInitialized(),this._googleMap.getTilt()},t.prototype.getZoom=function(){return this._assertInitialized(),this._googleMap.getZoom()},Object.defineProperty(t.prototype,"controls",{get:function(){return this._assertInitialized(),this._googleMap.controls},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._assertInitialized(),this._googleMap.data},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mapTypes",{get:function(){return this._assertInitialized(),this._googleMap.mapTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayMapTypes",{get:function(){return this._assertInitialized(),this._googleMap.overlayMapTypes},enumerable:!0,configurable:!0}),t.prototype._setSize=function(){if(this._mapEl){var t=this._mapEl.style;t.height=c(this.height)||g,t.width=c(this.width)||u}},t.prototype._combineOptions=function(){return i.combineLatest([this._options,this._center,this._zoom]).pipe(o.map((function(t){var e=a(t,3),n=e[0],i=e[1],o=e[2];return r(r({},n),{center:i||n.center,zoom:void 0!==o?o:n.zoom})})))},t.prototype._initializeMap=function(t){var e=this;return t.pipe(o.take(1),o.map((function(t){return e._ngZone.runOutsideAngular((function(){return new google.maps.Map(e._mapEl,t)}))})),o.shareReplay(1))},t.prototype._watchForOptionsChanges=function(){i.combineLatest([this._googleMapChanges,this._options]).pipe(o.takeUntil(this._destroy)).subscribe((function(t){var e=a(t,2);e[0].setOptions(e[1])}))},t.prototype._watchForCenterChanges=function(){i.combineLatest([this._googleMapChanges,this._center]).pipe(o.takeUntil(this._destroy)).subscribe((function(t){var e=a(t,2),n=e[1];n&&e[0].setCenter(n)}))},t.prototype._watchForZoomChanges=function(){i.combineLatest([this._googleMapChanges,this._zoom]).pipe(o.takeUntil(this._destroy)).subscribe((function(t){var e=a(t,2),n=e[1];void 0!==n&&e[0].setZoom(n)}))},t.prototype._assertInitialized=function(){if(!this._googleMap)throw Error("Cannot access Google Map information before the API has been initialized. Please wait for the API to load before trying to interact with it.")},t.decorators=[{type:e.Component,args:[{selector:"google-map",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<div class="map-container"></div><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:Object,decorators:[{type:e.Optional},{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t.propDecorators={height:[{type:e.Input}],width:[{type:e.Input}],center:[{type:e.Input}],zoom:[{type:e.Input}],options:[{type:e.Input}],boundsChanged:[{type:e.Output}],centerChanged:[{type:e.Output}],mapClick:[{type:e.Output}],mapDblclick:[{type:e.Output}],mapDrag:[{type:e.Output}],mapDragend:[{type:e.Output}],mapDragstart:[{type:e.Output}],headingChanged:[{type:e.Output}],idle:[{type:e.Output}],maptypeidChanged:[{type:e.Output}],mapMousemove:[{type:e.Output}],mapMouseout:[{type:e.Output}],mapMouseover:[{type:e.Output}],projectionChanged:[{type:e.Output}],mapRightclick:[{type:e.Output}],tilesloaded:[{type:e.Output}],tiltChanged:[{type:e.Output}],zoomChanged:[{type:e.Output}]},t}(),l=/([A-Za-z%]+)$/;
/**

@@ -16,3 +31,3 @@ * @license

* found in the LICENSE file at https://angular.io/license
*/function l(t){return null==t?"":h.test(t)?t:t+"px"}
*/function c(t){return null==t?"":l.test(t)?t:t+"px"}
/**

@@ -24,3 +39,3 @@ * @license

* found in the LICENSE file at https://angular.io/license
*/var c=function(){function t(t,e,n){this._googleMap=t,this._elementRef=e,this._ngZone=n,this._eventManager=new a(this._ngZone),this._options=new o.BehaviorSubject({}),this._position=new o.BehaviorSubject(void 0),this._destroy=new o.Subject,this.closeclick=this._eventManager.getLazyEmitter("closeclick"),this.contentChanged=this._eventManager.getLazyEmitter("content_changed"),this.domready=this._eventManager.getLazyEmitter("domready"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{set:function(t){this._position.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._googleMap._isBrowser&&this._combineOptions().pipe(r.takeUntil(this._destroy)).subscribe((function(e){t._infoWindow?t._infoWindow.setOptions(e):(t._ngZone.runOutsideAngular((function(){t._infoWindow=new google.maps.InfoWindow(e)})),t._eventManager.setTarget(t._infoWindow))}))},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete(),this.close()},t.prototype.close=function(){this._infoWindow&&this._infoWindow.close()},t.prototype.getContent=function(){return this._infoWindow?this._infoWindow.getContent():""},t.prototype.getPosition=function(){return this._infoWindow?this._infoWindow.getPosition():null},t.prototype.getZIndex=function(){return this._infoWindow?this._infoWindow.getZIndex():-1},t.prototype.open=function(t){var e=t?t._marker:void 0;this._googleMap._googleMap&&this._infoWindow&&(this._elementRef.nativeElement.style.display="",this._infoWindow.open(this._googleMap._googleMap,e))},t.prototype._combineOptions=function(){var t=this;return o.combineLatest([this._options,this._position]).pipe(r.map((function(n){var i=e.__read(n,2),o=i[0],r=i[1];return e.__assign(e.__assign({},o),{position:r||o.position,content:t._elementRef.nativeElement})})))},t.decorators=[{type:n.Directive,args:[{selector:"map-info-window",host:{style:"display: none"}}]}],t.ctorParameters=function(){return[{type:u},{type:n.ElementRef},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input}],position:[{type:n.Input}],closeclick:[{type:n.Output}],contentChanged:[{type:n.Output}],domready:[{type:n.Output}],positionChanged:[{type:n.Output}],zindexChanged:[{type:n.Output}]},t}(),_={position:{lat:37.421995,lng:-122.084092}},y=function(){function t(t,e){this._googleMap=t,this._ngZone=e,this._eventManager=new a(this._ngZone),this._options=new o.BehaviorSubject(_),this._title=new o.BehaviorSubject(void 0),this._position=new o.BehaviorSubject(void 0),this._label=new o.BehaviorSubject(void 0),this._clickable=new o.BehaviorSubject(void 0),this._destroy=new o.Subject,this.animationChanged=this._eventManager.getLazyEmitter("animation_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.clickableChanged=this._eventManager.getLazyEmitter("clickable_changed"),this.cursorChanged=this._eventManager.getLazyEmitter("cursor_changed"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.draggableChanged=this._eventManager.getLazyEmitter("draggable_changed"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.flatChanged=this._eventManager.getLazyEmitter("flat_changed"),this.iconChanged=this._eventManager.getLazyEmitter("icon_changed"),this.mapMousedown=this._eventManager.getLazyEmitter("mousedown"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.mapMouseup=this._eventManager.getLazyEmitter("mouseup"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.shapeChanged=this._eventManager.getLazyEmitter("shape_changed"),this.titleChanged=this._eventManager.getLazyEmitter("title_changed"),this.visibleChanged=this._eventManager.getLazyEmitter("visible_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||_)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{set:function(t){this._title.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{set:function(t){this._position.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{set:function(t){this._label.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clickable",{set:function(t){this._clickable.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._googleMap._isBrowser&&(this._combineOptions().pipe(r.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){return t._marker=new google.maps.Marker(e)})),t._marker.setMap(t._googleMap._googleMap),t._eventManager.setTarget(t._marker)})),this._watchForOptionsChanges(),this._watchForTitleChanges(),this._watchForPositionChanges(),this._watchForLabelChanges(),this._watchForClickableChanges())},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this._eventManager.destroy(),this._marker&&this._marker.setMap(null)},t.prototype.getAnimation=function(){return this._marker&&this._marker.getAnimation()||null},t.prototype.getClickable=function(){return!!this._marker&&this._marker.getClickable()},t.prototype.getCursor=function(){return this._marker&&this._marker.getCursor()||null},t.prototype.getDraggable=function(){return!!this._marker&&!!this._marker.getDraggable()},t.prototype.getIcon=function(){return this._marker&&this._marker.getIcon()||null},t.prototype.getLabel=function(){return this._marker&&this._marker.getLabel()||null},t.prototype.getOpacity=function(){return this._marker&&this._marker.getOpacity()||null},t.prototype.getPosition=function(){return this._marker&&this._marker.getPosition()||null},t.prototype.getShape=function(){return this._marker&&this._marker.getShape()||null},t.prototype.getTitle=function(){return this._marker&&this._marker.getTitle()||null},t.prototype.getVisible=function(){return!!this._marker&&this._marker.getVisible()},t.prototype.getZIndex=function(){return this._marker&&this._marker.getZIndex()||null},t.prototype._combineOptions=function(){var t=this;return o.combineLatest([this._options,this._title,this._position,this._label,this._clickable]).pipe(r.map((function(n){var i=e.__read(n,5),o=i[0],r=i[1],a=i[2],s=i[3],p=i[4];return e.__assign(e.__assign({},o),{title:r||o.title,position:a||o.position,label:s||o.label,clickable:void 0!==p?p:o.clickable,map:t._googleMap._googleMap||null})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(r.takeUntil(this._destroy)).subscribe((function(e){t._marker&&t._marker.setOptions(e)}))},t.prototype._watchForTitleChanges=function(){var t=this;this._title.pipe(r.takeUntil(this._destroy)).subscribe((function(e){t._marker&&void 0!==e&&t._marker.setTitle(e)}))},t.prototype._watchForPositionChanges=function(){var t=this;this._position.pipe(r.takeUntil(this._destroy)).subscribe((function(e){t._marker&&e&&t._marker.setPosition(e)}))},t.prototype._watchForLabelChanges=function(){var t=this;this._label.pipe(r.takeUntil(this._destroy)).subscribe((function(e){t._marker&&void 0!==e&&t._marker.setLabel(e)}))},t.prototype._watchForClickableChanges=function(){var t=this;this._clickable.pipe(r.takeUntil(this._destroy)).subscribe((function(e){t._marker&&void 0!==e&&t._marker.setClickable(e)}))},t.decorators=[{type:n.Component,args:[{selector:"map-marker",template:"<ng-content></ng-content>",changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:u},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input}],title:[{type:n.Input}],position:[{type:n.Input}],label:[{type:n.Input}],clickable:[{type:n.Input}],animationChanged:[{type:n.Output}],mapClick:[{type:n.Output}],clickableChanged:[{type:n.Output}],cursorChanged:[{type:n.Output}],mapDblclick:[{type:n.Output}],mapDrag:[{type:n.Output}],mapDragend:[{type:n.Output}],draggableChanged:[{type:n.Output}],mapDragstart:[{type:n.Output}],flatChanged:[{type:n.Output}],iconChanged:[{type:n.Output}],mapMousedown:[{type:n.Output}],mapMouseout:[{type:n.Output}],mapMouseover:[{type:n.Output}],mapMouseup:[{type:n.Output}],positionChanged:[{type:n.Output}],mapRightclick:[{type:n.Output}],shapeChanged:[{type:n.Output}],titleChanged:[{type:n.Output}],visibleChanged:[{type:n.Output}],zindexChanged:[{type:n.Output}]},t}(),d=function(){function t(t,e){this._map=t,this._ngZone=e,this._eventManager=new a(this._ngZone),this._options=new o.BehaviorSubject({}),this._paths=new o.BehaviorSubject(void 0),this._destroyed=new o.Subject,this.polygonClick=this._eventManager.getLazyEmitter("click"),this.polygonDblclick=this._eventManager.getLazyEmitter("dblclick"),this.polygonDrag=this._eventManager.getLazyEmitter("drag"),this.polygonDragend=this._eventManager.getLazyEmitter("dragend"),this.polygonDragstart=this._eventManager.getLazyEmitter("dragstart"),this.polygonMousedown=this._eventManager.getLazyEmitter("mousedown"),this.polygonMousemove=this._eventManager.getLazyEmitter("mousemove"),this.polygonMouseout=this._eventManager.getLazyEmitter("mouseout"),this.polygonMouseover=this._eventManager.getLazyEmitter("mouseover"),this.polygonMouseup=this._eventManager.getLazyEmitter("mouseup"),this.polygonRightclick=this._eventManager.getLazyEmitter("rightclick")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paths",{set:function(t){this._paths.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._combineOptions().pipe(r.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){t._polygon=new google.maps.Polygon(e)})),t._polygon.setMap(t._map._googleMap),t._eventManager.setTarget(t._polygon)})),this._watchForOptionsChanges(),this._watchForPathChanges()},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this._polygon.setMap(null)},t.prototype.getDraggable=function(){return this._polygon.getDraggable()},t.prototype.getEditable=function(){return this._polygon.getEditable()},t.prototype.getPath=function(){return this._polygon.getPath()},t.prototype.getPaths=function(){return this._polygon.getPaths()},t.prototype.getVisible=function(){return this._polygon.getVisible()},t.prototype._combineOptions=function(){return o.combineLatest([this._options,this._paths]).pipe(r.map((function(t){var n=e.__read(t,2),i=n[0],o=n[1];return e.__assign(e.__assign({},i),{paths:o||i.paths})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(r.takeUntil(this._destroyed)).subscribe((function(e){t._polygon.setOptions(e)}))},t.prototype._watchForPathChanges=function(){var t=this;this._paths.pipe(r.takeUntil(this._destroyed)).subscribe((function(e){e&&t._polygon.setPaths(e)}))},t.decorators=[{type:n.Directive,args:[{selector:"map-polygon"}]}],t.ctorParameters=function(){return[{type:u},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input}],paths:[{type:n.Input}],polygonClick:[{type:n.Output}],polygonDblclick:[{type:n.Output}],polygonDrag:[{type:n.Output}],polygonDragend:[{type:n.Output}],polygonDragstart:[{type:n.Output}],polygonMousedown:[{type:n.Output}],polygonMousemove:[{type:n.Output}],polygonMouseout:[{type:n.Output}],polygonMouseover:[{type:n.Output}],polygonMouseup:[{type:n.Output}],polygonRightclick:[{type:n.Output}]},t}(),m=function(){function t(t,e){this._map=t,this._ngZone=e,this._eventManager=new a(this._ngZone),this._options=new o.BehaviorSubject({}),this._path=new o.BehaviorSubject(void 0),this._destroyed=new o.Subject,this.polylineClick=this._eventManager.getLazyEmitter("click"),this.polylineDblclick=this._eventManager.getLazyEmitter("dblclick"),this.polylineDrag=this._eventManager.getLazyEmitter("drag"),this.polylineDragend=this._eventManager.getLazyEmitter("dragend"),this.polylineDragstart=this._eventManager.getLazyEmitter("dragstart"),this.polylineMousedown=this._eventManager.getLazyEmitter("mousedown"),this.polylineMousemove=this._eventManager.getLazyEmitter("mousemove"),this.polylineMouseout=this._eventManager.getLazyEmitter("mouseout"),this.polylineMouseover=this._eventManager.getLazyEmitter("mouseover"),this.polylineMouseup=this._eventManager.getLazyEmitter("mouseup"),this.polylineRightclick=this._eventManager.getLazyEmitter("rightclick")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{set:function(t){this._path.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._map._isBrowser&&(this._combineOptions().pipe(r.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){return t._polyline=new google.maps.Polyline(e)})),t._polyline.setMap(t._map._googleMap),t._eventManager.setTarget(t._polyline)})),this._watchForOptionsChanges(),this._watchForPathChanges())},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this._polyline&&this._polyline.setMap(null)},t.prototype.getDraggable=function(){return!!this._polyline&&this._polyline.getDraggable()},t.prototype.getEditable=function(){return!!this._polyline&&this._polyline.getEditable()},t.prototype.getPath=function(){return this._polyline?this._polyline.getPath():null},t.prototype.getVisible=function(){return!!this._polyline&&this._polyline.getVisible()},t.prototype._combineOptions=function(){return o.combineLatest([this._options,this._path]).pipe(r.map((function(t){var n=e.__read(t,2),i=n[0],o=n[1];return e.__assign(e.__assign({},i),{path:o||i.path})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(r.takeUntil(this._destroyed)).subscribe((function(e){t._polyline&&t._polyline.setOptions(e)}))},t.prototype._watchForPathChanges=function(){var t=this;this._path.pipe(r.takeUntil(this._destroyed)).subscribe((function(e){e&&t._polyline&&t._polyline.setPath(e)}))},t.decorators=[{type:n.Directive,args:[{selector:"map-polyline"}]}],t.ctorParameters=function(){return[{type:u},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input}],path:[{type:n.Input}],polylineClick:[{type:n.Output}],polylineDblclick:[{type:n.Output}],polylineDrag:[{type:n.Output}],polylineDragend:[{type:n.Output}],polylineDragstart:[{type:n.Output}],polylineMousedown:[{type:n.Output}],polylineMousemove:[{type:n.Output}],polylineMouseout:[{type:n.Output}],polylineMouseover:[{type:n.Output}],polylineMouseup:[{type:n.Output}],polylineRightclick:[{type:n.Output}]},t}(),f=function(){function t(t,e){this._map=t,this._ngZone=e,this._eventManager=new a(this._ngZone),this._options=new o.BehaviorSubject({}),this._bounds=new o.BehaviorSubject(void 0),this._destroyed=new o.Subject,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.rectangleClick=this._eventManager.getLazyEmitter("click"),this.rectangleDblclick=this._eventManager.getLazyEmitter("dblclick"),this.rectangleDrag=this._eventManager.getLazyEmitter("drag"),this.rectangleDragend=this._eventManager.getLazyEmitter("dragend"),this.rectangleDragstart=this._eventManager.getLazyEmitter("dragstart"),this.rectangleMousedown=this._eventManager.getLazyEmitter("mousedown"),this.rectangleMousemove=this._eventManager.getLazyEmitter("mousemove"),this.rectangleMouseout=this._eventManager.getLazyEmitter("mouseout"),this.rectangleMouseover=this._eventManager.getLazyEmitter("mouseover"),this.rectangleMouseup=this._eventManager.getLazyEmitter("mouseup"),this.rectangleRightclick=this._eventManager.getLazyEmitter("rightclick")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{set:function(t){this._bounds.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._combineOptions().pipe(r.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){t._rectangle=new google.maps.Rectangle(e)})),t._rectangle.setMap(t._map._googleMap),t._eventManager.setTarget(t._rectangle)})),this._watchForOptionsChanges(),this._watchForBoundsChanges()},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this._rectangle.setMap(null)},t.prototype.getBounds=function(){return this._rectangle.getBounds()},t.prototype.getDraggable=function(){return this._rectangle.getDraggable()},t.prototype.getEditable=function(){return this._rectangle.getEditable()},t.prototype.getVisible=function(){return this._rectangle.getVisible()},t.prototype._combineOptions=function(){return o.combineLatest([this._options,this._bounds]).pipe(r.map((function(t){var n=e.__read(t,2),i=n[0],o=n[1];return e.__assign(e.__assign({},i),{bounds:o||i.bounds})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(r.takeUntil(this._destroyed)).subscribe((function(e){t._rectangle.setOptions(e)}))},t.prototype._watchForBoundsChanges=function(){var t=this;this._bounds.pipe(r.takeUntil(this._destroyed)).subscribe((function(e){e&&t._rectangle.setBounds(e)}))},t.decorators=[{type:n.Directive,args:[{selector:"map-rectangle"}]}],t.ctorParameters=function(){return[{type:u},{type:n.NgZone}]},t.propDecorators={options:[{type:n.Input}],bounds:[{type:n.Input}],boundsChanged:[{type:n.Output}],rectangleClick:[{type:n.Output}],rectangleDblclick:[{type:n.Output}],rectangleDrag:[{type:n.Output}],rectangleDragend:[{type:n.Output}],rectangleDragstart:[{type:n.Output}],rectangleMousedown:[{type:n.Output}],rectangleMousemove:[{type:n.Output}],rectangleMouseout:[{type:n.Output}],rectangleMouseover:[{type:n.Output}],rectangleMouseup:[{type:n.Output}],rectangleRightclick:[{type:n.Output}]},t}(),b=[u,c,y,m,d,f],v=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:b,exports:b}]}],t}();
*/var y=function(){function t(t,e,n){this._googleMap=t,this._elementRef=e,this._ngZone=n,this._eventManager=new s(this._ngZone),this._options=new i.BehaviorSubject({}),this._position=new i.BehaviorSubject(void 0),this._destroy=new i.Subject,this.closeclick=this._eventManager.getLazyEmitter("closeclick"),this.contentChanged=this._eventManager.getLazyEmitter("content_changed"),this.domready=this._eventManager.getLazyEmitter("domready"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{set:function(t){this._position.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._googleMap._isBrowser&&this._combineOptions().pipe(o.takeUntil(this._destroy)).subscribe((function(e){t._infoWindow?t._infoWindow.setOptions(e):(t._ngZone.runOutsideAngular((function(){t._infoWindow=new google.maps.InfoWindow(e)})),t._eventManager.setTarget(t._infoWindow))}))},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete(),this.close()},t.prototype.close=function(){this._infoWindow&&this._infoWindow.close()},t.prototype.getContent=function(){return this._infoWindow?this._infoWindow.getContent():""},t.prototype.getPosition=function(){return this._infoWindow?this._infoWindow.getPosition():null},t.prototype.getZIndex=function(){return this._infoWindow?this._infoWindow.getZIndex():-1},t.prototype.open=function(t){var e=t?t._marker:void 0;this._googleMap._googleMap&&this._infoWindow&&(this._elementRef.nativeElement.style.display="",this._infoWindow.open(this._googleMap._googleMap,e))},t.prototype._combineOptions=function(){var t=this;return i.combineLatest([this._options,this._position]).pipe(o.map((function(e){var n=a(e,2),i=n[0],o=n[1];return r(r({},i),{position:o||i.position,content:t._elementRef.nativeElement})})))},t.decorators=[{type:e.Directive,args:[{selector:"map-info-window",host:{style:"display: none"}}]}],t.ctorParameters=function(){return[{type:h},{type:e.ElementRef},{type:e.NgZone}]},t.propDecorators={options:[{type:e.Input}],position:[{type:e.Input}],closeclick:[{type:e.Output}],contentChanged:[{type:e.Output}],domready:[{type:e.Output}],positionChanged:[{type:e.Output}],zindexChanged:[{type:e.Output}]},t}(),_={position:{lat:37.421995,lng:-122.084092}},d=function(){function t(t,e){this._googleMap=t,this._ngZone=e,this._eventManager=new s(this._ngZone),this._options=new i.BehaviorSubject(_),this._title=new i.BehaviorSubject(void 0),this._position=new i.BehaviorSubject(void 0),this._label=new i.BehaviorSubject(void 0),this._clickable=new i.BehaviorSubject(void 0),this._destroy=new i.Subject,this.animationChanged=this._eventManager.getLazyEmitter("animation_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.clickableChanged=this._eventManager.getLazyEmitter("clickable_changed"),this.cursorChanged=this._eventManager.getLazyEmitter("cursor_changed"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.draggableChanged=this._eventManager.getLazyEmitter("draggable_changed"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.flatChanged=this._eventManager.getLazyEmitter("flat_changed"),this.iconChanged=this._eventManager.getLazyEmitter("icon_changed"),this.mapMousedown=this._eventManager.getLazyEmitter("mousedown"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.mapMouseup=this._eventManager.getLazyEmitter("mouseup"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.shapeChanged=this._eventManager.getLazyEmitter("shape_changed"),this.titleChanged=this._eventManager.getLazyEmitter("title_changed"),this.visibleChanged=this._eventManager.getLazyEmitter("visible_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||_)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{set:function(t){this._title.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{set:function(t){this._position.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{set:function(t){this._label.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clickable",{set:function(t){this._clickable.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._googleMap._isBrowser&&(this._combineOptions().pipe(o.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){return t._marker=new google.maps.Marker(e)})),t._marker.setMap(t._googleMap._googleMap),t._eventManager.setTarget(t._marker)})),this._watchForOptionsChanges(),this._watchForTitleChanges(),this._watchForPositionChanges(),this._watchForLabelChanges(),this._watchForClickableChanges())},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this._eventManager.destroy(),this._marker&&this._marker.setMap(null)},t.prototype.getAnimation=function(){return this._marker&&this._marker.getAnimation()||null},t.prototype.getClickable=function(){return!!this._marker&&this._marker.getClickable()},t.prototype.getCursor=function(){return this._marker&&this._marker.getCursor()||null},t.prototype.getDraggable=function(){return!!this._marker&&!!this._marker.getDraggable()},t.prototype.getIcon=function(){return this._marker&&this._marker.getIcon()||null},t.prototype.getLabel=function(){return this._marker&&this._marker.getLabel()||null},t.prototype.getOpacity=function(){return this._marker&&this._marker.getOpacity()||null},t.prototype.getPosition=function(){return this._marker&&this._marker.getPosition()||null},t.prototype.getShape=function(){return this._marker&&this._marker.getShape()||null},t.prototype.getTitle=function(){return this._marker&&this._marker.getTitle()||null},t.prototype.getVisible=function(){return!!this._marker&&this._marker.getVisible()},t.prototype.getZIndex=function(){return this._marker&&this._marker.getZIndex()||null},t.prototype._combineOptions=function(){var t=this;return i.combineLatest([this._options,this._title,this._position,this._label,this._clickable]).pipe(o.map((function(e){var n=a(e,5),i=n[0],o=n[1],s=n[2],p=n[3],g=n[4];return r(r({},i),{title:o||i.title,position:s||i.position,label:p||i.label,clickable:void 0!==g?g:i.clickable,map:t._googleMap._googleMap||null})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(o.takeUntil(this._destroy)).subscribe((function(e){t._marker&&t._marker.setOptions(e)}))},t.prototype._watchForTitleChanges=function(){var t=this;this._title.pipe(o.takeUntil(this._destroy)).subscribe((function(e){t._marker&&void 0!==e&&t._marker.setTitle(e)}))},t.prototype._watchForPositionChanges=function(){var t=this;this._position.pipe(o.takeUntil(this._destroy)).subscribe((function(e){t._marker&&e&&t._marker.setPosition(e)}))},t.prototype._watchForLabelChanges=function(){var t=this;this._label.pipe(o.takeUntil(this._destroy)).subscribe((function(e){t._marker&&void 0!==e&&t._marker.setLabel(e)}))},t.prototype._watchForClickableChanges=function(){var t=this;this._clickable.pipe(o.takeUntil(this._destroy)).subscribe((function(e){t._marker&&void 0!==e&&t._marker.setClickable(e)}))},t.decorators=[{type:e.Component,args:[{selector:"map-marker",template:"<ng-content></ng-content>",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:h},{type:e.NgZone}]},t.propDecorators={options:[{type:e.Input}],title:[{type:e.Input}],position:[{type:e.Input}],label:[{type:e.Input}],clickable:[{type:e.Input}],animationChanged:[{type:e.Output}],mapClick:[{type:e.Output}],clickableChanged:[{type:e.Output}],cursorChanged:[{type:e.Output}],mapDblclick:[{type:e.Output}],mapDrag:[{type:e.Output}],mapDragend:[{type:e.Output}],draggableChanged:[{type:e.Output}],mapDragstart:[{type:e.Output}],flatChanged:[{type:e.Output}],iconChanged:[{type:e.Output}],mapMousedown:[{type:e.Output}],mapMouseout:[{type:e.Output}],mapMouseover:[{type:e.Output}],mapMouseup:[{type:e.Output}],positionChanged:[{type:e.Output}],mapRightclick:[{type:e.Output}],shapeChanged:[{type:e.Output}],titleChanged:[{type:e.Output}],visibleChanged:[{type:e.Output}],zindexChanged:[{type:e.Output}]},t}(),m=function(){function t(t,e){this._map=t,this._ngZone=e,this._eventManager=new s(this._ngZone),this._options=new i.BehaviorSubject({}),this._paths=new i.BehaviorSubject(void 0),this._destroyed=new i.Subject,this.polygonClick=this._eventManager.getLazyEmitter("click"),this.polygonDblclick=this._eventManager.getLazyEmitter("dblclick"),this.polygonDrag=this._eventManager.getLazyEmitter("drag"),this.polygonDragend=this._eventManager.getLazyEmitter("dragend"),this.polygonDragstart=this._eventManager.getLazyEmitter("dragstart"),this.polygonMousedown=this._eventManager.getLazyEmitter("mousedown"),this.polygonMousemove=this._eventManager.getLazyEmitter("mousemove"),this.polygonMouseout=this._eventManager.getLazyEmitter("mouseout"),this.polygonMouseover=this._eventManager.getLazyEmitter("mouseover"),this.polygonMouseup=this._eventManager.getLazyEmitter("mouseup"),this.polygonRightclick=this._eventManager.getLazyEmitter("rightclick")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paths",{set:function(t){this._paths.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._combineOptions().pipe(o.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){t._polygon=new google.maps.Polygon(e)})),t._polygon.setMap(t._map._googleMap),t._eventManager.setTarget(t._polygon)})),this._watchForOptionsChanges(),this._watchForPathChanges()},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this._polygon.setMap(null)},t.prototype.getDraggable=function(){return this._polygon.getDraggable()},t.prototype.getEditable=function(){return this._polygon.getEditable()},t.prototype.getPath=function(){return this._polygon.getPath()},t.prototype.getPaths=function(){return this._polygon.getPaths()},t.prototype.getVisible=function(){return this._polygon.getVisible()},t.prototype._combineOptions=function(){return i.combineLatest([this._options,this._paths]).pipe(o.map((function(t){var e=a(t,2),n=e[0],i=e[1];return r(r({},n),{paths:i||n.paths})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(o.takeUntil(this._destroyed)).subscribe((function(e){t._polygon.setOptions(e)}))},t.prototype._watchForPathChanges=function(){var t=this;this._paths.pipe(o.takeUntil(this._destroyed)).subscribe((function(e){e&&t._polygon.setPaths(e)}))},t.decorators=[{type:e.Directive,args:[{selector:"map-polygon"}]}],t.ctorParameters=function(){return[{type:h},{type:e.NgZone}]},t.propDecorators={options:[{type:e.Input}],paths:[{type:e.Input}],polygonClick:[{type:e.Output}],polygonDblclick:[{type:e.Output}],polygonDrag:[{type:e.Output}],polygonDragend:[{type:e.Output}],polygonDragstart:[{type:e.Output}],polygonMousedown:[{type:e.Output}],polygonMousemove:[{type:e.Output}],polygonMouseout:[{type:e.Output}],polygonMouseover:[{type:e.Output}],polygonMouseup:[{type:e.Output}],polygonRightclick:[{type:e.Output}]},t}(),f=function(){function t(t,e){this._map=t,this._ngZone=e,this._eventManager=new s(this._ngZone),this._options=new i.BehaviorSubject({}),this._path=new i.BehaviorSubject(void 0),this._destroyed=new i.Subject,this.polylineClick=this._eventManager.getLazyEmitter("click"),this.polylineDblclick=this._eventManager.getLazyEmitter("dblclick"),this.polylineDrag=this._eventManager.getLazyEmitter("drag"),this.polylineDragend=this._eventManager.getLazyEmitter("dragend"),this.polylineDragstart=this._eventManager.getLazyEmitter("dragstart"),this.polylineMousedown=this._eventManager.getLazyEmitter("mousedown"),this.polylineMousemove=this._eventManager.getLazyEmitter("mousemove"),this.polylineMouseout=this._eventManager.getLazyEmitter("mouseout"),this.polylineMouseover=this._eventManager.getLazyEmitter("mouseover"),this.polylineMouseup=this._eventManager.getLazyEmitter("mouseup"),this.polylineRightclick=this._eventManager.getLazyEmitter("rightclick")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{set:function(t){this._path.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._map._isBrowser&&(this._combineOptions().pipe(o.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){return t._polyline=new google.maps.Polyline(e)})),t._polyline.setMap(t._map._googleMap),t._eventManager.setTarget(t._polyline)})),this._watchForOptionsChanges(),this._watchForPathChanges())},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this._polyline&&this._polyline.setMap(null)},t.prototype.getDraggable=function(){return!!this._polyline&&this._polyline.getDraggable()},t.prototype.getEditable=function(){return!!this._polyline&&this._polyline.getEditable()},t.prototype.getPath=function(){return this._polyline?this._polyline.getPath():null},t.prototype.getVisible=function(){return!!this._polyline&&this._polyline.getVisible()},t.prototype._combineOptions=function(){return i.combineLatest([this._options,this._path]).pipe(o.map((function(t){var e=a(t,2),n=e[0],i=e[1];return r(r({},n),{path:i||n.path})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(o.takeUntil(this._destroyed)).subscribe((function(e){t._polyline&&t._polyline.setOptions(e)}))},t.prototype._watchForPathChanges=function(){var t=this;this._path.pipe(o.takeUntil(this._destroyed)).subscribe((function(e){e&&t._polyline&&t._polyline.setPath(e)}))},t.decorators=[{type:e.Directive,args:[{selector:"map-polyline"}]}],t.ctorParameters=function(){return[{type:h},{type:e.NgZone}]},t.propDecorators={options:[{type:e.Input}],path:[{type:e.Input}],polylineClick:[{type:e.Output}],polylineDblclick:[{type:e.Output}],polylineDrag:[{type:e.Output}],polylineDragend:[{type:e.Output}],polylineDragstart:[{type:e.Output}],polylineMousedown:[{type:e.Output}],polylineMousemove:[{type:e.Output}],polylineMouseout:[{type:e.Output}],polylineMouseover:[{type:e.Output}],polylineMouseup:[{type:e.Output}],polylineRightclick:[{type:e.Output}]},t}(),b=function(){function t(t,e){this._map=t,this._ngZone=e,this._eventManager=new s(this._ngZone),this._options=new i.BehaviorSubject({}),this._bounds=new i.BehaviorSubject(void 0),this._destroyed=new i.Subject,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.rectangleClick=this._eventManager.getLazyEmitter("click"),this.rectangleDblclick=this._eventManager.getLazyEmitter("dblclick"),this.rectangleDrag=this._eventManager.getLazyEmitter("drag"),this.rectangleDragend=this._eventManager.getLazyEmitter("dragend"),this.rectangleDragstart=this._eventManager.getLazyEmitter("dragstart"),this.rectangleMousedown=this._eventManager.getLazyEmitter("mousedown"),this.rectangleMousemove=this._eventManager.getLazyEmitter("mousemove"),this.rectangleMouseout=this._eventManager.getLazyEmitter("mouseout"),this.rectangleMouseover=this._eventManager.getLazyEmitter("mouseover"),this.rectangleMouseup=this._eventManager.getLazyEmitter("mouseup"),this.rectangleRightclick=this._eventManager.getLazyEmitter("rightclick")}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options.next(t||{})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{set:function(t){this._bounds.next(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._combineOptions().pipe(o.take(1)).subscribe((function(e){t._ngZone.runOutsideAngular((function(){t._rectangle=new google.maps.Rectangle(e)})),t._rectangle.setMap(t._map._googleMap),t._eventManager.setTarget(t._rectangle)})),this._watchForOptionsChanges(),this._watchForBoundsChanges()},t.prototype.ngOnDestroy=function(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this._rectangle.setMap(null)},t.prototype.getBounds=function(){return this._rectangle.getBounds()},t.prototype.getDraggable=function(){return this._rectangle.getDraggable()},t.prototype.getEditable=function(){return this._rectangle.getEditable()},t.prototype.getVisible=function(){return this._rectangle.getVisible()},t.prototype._combineOptions=function(){return i.combineLatest([this._options,this._bounds]).pipe(o.map((function(t){var e=a(t,2),n=e[0],i=e[1];return r(r({},n),{bounds:i||n.bounds})})))},t.prototype._watchForOptionsChanges=function(){var t=this;this._options.pipe(o.takeUntil(this._destroyed)).subscribe((function(e){t._rectangle.setOptions(e)}))},t.prototype._watchForBoundsChanges=function(){var t=this;this._bounds.pipe(o.takeUntil(this._destroyed)).subscribe((function(e){e&&t._rectangle.setBounds(e)}))},t.decorators=[{type:e.Directive,args:[{selector:"map-rectangle"}]}],t.ctorParameters=function(){return[{type:h},{type:e.NgZone}]},t.propDecorators={options:[{type:e.Input}],bounds:[{type:e.Input}],boundsChanged:[{type:e.Output}],rectangleClick:[{type:e.Output}],rectangleDblclick:[{type:e.Output}],rectangleDrag:[{type:e.Output}],rectangleDragend:[{type:e.Output}],rectangleDragstart:[{type:e.Output}],rectangleMousedown:[{type:e.Output}],rectangleMousemove:[{type:e.Output}],rectangleMouseout:[{type:e.Output}],rectangleMouseover:[{type:e.Output}],rectangleMouseup:[{type:e.Output}],rectangleRightclick:[{type:e.Output}]},t}(),v=[h,y,d,f,m,b],M=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:v,exports:v}]}],t}();
/**

@@ -40,2 +55,2 @@ * @license

*/
t.GoogleMap=u,t.GoogleMapsModule=v,t.MapInfoWindow=c,t.MapMarker=y,t.MapPolygon=d,t.MapPolyline=m,t.MapRectangle=f,Object.defineProperty(t,"__esModule",{value:!0})}));
t.GoogleMap=h,t.GoogleMapsModule=M,t.MapInfoWindow=y,t.MapMarker=d,t.MapPolygon=m,t.MapPolyline=f,t.MapRectangle=b,Object.defineProperty(t,"__esModule",{value:!0})}));

2

package.json
{
"name": "@angular/google-maps",
"version": "9.1.1",
"version": "9.1.2",
"description": "Angular Google Maps",

@@ -5,0 +5,0 @@ "main": "./bundles/google-maps.umd.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc