@progress/kendo-angular-map 0.2.0 → 0.3.0-dev.202207271508

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.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/platform-browser"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-charts"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@progress/kendo-angular-tooltip")):"function"==typeof define&&define.amd?define("KendoAngularMap",["exports","@angular/core","rxjs","@angular/platform-browser","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-charts","@progress/kendo-licensing","rxjs/operators","@progress/kendo-angular-popup","@angular/common","@progress/kendo-angular-tooltip"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularMap={},e.ng.core,e.rxjs,e.ng.platformBrowser,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoCharts,e.KendoLicensing,e.rxjs.operators,e.i1,e.ng.common,e.kendoAngularTooltip)}(this,function(e,s,L,t,n,r,j,A,N,o,Z,_){"use strict";function i(n){if(n&&n.__esModule)return n;var r=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),r.default=n,Object.freeze(r)}var a=i(s),p=i(t),t=i(n),c=i(r),q=i(o),l=i(Z),K=function(e,t){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function B(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var U=function(e,t){this.key=e,this.value=t},m=(g.prototype.initSource=function(){this.changes=this.source.asObservable()},g.prototype.push=function(e){this.store=e,this.next()},g.prototype.notify=function(e){this.set(e.key,e.value),this.next()},g.prototype.set=function(e,t){for(var n=this.store,r=e.split("."),o=r.shift();0<r.length;)n=n[o]=n[o]||{},o=r.shift();n[o]=t},g.prototype.next=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})},g);function g(e){this.ngZone=e,this.store={},this.source=new L.BehaviorSubject({}),this.initSource()}m.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:m,deps:[{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),m.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:m}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:m,decorators:[{type:s.Injectable}],ctorParameters:function(){return[{type:a.NgZone}]}});var H=function(e,t){this.sender=e,this.options=t},y=(Q.prototype.notify=function(e){this.source.next(e)},Q);function Q(){this.source=new L.Subject,this.itemChanges=this.source.asObservable()}function X(e,t){for(var n in e){var r;e.hasOwnProperty(n)&&(void 0===(r=e[n].currentValue)?delete t[n]:t[n]=r)}}function $(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=new s.SimpleChange(null,e[t],!1));return n}y.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,deps:[],target:a.ɵɵFactoryTarget.Injectable}),y.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,decorators:[{type:s.Injectable}],ctorParameters:function(){return[]}});d.prototype.ngOnChanges=function(e){var t=this.configurationService.store;X(e,t),this.configurationService.push(t)},d.prototype.notifyChanges=function(e){this.ngOnChanges($(e))},d.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},d.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new H(this,this.options))};var h=d;function d(e,t){var n=this;this.configurationService=e,this.collectionService=t,this.index=-1,this.options={},this.subscription=e.changes.subscribe(function(e){n.options=e,n.notify()})}h.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,deps:[{token:m},{token:y}],target:a.ɵɵFactoryTarget.Directive}),h.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:h,usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:m},{type:y}]}});f.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},f.prototype.ngOnChanges=function(e){X(e,this.store),this.notify()},f.prototype.notifyChanges=function(e){this.ngOnChanges($(e))},f.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},f.prototype.notify=function(){this.configurationService.notify(new U(this.configKey,this.store))};var v=f;function f(e,t){if(this.configKey=e,this.configurationService=t,this.store={},void 0===e)throw new Error("Configuration key not set")}v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),v.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:v,usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:m}]}});u(J,G=v),Object.defineProperty(J.prototype,"layerTooltipTemplateRef",{get:function(){return this.layerTooltipTemplate},enumerable:!1,configurable:!0});var G,C=J;function J(e){var t=G.call(this,"tooltip",e)||this;return t.configurationService=e,t}C.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,deps:[{token:m}],target:a.ɵɵFactoryTarget.Component}),C.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-map-layer-tooltip",queries:[{propertyName:"layerTooltipTemplate",first:!0,predicate:s.TemplateRef,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"kendo-map-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m}]},propDecorators:{layerTooltipTemplate:[{type:s.ContentChild,args:[s.TemplateRef,{static:!1}]}]}});u(Y,W=h),Y.prototype.ngOnChanges=function(e){this.configurationService.store.type=this.type;var t=e.attribution;t&&this.sanitizer&&(t.currentValue=this.sanitizer.sanitize(s.SecurityContext.HTML,t.currentValue)),W.prototype.ngOnChanges.call(this,e)},Object.defineProperty(Y.prototype,"layerTooltipTemplateRef",{get:function(){if(this.layerTooltip)return this.layerTooltip.layerTooltipTemplateRef},enumerable:!1,configurable:!0});var W,D=Y;function Y(e,t,n,r){var o=W.call(this,t,n)||this;return o.type=e,o.configurationService=t,o.collectionService=n,o.sanitizer=r,o}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,inputs:{attribution:"attribution",extent:"extent",maxZoom:"maxZoom",minZoom:"minZoom",opacity:"opacity",zIndex:"zIndex"},queries:[{propertyName:"layerTooltip",first:!0,predicate:C,descendants:!0}],usesInheritance:!0,usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{attribution:[{type:s.Input}],extent:[{type:s.Input}],maxZoom:[{type:s.Input}],minZoom:[{type:s.Input}],opacity:[{type:s.Input}],zIndex:[{type:s.Input}],layerTooltip:[{type:s.ContentChild,args:[C,{static:!1}]}]}});u(te,ee=D);var ee,I=te;function te(e,t,n){var r=ee.call(this,"bubble",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}function ne(e,t){for(var n=e;n&&n!==t;)n=n.parentNode;return!!n}I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),I.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"kendo-map-bubble-layer",inputs:{data:"data",locationField:"locationField",valueField:"valueField",symbol:"symbol",style:"style",maxSize:"maxSize",minSize:"minSize"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return I})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return I})}],selector:"kendo-map-bubble-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],valueField:[{type:s.Input}],symbol:[{type:s.Input}],style:[{type:s.Input}],maxSize:[{type:s.Input}],minSize:[{type:s.Input}]}});u(ie,re=j.InstanceObserver);var re,oe=ie;function ie(e){e=re.call(this,e)||this;return e.handlerMap={hideTooltip:"onHideTooltip",init:"onInit",render:"onRender",showTooltip:"onShowTooltip"},e}var ae,h=function(e){this.sender=e},se=(h.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),h.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:h,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0}]}}),u(pe,ae=h),pe);function pe(e,t){return ae.call(this,t)||this}u(ue,ce=h);var ce,le=ue;function ue(e,t){t=ce.call(this,t)||this;return t.location=e.location,t.originalEvent=e.originalEvent,t}u(ye,me=h);var me,ge=ye;function ye(e,t){t=me.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(ve,he=h);var he,de=ve;function ve(e,t){t=he.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(Ce,fe=h),Ce.prototype.preventDefault=function(){this.prevented=!0},Ce.prototype.isDefaultPrevented=function(){return this.prevented};var fe,k=Ce;function Ce(){var e=fe.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],B(arguments)))||this;return e.prevented=!1,e}k.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,deps:null,target:a.ɵɵFactoryTarget.Directive}),k.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:k,usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,decorators:[{type:s.Directive}]});u(ke,De=k);var De,Ie=ke;function ke(e,t){t=De.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(Te,be=h);var be,Se=Te;function Te(e,t){t=be.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}u(ze,Ee=h);var Ee,Oe=ze;function ze(e,t){t=Ee.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}u(Me,Re=h);var Re,Ve=Me;function Me(e,t){return Re.call(this,t)||this}u(Pe,we=h);var we,Fe=Pe;function Pe(e,t){t=we.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(je,xe=h);var xe,Le=je;function je(e,t){t=xe.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.dataItem=e.shape.dataItem,t.location=e.shape.location,t}u(Ze,Ae=h);var Ae,Ne=Ze;function Ze(e,t){t=Ae.call(this,t)||this;return t.dataItem=e.dataItem,t.layer=e.layer,t.group=e.group,t.properties=e.properties,t}u(Ke,_e=h);var _e,qe=Ke;function Ke(e,t){t=_e.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(He,Be=h);var Be,Ue=He;function He(e,t){t=Be.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(Xe,Qe=h);var Qe,h=Xe;function Xe(e,t){t=Qe.call(this,t)||this;return t.originalEvent=e.originalEvent,t}u(Ge,$e=k);var $e,k=Ge;function Ge(e,t){t=$e.call(this,t)||this;return t.originalEvent=e.originalEvent,t}var Je={beforeReset:se,click:le,markerActivate:ge,markerClick:de,markerCreated:Ie,panEnd:Se,pan:Oe,reset:Ve,shapeClick:Fe,shapeCreated:Le,shapeFeatureCreated:Ne,shapeMouseEnter:qe,shapeMouseLeave:Ue,zoomEnd:h,zoomStart:k},We=(Ye.prototype.create=function(e,t,n){if(Je[e])return new Je[e](t,n)},Ye);function Ye(){}var et={name:"@progress/kendo-angular-map",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1658738530,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},tt={horizontal:"fit",vertical:"fit"},b=(Object.defineProperty(S.prototype,"active",{get:function(){return null!==this.popupRef},enumerable:!1,configurable:!0}),S.prototype.show=function(e){e=this.position(e.anchor);this.popupRef?this.popupRef.popup.instance.offset=e:(this.popupRef=this.popupService.open(Object.assign({offset:e,popupAlign:{vertical:"bottom",horizontal:"center"},animate:this.animate,content:this.templateRef,collision:tt,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit())},S.prototype.hide=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},S.prototype.onInit=function(){},S.prototype.ngOnDestroy=function(){this.hide()},S.prototype.position=function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var t=this.popupSettings.appendTo.element.nativeElement,n=t.getBoundingClientRect(),t=this.scrollOffset(t),r=t.scrollLeft,t=t.scrollTop;return{left:e.left-n.left-r,top:e.top-n.top-t}},S.prototype.scrollOffset=function(e){if(!e)return null;for(var t=e.scrollLeft,n=e.scrollTop,r=e.parentElement;r;)t+=r.scrollLeft,n+=r.scrollTop,r=r.parentElement;return{scrollLeft:t,scrollTop:n}},S);function S(e,t){this.popupService=e,this.localizationService=t,this.animate=!0,this.style={position:"relative"},this.popupRef=null}function nt(){if(n.isDocumentAvailable())return new s.ElementRef(document.body)}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[{token:q.PopupService},{token:c.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),b.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:b,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:q.PopupService},{type:c.LocalizationService}]}});rt.prototype.registerTemplate=function(e,t){-1<e&&(this.templates[e]=t)},rt.prototype.getTemplate=function(e){if(-1<e)return this.templates[e]};var T=rt;function rt(){this.templates=[]}T.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,deps:[],target:a.ɵɵFactoryTarget.Injectable}),T.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:s.Injectable}]});u(E,ot=b),E.prototype.show=function(e){var t;this.tooltipTemplateRef=this.templateService.getTemplate(e.layerIndex),this.tooltipTemplateRef&&(this.popupClasses=Object.assign(((t={"k-tooltip":!0,"k-map-tooltip":!0})[e.className]=Boolean(e.className),t),this.classNames),this.tooltipContext=e,ot.prototype.show.call(this,e))},E.prototype.containsElement=function(e){if(this.popupRef)return ne(e,this.popupRef.popupElement)},E.prototype.onInit=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.mouseleaveSubscription=t.popupRef.popupElement.addEventListener("mouseleave",function(e){t.leave.emit(e)})}),this.popupRef.popupElement.classList.add(this.wrapperClass)},E.prototype.hide=function(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),this.tooltipTemplateRef=null,ot.prototype.hide.call(this)};var ot,b=E;function E(e,t,n,r){var o=ot.call(this,e,n)||this;return o.popupService=e,o.templateService=t,o.localizationService=n,o.ngZone=r,o.tooltipContext={},o.animate=!0,o.wrapperClass="k-tooltip-wrapper",o.leave=new s.EventEmitter,o.popupClasses={},o}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[{token:q.PopupService},{token:T},{token:c.LocalizationService},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),b.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"kendo-map-tooltip-popup",inputs:{animate:"animate",classNames:"classNames",popupSettings:"popupSettings",wrapperClass:"wrapperClass"},outputs:{leave:"leave"},providers:[o.PopupService,{provide:o.POPUP_CONTAINER,useFactory:nt}],viewQueries:[{propertyName:"templateRef",first:!0,predicate:["content"],descendants:!0,static:!0}],usesInheritance:!0,ngImport:a,template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <div class="k-tooltip-content">\n <ng-template [ngTemplateOutlet]="tooltipTemplateRef"\n [ngTemplateOutletContext]="tooltipContext">\n </ng-template>\n </div>\n </div>\n </ng-template>\n ',isInline:!0,directives:[{type:l.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:l.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:l.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:s.Component,args:[{providers:[o.PopupService,{provide:o.POPUP_CONTAINER,useFactory:nt}],selector:"kendo-map-tooltip-popup",template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <div class="k-tooltip-content">\n <ng-template [ngTemplateOutlet]="tooltipTemplateRef"\n [ngTemplateOutletContext]="tooltipContext">\n </ng-template>\n </div>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:q.PopupService},{type:T},{type:c.LocalizationService},{type:a.NgZone}]},propDecorators:{templateRef:[{type:s.ViewChild,args:["content",{static:!0}]}],animate:[{type:s.Input}],classNames:[{type:s.Input}],popupSettings:[{type:s.Input}],wrapperClass:[{type:s.Input}],leave:[{type:s.Output}]}});O.prototype.ngAfterViewInit=function(){var t=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var e=t.renderer.listen(t.surfaceElement.nativeElement,"mouseleave",t.mapMouseleave.bind(t));t.domSubscriptions=function(){e()}}),this.setDirection(),this.initConfig(),this.subscriptions=this.localizationService.changes.subscribe(function(){return t.setDirection()})},O.prototype.ngAfterViewChecked=function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})},O.prototype.ngOnChanges=function(e){var t=this.configurationService.store;X(e,t),t.popupSettings=null,this.configurationService.push(t)},O.prototype.ngOnDestroy=function(){this.destroyed=!0,this.optionsChange&&this.optionsChange.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe()},O.prototype.resize=function(){this.instance},O.prototype.onResize=function(){this.autoResize&&this.resize()},Object.defineProperty(O.prototype,"canRender",{get:function(){return n.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),O.prototype.init=function(){var e,t;this.canRender&&(e=this.surfaceElement.nativeElement,t=new oe(this),this.createInstance(e,t))},O.prototype.initConfig=function(){var t=this;n.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.optionsChange=t.configurationService.changes.pipe(N.tap(function(e){t.options=e})).subscribe(function(){t.instance?t.instance.setOptions(t.options):t.init()})})},O.prototype.createInstance=function(e,t){this.instance=new j.Map(e,this.options,this.theme,{observer:t,rtl:this.rtl,sender:this})},O.prototype.activeEmitter=function(e){e=this["click"===e?"mapClick":e];if(e&&e.emit&&n.hasObservers(e))return e},O.prototype.trigger=function(e,t){var n,r=this.activeEmitter(e);if(r)return n=this.instanceEventService.create(e,t,this),this.run(function(){r.emit(n)}),n.isDefaultPrevented&&n.isDefaultPrevented()},O.prototype.run=function(e,t,n){(t=void 0===t?!0:t)?(n&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),n&&this.detectChanges())},O.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},O.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(O.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!1,configurable:!0}),O.prototype.onShowTooltip=function(e){var t=this;this.run(function(){t.tooltipInstance.show(e)},!0,!0)},O.prototype.onHideTooltip=function(){var e=this;this.run(function(){e.tooltipInstance.hide()},!0,!0)},O.prototype.tooltipMouseleave=function(e){var e=e.relatedTarget,t=this.element.nativeElement;!this.instance||e&&ne(e,t)||this.tooltipInstance.hide()},O.prototype.mapMouseleave=function(e){var e=e.relatedTarget,t=this.element.nativeElement;!this.instance||e&&(this.tooltipInstance.containsElement(e)||ne(e,t))||this.tooltipInstance.hide()};l=O;function O(e,t,n,r,o,i,a){this.configurationService=e,this.instanceEventService=t,this.element=n,this.localizationService=r,this.changeDetector=o,this.ngZone=i,this.renderer=a,this.resizeRateLimit=10,this.zoom=3,this.beforeReset=new s.EventEmitter,this.mapClick=new s.EventEmitter,this.markerActivate=new s.EventEmitter,this.markerClick=new s.EventEmitter,this.markerCreated=new s.EventEmitter,this.panEnd=new s.EventEmitter,this.pan=new s.EventEmitter,this.reset=new s.EventEmitter,this.shapeClick=new s.EventEmitter,this.shapeCreated=new s.EventEmitter,this.shapeFeatureCreated=new s.EventEmitter,this.shapeMouseEnter=new s.EventEmitter,this.shapeMouseLeave=new s.EventEmitter,this.zoomStart=new s.EventEmitter,this.zoomEnd=new s.EventEmitter,this.theme=null,this.rtl=!1,A.validatePackage(et)}l.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,deps:[{token:m},{token:We},{token:a.ElementRef},{token:c.LocalizationService},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),l.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:l,selector:"kendo-map",inputs:{resizeRateLimit:"resizeRateLimit",center:"center",controls:"controls",minZoom:"minZoom",maxZoom:"maxZoom",minSize:"minSize",pannable:"pannable",popupSettings:"popupSettings",wraparound:"wraparound",zoom:"zoom",zoomable:"zoomable"},outputs:{beforeReset:"beforeReset",mapClick:"mapClick",markerActivate:"markerActivate",markerClick:"markerClick",markerCreated:"markerCreated",panEnd:"panEnd",pan:"pan",reset:"reset",shapeClick:"shapeClick",shapeCreated:"shapeCreated",shapeFeatureCreated:"shapeFeatureCreated",shapeMouseEnter:"shapeMouseEnter",shapeMouseLeave:"shapeMouseLeave",zoomStart:"zoomStart",zoomEnd:"zoomEnd"},providers:[m,We,r.LocalizationService,T,{provide:r.L10N_PREFIX,useValue:"kendo.map"}],viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0},{propertyName:"tooltipInstance",first:!0,predicate:b,descendants:!0,static:!0}],exportAs:["kendoChart"],usesOnChanges:!0,ngImport:a,template:'\n <div #surface></div>\n <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-map-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:b,selector:"kendo-map-tooltip-popup",inputs:["animate","classNames","popupSettings","wrapperClass"],outputs:["leave"]},{type:t.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,decorators:[{type:s.Component,args:[{selector:"kendo-map",changeDetection:s.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[m,We,r.LocalizationService,T,{provide:r.L10N_PREFIX,useValue:"kendo.map"}],template:'\n <div #surface></div>\n <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-map-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:m},{type:We},{type:a.ElementRef},{type:c.LocalizationService},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Renderer2}]},propDecorators:{resizeRateLimit:[{type:s.Input}],center:[{type:s.Input}],controls:[{type:s.Input}],minZoom:[{type:s.Input}],maxZoom:[{type:s.Input}],minSize:[{type:s.Input}],pannable:[{type:s.Input}],popupSettings:[{type:s.Input}],wraparound:[{type:s.Input}],zoom:[{type:s.Input}],zoomable:[{type:s.Input}],beforeReset:[{type:s.Output}],mapClick:[{type:s.Output}],markerActivate:[{type:s.Output}],markerClick:[{type:s.Output}],markerCreated:[{type:s.Output}],panEnd:[{type:s.Output}],pan:[{type:s.Output}],reset:[{type:s.Output}],shapeClick:[{type:s.Output}],shapeCreated:[{type:s.Output}],shapeFeatureCreated:[{type:s.Output}],shapeMouseEnter:[{type:s.Output}],shapeMouseLeave:[{type:s.Output}],zoomStart:[{type:s.Output}],zoomEnd:[{type:s.Output}],surfaceElement:[{type:s.ViewChild,args:["surface",{static:!0}]}],tooltipInstance:[{type:s.ViewChild,args:[b,{static:!0}]}]}});z.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},z.prototype.ngAfterContentInit=function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})},z.prototype.processChanges=function(e){var t;!this.children||(t=this.children.toArray().indexOf(e.sender))<0||(this.items[t]=e.options,e.sender.index=t,this.change())},z.prototype.readItems=function(){this.items=this.children.map(function(e,t){return e.index=t,e.options}),this.change()},z.prototype.change=function(){this.configurationService.notify(new U(this.configKey,0===this.items.length?void 0:this.items))};o=z;function z(e,t,n){var r=this;this.configKey=e,this.configurationService=t,this.collectionService=n,this.items=[],this.subscription=n.itemChanges.subscribe(function(e){return r.processChanges(e)})}o.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:o,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),o.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:o,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:m},{type:y}]}});u(at,it=o);var it,t=at;function at(e,t){var n=it.call(this,"layers",e,t)||this;return n.configurationService=e,n.collectionService=t,n}t.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:t,deps:[{token:m},{token:y}],target:a.ɵɵFactoryTarget.Component}),t.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"kendo-map-layers",providers:[y],queries:[{propertyName:"children",predicate:D}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:t,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y],selector:"kendo-map-layers",template:""}]}],ctorParameters:function(){return[{type:m},{type:y}]},propDecorators:{children:[{type:s.ContentChildren,args:[D]}]}});u(pt,st=D);var st,R=pt;function pt(e,t,n){var r=st.call(this,"marker",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}R.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:R,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),R.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:R,selector:"kendo-map-marker-layer",inputs:{data:"data",locationField:"locationField",titleField:"titleField",shape:"shape"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return R})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:R,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return R})}],selector:"kendo-map-marker-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],titleField:[{type:s.Input}],shape:[{type:s.Input}]}});u(lt,ct=D);var ct,V=lt;function lt(e,t,n){var r=ct.call(this,"shape",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}V.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),V.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:V,selector:"kendo-map-shape-layer",inputs:{data:"data",style:"style"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return V})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return V})}],selector:"kendo-map-shape-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],style:[{type:s.Input}]}});u(mt,ut=D);var ut,M=mt;function mt(e,t,n){var r=ut.call(this,"tile",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}M.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:M,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),M.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:M,selector:"kendo-map-tile-layer",inputs:{tileSize:"tileSize",subdomains:"subdomains",urlTemplate:"urlTemplate"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return M})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:M,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return M})}],selector:"kendo-map-tile-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{tileSize:[{type:s.Input}],subdomains:[{type:s.Input}],urlTemplate:[{type:s.Input}]}});var gt,r=function(e){this.templateRef=e},o=(r.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:r,deps:[{token:a.TemplateRef,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),r.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:r,selector:"[kendoMapBubbleTooltipTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:r,decorators:[{type:s.Directive,args:[{selector:"[kendoMapBubbleTooltipTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef,decorators:[{type:s.Optional}]}]}}),function(e){this.templateRef=e}),w=(o.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:o,deps:[{token:a.TemplateRef,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),o.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"[kendoMapMarkerTooltipTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:o,decorators:[{type:s.Directive,args:[{selector:"[kendoMapMarkerTooltipTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef,decorators:[{type:s.Optional}]}]}}),function(e){this.templateRef=e}),F=(w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:[{token:a.TemplateRef,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),w.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"[kendoMapShapeTooltipTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:s.Directive,args:[{selector:"[kendoMapShapeTooltipTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef,decorators:[{type:s.Optional}]}]}}),u(yt,gt=v),yt.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.bubbleTooltipTemplate)?void 0:e.templateRef)},yt);function yt(e,t,n){var r=gt.call(this,"tooltip",e)||this;return r.configurationService=e,r.templateService=t,r.layer=n,r}F.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:F,deps:[{token:m},{token:T},{token:D}],target:a.ɵɵFactoryTarget.Component}),F.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-map-bubble-layer-tooltip",queries:[{propertyName:"bubbleTooltipTemplate",first:!0,predicate:r,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:F,decorators:[{type:s.Component,args:[{selector:"kendo-map-bubble-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m},{type:T},{type:D}]},propDecorators:{bubbleTooltipTemplate:[{type:s.ContentChild,args:[r,{static:!1}]}]}});u(dt,ht=v),dt.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.markerTooltipTemplate)?void 0:e.templateRef)};var ht,P=dt;function dt(e,t,n){var r=ht.call(this,"tooltip",e)||this;return r.configurationService=e,r.templateService=t,r.layer=n,r}P.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,deps:[{token:m},{token:T},{token:D}],target:a.ɵɵFactoryTarget.Component}),P.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:P,selector:"kendo-map-marker-layer-tooltip",queries:[{propertyName:"markerTooltipTemplate",first:!0,predicate:o,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,decorators:[{type:s.Component,args:[{selector:"kendo-map-marker-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m},{type:T},{type:D}]},propDecorators:{markerTooltipTemplate:[{type:s.ContentChild,args:[o,{static:!1}]}]}});u(ft,vt=v),ft.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.shapeTooltipTemplate)?void 0:e.templateRef)};var vt,v=ft;function ft(e,t,n){var r=vt.call(this,"tooltip",e)||this;return r.configurationService=e,r.templateService=t,r.layer=n,r}v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:[{token:m},{token:T},{token:D}],target:a.ɵɵFactoryTarget.Component}),v.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:v,selector:"kendo-map-shape-layer-tooltip",queries:[{propertyName:"shapeTooltipTemplate",first:!0,predicate:w,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,decorators:[{type:s.Component,args:[{selector:"kendo-map-shape-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m},{type:T},{type:D}]},propDecorators:{shapeTooltipTemplate:[{type:s.ContentChild,args:[w,{static:!1}]}]}});var Ct=[I,F,r,C,t,l,R,P,o,V,v,w,M,b],x=function(){};x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:[],target:a.ɵɵFactoryTarget.NgModule}),x.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,declarations:[I,F,r,C,t,l,R,P,o,V,v,w,M,b],imports:[Z.CommonModule,_.TooltipsModule,n.ResizeSensorModule],exports:[I,F,r,C,t,l,R,P,o,V,v,w,M,b]}),x.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,imports:[[Z.CommonModule,_.TooltipsModule,n.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,decorators:[{type:s.NgModule,args:[{declarations:[Ct],imports:[Z.CommonModule,_.TooltipsModule,n.ResizeSensorModule],exports:[Ct]}]}]}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return j.Extent}}),Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return j.Location}}),e.BeforeResetEvent=se,e.BubbleLayerComponent=I,e.BubbleTooltipComponent=F,e.BubbleTooltipTemplateDirective=r,e.LayerTooltipComponent=C,e.LayersComponent=t,e.MapClickEvent=le,e.MapComponent=l,e.MapModule=x,e.MarkerActivateEvent=ge,e.MarkerClickEvent=de,e.MarkerCreatedEvent=Ie,e.MarkerLayerComponent=R,e.MarkerTooltipComponent=P,e.MarkerTooltipTemplateDirective=o,e.PanEndEvent=Se,e.PanEvent=Oe,e.ResetEvent=Ve,e.ShapeClickEvent=Fe,e.ShapeCreatedEvent=Le,e.ShapeFeatureCreatedEvent=Ne,e.ShapeLayerComponent=V,e.ShapeMouseEnterEvent=qe,e.ShapeMouseLeaveEvent=Ue,e.ShapeTooltipComponent=v,e.ShapeTooltipTemplateDirective=w,e.TileLayerComponent=M,e.TooltipPopupComponent=b,e.ZoomEndEvent=h,e.ZoomStartEvent=k,e.bodyFactory=nt,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/platform-browser"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-charts"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularMap",["exports","@angular/core","rxjs","@angular/platform-browser","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-charts","@progress/kendo-licensing","rxjs/operators","@progress/kendo-angular-popup","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularMap={},e.ng.core,e.rxjs,e.ng.platformBrowser,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoCharts,e.KendoLicensing,e.rxjs.operators,e.KendoAngularPopup,e.ng.common)}(this,function(e,s,L,t,n,o,j,A,N,r,Z){"use strict";function i(n){if(n&&n.__esModule)return n;var o=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),o.default=n,Object.freeze(o)}var a=i(s),p=i(t),t=i(n),c=i(o),_=i(r),l=i(Z),q=function(e,t){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function K(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}Object.create;var B=function(e,t){this.key=e,this.value=t},m=(g.prototype.initSource=function(){this.changes=this.source.asObservable()},g.prototype.push=function(e){this.store=e,this.next()},g.prototype.notify=function(e){this.set(e.key,e.value),this.next()},g.prototype.set=function(e,t){for(var n=this.store,o=e.split("."),r=o.shift();0<o.length;)n=n[r]=n[r]||{},r=o.shift();n[r]=t},g.prototype.next=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})},g);function g(e){this.ngZone=e,this.store={},this.source=new L.BehaviorSubject({}),this.initSource()}m.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:m,deps:[{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),m.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:m}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:m,decorators:[{type:s.Injectable}],ctorParameters:function(){return[{type:a.NgZone}]}});var U=function(e,t){this.sender=e,this.options=t},y=(H.prototype.notify=function(e){this.source.next(e)},H);function H(){this.source=new L.Subject,this.itemChanges=this.source.asObservable()}function Q(e,t){for(var n in e){var o;e.hasOwnProperty(n)&&(void 0===(o=e[n].currentValue)?delete t[n]:t[n]=o)}}function X(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=new s.SimpleChange(null,e[t],!1));return n}y.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,deps:[],target:a.ɵɵFactoryTarget.Injectable}),y.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,decorators:[{type:s.Injectable}],ctorParameters:function(){return[]}});v.prototype.ngOnChanges=function(e){var t=this.configurationService.store;Q(e,t),this.configurationService.push(t)},v.prototype.notifyChanges=function(e){this.ngOnChanges(X(e))},v.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},v.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new U(this,this.options))};var h=v;function v(e,t){var n=this;this.configurationService=e,this.collectionService=t,this.index=-1,this.options={},this.subscription=e.changes.subscribe(function(e){n.options=e,n.notify()})}h.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,deps:[{token:m},{token:y}],target:a.ɵɵFactoryTarget.Directive}),h.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:h,usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:m},{type:y}]}});f.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},f.prototype.ngOnChanges=function(e){Q(e,this.store),this.notify()},f.prototype.notifyChanges=function(e){this.ngOnChanges(X(e))},f.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},f.prototype.notify=function(){this.configurationService.notify(new B(this.configKey,this.store))};var d=f;function f(e,t){if(this.configKey=e,this.configurationService=t,this.store={},void 0===e)throw new Error("Configuration key not set")}d.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),d.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:d,usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:m}]}});u(G,$=d),Object.defineProperty(G.prototype,"layerTooltipTemplateRef",{get:function(){return this.layerTooltipTemplate},enumerable:!1,configurable:!0});var $,C=G;function G(e){var t=$.call(this,"tooltip",e)||this;return t.configurationService=e,t}C.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,deps:[{token:m}],target:a.ɵɵFactoryTarget.Component}),C.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-map-layer-tooltip",queries:[{propertyName:"layerTooltipTemplate",first:!0,predicate:s.TemplateRef,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"kendo-map-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m}]},propDecorators:{layerTooltipTemplate:[{type:s.ContentChild,args:[s.TemplateRef,{static:!1}]}]}});u(W,J=h),W.prototype.ngOnChanges=function(e){this.configurationService.store.type=this.type;var t=e.attribution;t&&this.sanitizer&&(t.currentValue=this.sanitizer.sanitize(s.SecurityContext.HTML,t.currentValue)),J.prototype.ngOnChanges.call(this,e)},Object.defineProperty(W.prototype,"layerTooltipTemplateRef",{get:function(){if(this.layerTooltip)return this.layerTooltip.layerTooltipTemplateRef},enumerable:!1,configurable:!0});var J,D=W;function W(e,t,n,o){var r=J.call(this,t,n)||this;return r.type=e,r.configurationService=t,r.collectionService=n,r.sanitizer=o,r}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,inputs:{attribution:"attribution",extent:"extent",maxZoom:"maxZoom",minZoom:"minZoom",opacity:"opacity",zIndex:"zIndex"},queries:[{propertyName:"layerTooltip",first:!0,predicate:C,descendants:!0}],usesInheritance:!0,usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{attribution:[{type:s.Input}],extent:[{type:s.Input}],maxZoom:[{type:s.Input}],minZoom:[{type:s.Input}],opacity:[{type:s.Input}],zIndex:[{type:s.Input}],layerTooltip:[{type:s.ContentChild,args:[C,{static:!1}]}]}});u(ee,Y=D);var Y,I=ee;function ee(e,t,n){var o=Y.call(this,"bubble",e,t,n)||this;return o.configurationService=e,o.collectionService=t,o.sanitizer=n,o}function te(e,t){for(var n=e;n&&n!==t;)n=n.parentNode;return!!n}I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),I.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"kendo-map-bubble-layer",inputs:{data:"data",locationField:"locationField",valueField:"valueField",symbol:"symbol",style:"style",maxSize:"maxSize",minSize:"minSize"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return I})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return I})}],selector:"kendo-map-bubble-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],valueField:[{type:s.Input}],symbol:[{type:s.Input}],style:[{type:s.Input}],maxSize:[{type:s.Input}],minSize:[{type:s.Input}]}});u(re,ne=j.InstanceObserver);var ne,oe=re;function re(e){e=ne.call(this,e)||this;return e.handlerMap={hideTooltip:"onHideTooltip",init:"onInit",render:"onRender",showTooltip:"onShowTooltip",centerChange:"onCenterChange",zoomChange:"onZoomChange"},e}var ie,h=function(e){this.sender=e},ae=(h.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),h.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:h,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:h,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0}]}}),u(se,ie=h),se);function se(e,t){return ie.call(this,t)||this}u(le,pe=h);var pe,ce=le;function le(e,t){t=pe.call(this,t)||this;return t.location=e.location,t.originalEvent=e.originalEvent,t}u(ge,ue=h);var ue,me=ge;function ge(e,t){t=ue.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(ve,ye=h);var ye,he=ve;function ve(e,t){t=ye.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(fe,de=h),fe.prototype.preventDefault=function(){this.prevented=!0},fe.prototype.isDefaultPrevented=function(){return this.prevented};var de,k=fe;function fe(){var e=de.apply(this,function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([],K(arguments)))||this;return e.prevented=!1,e}k.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,deps:null,target:a.ɵɵFactoryTarget.Directive}),k.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:k,usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:k,decorators:[{type:s.Directive}]});u(Ie,Ce=k);var Ce,De=Ie;function Ie(e,t){t=Ce.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(Se,ke=h);var ke,be=Se;function Se(e,t){t=ke.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}u(Oe,Te=h);var Te,Ee=Oe;function Oe(e,t){t=Te.call(this,t)||this;return t.origin=e.origin,t.center=e.center,t.originalEvent=e.originalEvent,t}u(Re,ze=h);var ze,Ve=Re;function Re(e,t){return ze.call(this,t)||this}u(Pe,we=h);var we,Me=Pe;function Pe(e,t){t=we.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(Le,Fe=h);var Fe,xe=Le;function Le(e,t){t=Fe.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.dataItem=e.shape.dataItem,t.location=e.shape.location,t}u(Ne,je=h);var je,Ae=Ne;function Ne(e,t){t=je.call(this,t)||this;return t.dataItem=e.dataItem,t.layer=e.layer,t.group=e.group,t.properties=e.properties,t}u(qe,Ze=h);var Ze,_e=qe;function qe(e,t){t=Ze.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(Ue,Ke=h);var Ke,Be=Ue;function Ue(e,t){t=Ke.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(Qe,He=h);var He,h=Qe;function Qe(e,t){t=He.call(this,t)||this;return t.originalEvent=e.originalEvent,t}u($e,Xe=k);var Xe,k=$e;function $e(e,t){t=Xe.call(this,t)||this;return t.originalEvent=e.originalEvent,t}var Ge={beforeReset:ae,click:ce,markerActivate:me,markerClick:he,markerCreated:De,panEnd:be,pan:Ee,reset:Ve,shapeClick:Me,shapeCreated:xe,shapeFeatureCreated:Ae,shapeMouseEnter:_e,shapeMouseLeave:Be,zoomEnd:h,zoomStart:k},Je=(We.prototype.create=function(e,t,n){if(Ge[e])return new Ge[e](t,n)},We);function We(){}var Ye={name:"@progress/kendo-angular-map",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1658934477,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},et={horizontal:"fit",vertical:"fit"},b=(Object.defineProperty(S.prototype,"active",{get:function(){return null!==this.popupRef},enumerable:!1,configurable:!0}),S.prototype.show=function(e){e=this.position(e.anchor);this.popupRef?this.popupRef.popup.instance.offset=e:(this.popupRef=this.popupService.open(Object.assign({offset:e,popupAlign:{vertical:"bottom",horizontal:"center"},animate:this.animate,content:this.templateRef,collision:et,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit())},S.prototype.hide=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},S.prototype.onInit=function(){},S.prototype.ngOnDestroy=function(){this.hide()},S.prototype.position=function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var t=this.popupSettings.appendTo.element.nativeElement,n=t.getBoundingClientRect(),t=this.scrollOffset(t),o=t.scrollLeft,t=t.scrollTop;return{left:e.left-n.left-o,top:e.top-n.top-t}},S.prototype.scrollOffset=function(e){if(!e)return null;for(var t=e.scrollLeft,n=e.scrollTop,o=e.parentElement;o;)t+=o.scrollLeft,n+=o.scrollTop,o=o.parentElement;return{scrollLeft:t,scrollTop:n}},S);function S(e,t){this.popupService=e,this.localizationService=t,this.animate=!0,this.style={position:"relative"},this.popupRef=null}function tt(){if(n.isDocumentAvailable())return new s.ElementRef(document.body)}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[{token:_.PopupService},{token:c.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),b.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:b,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:_.PopupService},{type:c.LocalizationService}]}});nt.prototype.registerTemplate=function(e,t){-1<e&&(this.templates[e]=t)},nt.prototype.getTemplate=function(e){if(-1<e)return this.templates[e]};var T=nt;function nt(){this.templates=[]}T.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,deps:[],target:a.ɵɵFactoryTarget.Injectable}),T.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:s.Injectable}]});u(E,ot=b),E.prototype.show=function(e){var t;this.tooltipTemplateRef=this.templateService.getTemplate(e.layerIndex),this.tooltipTemplateRef&&(this.popupClasses=Object.assign(((t={"k-tooltip":!0,"k-map-tooltip":!0})[e.className]=Boolean(e.className),t),this.classNames),this.tooltipContext=e,ot.prototype.show.call(this,e))},E.prototype.containsElement=function(e){if(this.popupRef)return te(e,this.popupRef.popupElement)},E.prototype.onInit=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.mouseleaveSubscription=t.popupRef.popupElement.addEventListener("mouseleave",function(e){t.leave.emit(e)})}),this.popupRef.popupElement.classList.add(this.wrapperClass)},E.prototype.hide=function(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),this.tooltipTemplateRef=null,ot.prototype.hide.call(this)};var ot,b=E;function E(e,t,n,o){var r=ot.call(this,e,n)||this;return r.popupService=e,r.templateService=t,r.localizationService=n,r.ngZone=o,r.tooltipContext={},r.animate=!0,r.wrapperClass="k-tooltip-wrapper",r.leave=new s.EventEmitter,r.popupClasses={},r}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[{token:_.PopupService},{token:T},{token:c.LocalizationService},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),b.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"kendo-map-tooltip-popup",inputs:{animate:"animate",classNames:"classNames",popupSettings:"popupSettings",wrapperClass:"wrapperClass"},outputs:{leave:"leave"},providers:[r.PopupService,{provide:r.POPUP_CONTAINER,useFactory:tt}],viewQueries:[{propertyName:"templateRef",first:!0,predicate:["content"],descendants:!0,static:!0}],usesInheritance:!0,ngImport:a,template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <div class="k-tooltip-content">\n <ng-template [ngTemplateOutlet]="tooltipTemplateRef"\n [ngTemplateOutletContext]="tooltipContext">\n </ng-template>\n </div>\n </div>\n </ng-template>\n ',isInline:!0,directives:[{type:l.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:l.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:l.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:s.Component,args:[{providers:[r.PopupService,{provide:r.POPUP_CONTAINER,useFactory:tt}],selector:"kendo-map-tooltip-popup",template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <div class="k-tooltip-content">\n <ng-template [ngTemplateOutlet]="tooltipTemplateRef"\n [ngTemplateOutletContext]="tooltipContext">\n </ng-template>\n </div>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:_.PopupService},{type:T},{type:c.LocalizationService},{type:a.NgZone}]},propDecorators:{templateRef:[{type:s.ViewChild,args:["content",{static:!0}]}],animate:[{type:s.Input}],classNames:[{type:s.Input}],popupSettings:[{type:s.Input}],wrapperClass:[{type:s.Input}],leave:[{type:s.Output}]}});O.prototype.ngAfterViewInit=function(){var t=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var e=t.renderer.listen(t.surfaceElement.nativeElement,"mouseleave",t.mapMouseleave.bind(t));t.domSubscriptions=function(){e()}}),this.setDirection(),this.initConfig(),this.subscriptions=this.localizationService.changes.subscribe(function(){return t.setDirection()})},O.prototype.ngAfterViewChecked=function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})},O.prototype.ngOnChanges=function(e){this.instance&&(e.zoom&&(this.instance.zoom(e.zoom.currentValue),delete e.zoom),e.center&&(this.instance.center(e.center.currentValue),delete e.center),0===Object.keys(e).length)||(Q(e,e=this.configurationService.store),e.popupSettings=null,this.configurationService.push(e))},O.prototype.ngOnDestroy=function(){this.destroyed=!0,this.optionsChange&&this.optionsChange.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(O.prototype,"layers",{get:function(){var e;return null==(e=this.instance)?void 0:e.layers},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"extent",{get:function(){var e;return null==(e=this.instance)?void 0:e.extent()},set:function(e){var t;null!=(t=this.instance)&&t.extent(e)},enumerable:!1,configurable:!0}),O.prototype.resize=function(){},O.prototype.viewSize=function(){var e;return null==(e=this.instance)?void 0:e.viewSize()},O.prototype.eventOffset=function(e){var t;return null==(t=this.instance)?void 0:t.eventOffset(e)},O.prototype.eventToLayer=function(e){var t;return null==(t=this.instance)?void 0:t.eventToLayer(e)},O.prototype.eventToLocation=function(e){var t;return null==(t=this.instance)?void 0:t.eventToLocation(e)},O.prototype.eventToView=function(e){var t;return null==(t=this.instance)?void 0:t.eventToView(e)},O.prototype.layerToLocation=function(e,t){var n;return null==(n=this.instance)?void 0:n.layerToLocation(e,t)},O.prototype.locationToLayer=function(e,t){var n;return null==(n=this.instance)?void 0:n.locationToLayer(e,t)},O.prototype.locationToView=function(e){var t;return null==(t=this.instance)?void 0:t.locationToView(e)},O.prototype.viewToLocation=function(e,t){var n;return null==(n=this.instance)?void 0:n.viewToLocation(e,t)},O.prototype.onResize=function(){this.autoResize&&this.resize()},Object.defineProperty(O.prototype,"canRender",{get:function(){return n.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"autoResize",{get:function(){return 0<this.resizeRateLimit},enumerable:!1,configurable:!0}),O.prototype.init=function(){var e,t;this.canRender&&(e=this.surfaceElement.nativeElement,t=new oe(this),this.createInstance(e,t))},O.prototype.initConfig=function(){var t=this;n.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.optionsChange=t.configurationService.changes.pipe(N.tap(function(e){t.options=e})).subscribe(function(){t.instance?t.instance.setOptions(t.options):t.init()})})},O.prototype.createInstance=function(e,t){this.instance=new j.Map(e,this.options,this.theme,{observer:t,rtl:this.rtl,sender:this})},O.prototype.activeEmitter=function(e){e=this["click"===e?"mapClick":e];if(e&&e.emit&&n.hasObservers(e))return e},O.prototype.trigger=function(e,t){var n,o=this.activeEmitter(e);if(o)return n=this.instanceEventService.create(e,t,this),!this.instance&&t.sender&&(this.instance=t.sender),this.run(function(){o.emit(n)}),n.isDefaultPrevented&&n.isDefaultPrevented()},O.prototype.run=function(e,t,n){(t=void 0===t?!0:t)?(n&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),n&&this.detectChanges())},O.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},O.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(O.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!1,configurable:!0}),O.prototype.onShowTooltip=function(e){var t=this;this.run(function(){t.tooltipInstance.show(e)},!0,!0)},O.prototype.onHideTooltip=function(){var e=this;this.run(function(){e.tooltipInstance.hide()},!0,!0)},O.prototype.onCenterChange=function(e){this.centerChange.next(e.center)},O.prototype.onZoomChange=function(e){this.zoomChange.next(e.zoom)},O.prototype.tooltipMouseleave=function(e){var e=e.relatedTarget,t=this.element.nativeElement;!this.instance||e&&te(e,t)||this.tooltipInstance.hide()},O.prototype.mapMouseleave=function(e){var e=e.relatedTarget,t=this.element.nativeElement;!this.instance||e&&(this.tooltipInstance.containsElement(e)||te(e,t))||this.tooltipInstance.hide()};l=O;function O(e,t,n,o,r,i,a){this.configurationService=e,this.instanceEventService=t,this.element=n,this.localizationService=o,this.changeDetector=r,this.ngZone=i,this.renderer=a,this.resizeRateLimit=10,this.zoom=3,this.beforeReset=new s.EventEmitter,this.mapClick=new s.EventEmitter,this.markerActivate=new s.EventEmitter,this.markerClick=new s.EventEmitter,this.markerCreated=new s.EventEmitter,this.panEnd=new s.EventEmitter,this.pan=new s.EventEmitter,this.reset=new s.EventEmitter,this.shapeClick=new s.EventEmitter,this.shapeCreated=new s.EventEmitter,this.shapeFeatureCreated=new s.EventEmitter,this.shapeMouseEnter=new s.EventEmitter,this.shapeMouseLeave=new s.EventEmitter,this.zoomStart=new s.EventEmitter,this.zoomEnd=new s.EventEmitter,this.centerChange=new s.EventEmitter,this.zoomChange=new s.EventEmitter,this.theme=null,this.rtl=!1,A.validatePackage(Ye)}l.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,deps:[{token:m},{token:Je},{token:a.ElementRef},{token:c.LocalizationService},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),l.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:l,selector:"kendo-map",inputs:{resizeRateLimit:"resizeRateLimit",center:"center",controls:"controls",minZoom:"minZoom",maxZoom:"maxZoom",minSize:"minSize",pannable:"pannable",popupSettings:"popupSettings",wraparound:"wraparound",zoom:"zoom",zoomable:"zoomable"},outputs:{beforeReset:"beforeReset",mapClick:"mapClick",markerActivate:"markerActivate",markerClick:"markerClick",markerCreated:"markerCreated",panEnd:"panEnd",pan:"pan",reset:"reset",shapeClick:"shapeClick",shapeCreated:"shapeCreated",shapeFeatureCreated:"shapeFeatureCreated",shapeMouseEnter:"shapeMouseEnter",shapeMouseLeave:"shapeMouseLeave",zoomStart:"zoomStart",zoomEnd:"zoomEnd",centerChange:"centerChange",zoomChange:"zoomChange"},providers:[m,Je,o.LocalizationService,T,{provide:o.L10N_PREFIX,useValue:"kendo.map"}],viewQueries:[{propertyName:"surfaceElement",first:!0,predicate:["surface"],descendants:!0,static:!0},{propertyName:"tooltipInstance",first:!0,predicate:b,descendants:!0,static:!0}],exportAs:["kendoChart"],usesOnChanges:!0,ngImport:a,template:'\n <div #surface></div>\n <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-map-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n ',isInline:!0,components:[{type:b,selector:"kendo-map-tooltip-popup",inputs:["animate","classNames","popupSettings","wrapperClass"],outputs:["leave"]},{type:t.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:l,decorators:[{type:s.Component,args:[{selector:"kendo-map",changeDetection:s.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[m,Je,o.LocalizationService,T,{provide:o.L10N_PREFIX,useValue:"kendo.map"}],template:'\n <div #surface></div>\n <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-map-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n '}]}],ctorParameters:function(){return[{type:m},{type:Je},{type:a.ElementRef},{type:c.LocalizationService},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Renderer2}]},propDecorators:{resizeRateLimit:[{type:s.Input}],center:[{type:s.Input}],controls:[{type:s.Input}],minZoom:[{type:s.Input}],maxZoom:[{type:s.Input}],minSize:[{type:s.Input}],pannable:[{type:s.Input}],popupSettings:[{type:s.Input}],wraparound:[{type:s.Input}],zoom:[{type:s.Input}],zoomable:[{type:s.Input}],beforeReset:[{type:s.Output}],mapClick:[{type:s.Output}],markerActivate:[{type:s.Output}],markerClick:[{type:s.Output}],markerCreated:[{type:s.Output}],panEnd:[{type:s.Output}],pan:[{type:s.Output}],reset:[{type:s.Output}],shapeClick:[{type:s.Output}],shapeCreated:[{type:s.Output}],shapeFeatureCreated:[{type:s.Output}],shapeMouseEnter:[{type:s.Output}],shapeMouseLeave:[{type:s.Output}],zoomStart:[{type:s.Output}],zoomEnd:[{type:s.Output}],centerChange:[{type:s.Output}],zoomChange:[{type:s.Output}],surfaceElement:[{type:s.ViewChild,args:["surface",{static:!0}]}],tooltipInstance:[{type:s.ViewChild,args:[b,{static:!0}]}]}});z.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},z.prototype.ngAfterContentInit=function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})},z.prototype.processChanges=function(e){var t;!this.children||(t=this.children.toArray().indexOf(e.sender))<0||(this.items[t]=e.options,e.sender.index=t,this.change())},z.prototype.readItems=function(){this.items=this.children.map(function(e,t){return e.index=t,e.options}),this.change()},z.prototype.change=function(){this.configurationService.notify(new B(this.configKey,0===this.items.length?void 0:this.items))};r=z;function z(e,t,n){var o=this;this.configKey=e,this.configurationService=t,this.collectionService=n,this.items=[],this.subscription=n.itemChanges.subscribe(function(e){return o.processChanges(e)})}r.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:r,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),r.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:r,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:r,decorators:[{type:s.Directive}],ctorParameters:function(){return[{type:void 0},{type:m},{type:y}]}});u(it,rt=r);var rt,t=it;function it(e,t){var n=rt.call(this,"layers",e,t)||this;return n.configurationService=e,n.collectionService=t,n}t.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:t,deps:[{token:m},{token:y}],target:a.ɵɵFactoryTarget.Component}),t.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"kendo-map-layers",providers:[y],queries:[{propertyName:"children",predicate:D}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:t,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[y],selector:"kendo-map-layers",template:""}]}],ctorParameters:function(){return[{type:m},{type:y}]},propDecorators:{children:[{type:s.ContentChildren,args:[D]}]}});u(st,at=D);var at,V=st;function st(e,t,n){var o=at.call(this,"marker",e,t,n)||this;return o.configurationService=e,o.collectionService=t,o.sanitizer=n,o}V.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),V.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:V,selector:"kendo-map-marker-layer",inputs:{data:"data",locationField:"locationField",titleField:"titleField",shape:"shape"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return V})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return V})}],selector:"kendo-map-marker-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],locationField:[{type:s.Input}],titleField:[{type:s.Input}],shape:[{type:s.Input}]}});u(ct,pt=D);var pt,R=ct;function ct(e,t,n){var o=pt.call(this,"shape",e,t,n)||this;return o.configurationService=e,o.collectionService=t,o.sanitizer=n,o}R.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:R,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),R.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:R,selector:"kendo-map-shape-layer",inputs:{data:"data",style:"style"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return R})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:R,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return R})}],selector:"kendo-map-shape-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{data:[{type:s.Input}],style:[{type:s.Input}]}});u(ut,lt=D);var lt,w=ut;function ut(e,t,n){var o=lt.call(this,"tile",e,t,n)||this;return o.configurationService=e,o.collectionService=t,o.sanitizer=n,o}w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:[{token:m},{token:y},{token:p.DomSanitizer}],target:a.ɵɵFactoryTarget.Component}),w.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-map-tile-layer",inputs:{tileSize:"tileSize",subdomains:"subdomains",urlTemplate:"urlTemplate"},providers:[m,{provide:D,useExisting:s.forwardRef(function(){return w})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[m,{provide:D,useExisting:s.forwardRef(function(){return w})}],selector:"kendo-map-tile-layer",template:""}]}],ctorParameters:function(){return[{type:m},{type:y},{type:p.DomSanitizer}]},propDecorators:{tileSize:[{type:s.Input}],subdomains:[{type:s.Input}],urlTemplate:[{type:s.Input}]}});var mt,o=function(e){this.templateRef=e},r=(o.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:o,deps:[{token:a.TemplateRef,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),o.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"[kendoMapBubbleTooltipTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:o,decorators:[{type:s.Directive,args:[{selector:"[kendoMapBubbleTooltipTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef,decorators:[{type:s.Optional}]}]}}),function(e){this.templateRef=e}),M=(r.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:r,deps:[{token:a.TemplateRef,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),r.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:r,selector:"[kendoMapMarkerTooltipTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:r,decorators:[{type:s.Directive,args:[{selector:"[kendoMapMarkerTooltipTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef,decorators:[{type:s.Optional}]}]}}),function(e){this.templateRef=e}),P=(M.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:M,deps:[{token:a.TemplateRef,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),M.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:M,selector:"[kendoMapShapeTooltipTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:M,decorators:[{type:s.Directive,args:[{selector:"[kendoMapShapeTooltipTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef,decorators:[{type:s.Optional}]}]}}),u(gt,mt=d),gt.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.bubbleTooltipTemplate)?void 0:e.templateRef)},gt);function gt(e,t,n){var o=mt.call(this,"tooltip",e)||this;return o.configurationService=e,o.templateService=t,o.layer=n,o}P.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,deps:[{token:m},{token:T},{token:D}],target:a.ɵɵFactoryTarget.Component}),P.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:P,selector:"kendo-map-bubble-layer-tooltip",queries:[{propertyName:"bubbleTooltipTemplate",first:!0,predicate:o,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,decorators:[{type:s.Component,args:[{selector:"kendo-map-bubble-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m},{type:T},{type:D}]},propDecorators:{bubbleTooltipTemplate:[{type:s.ContentChild,args:[o,{static:!1}]}]}});u(ht,yt=d),ht.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.markerTooltipTemplate)?void 0:e.templateRef)};var yt,F=ht;function ht(e,t,n){var o=yt.call(this,"tooltip",e)||this;return o.configurationService=e,o.templateService=t,o.layer=n,o}F.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:F,deps:[{token:m},{token:T},{token:D}],target:a.ɵɵFactoryTarget.Component}),F.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-map-marker-layer-tooltip",queries:[{propertyName:"markerTooltipTemplate",first:!0,predicate:r,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:F,decorators:[{type:s.Component,args:[{selector:"kendo-map-marker-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m},{type:T},{type:D}]},propDecorators:{markerTooltipTemplate:[{type:s.ContentChild,args:[r,{static:!1}]}]}});u(dt,vt=d),dt.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.shapeTooltipTemplate)?void 0:e.templateRef)};var vt,d=dt;function dt(e,t,n){var o=vt.call(this,"tooltip",e)||this;return o.configurationService=e,o.templateService=t,o.layer=n,o}d.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,deps:[{token:m},{token:T},{token:D}],target:a.ɵɵFactoryTarget.Component}),d.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:d,selector:"kendo-map-shape-layer-tooltip",queries:[{propertyName:"shapeTooltipTemplate",first:!0,predicate:M,descendants:!0}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:s.Component,args:[{selector:"kendo-map-shape-layer-tooltip",template:""}]}],ctorParameters:function(){return[{type:m},{type:T},{type:D}]},propDecorators:{shapeTooltipTemplate:[{type:s.ContentChild,args:[M,{static:!1}]}]}});var ft=[I,P,o,C,t,l,V,F,r,R,d,M,w,b],x=function(){};x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:[],target:a.ɵɵFactoryTarget.NgModule}),x.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,declarations:[I,P,o,C,t,l,V,F,r,R,d,M,w,b],imports:[Z.CommonModule,n.ResizeSensorModule],exports:[I,P,o,C,t,l,V,F,r,R,d,M,w,b]}),x.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,imports:[[Z.CommonModule,n.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,decorators:[{type:s.NgModule,args:[{declarations:[ft],imports:[Z.CommonModule,n.ResizeSensorModule],exports:[ft]}]}]}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return j.Extent}}),Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return j.Location}}),e.BeforeResetEvent=ae,e.BubbleLayerComponent=I,e.BubbleTooltipComponent=P,e.BubbleTooltipTemplateDirective=o,e.LayerTooltipComponent=C,e.LayersComponent=t,e.MapClickEvent=ce,e.MapComponent=l,e.MapModule=x,e.MarkerActivateEvent=me,e.MarkerClickEvent=he,e.MarkerCreatedEvent=De,e.MarkerLayerComponent=V,e.MarkerTooltipComponent=F,e.MarkerTooltipTemplateDirective=r,e.PanEndEvent=be,e.PanEvent=Ee,e.ResetEvent=Ve,e.ShapeClickEvent=Me,e.ShapeCreatedEvent=xe,e.ShapeFeatureCreatedEvent=Ae,e.ShapeLayerComponent=R,e.ShapeMouseEnterEvent=_e,e.ShapeMouseLeaveEvent=Be,e.ShapeTooltipComponent=d,e.ShapeTooltipTemplateDirective=M,e.TileLayerComponent=w,e.TooltipPopupComponent=b,e.ZoomEndEvent=h,e.ZoomStartEvent=k,e.bodyFactory=tt,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -13,7 +13,9 @@ export class MapInstanceObserver extends InstanceObserver {
13
13
  hideTooltip: 'onHideTooltip',
14
14
  init: 'onInit',
15
15
  render: 'onRender',
16
- showTooltip: 'onShowTooltip'
16
+ showTooltip: 'onShowTooltip',
17
+ centerChange: 'onCenterChange',
18
+ zoomChange: 'onZoomChange'
17
19
  };
18
20
  }
19
21
  }
@@ -141,6 +141,14 @@ export class MapComponent {
141
141
  * Fired when the map zoom level has changed.
142
142
  */
143
143
  this.zoomEnd = new EventEmitter();
144
+ /**
145
+ * Fired when the map center has been changed.
146
+ */
147
+ this.centerChange = new EventEmitter();
148
+ /**
149
+ * Fired when the map zoom level has been changed.
150
+ */
151
+ this.zoomChange = new EventEmitter();
144
152
  this.theme = null;
145
153
  this.rtl = false;
146
154
  validatePackage(packageMetadata);
@@ -169,6 +177,19 @@ export class MapComponent {
169
177
  }
170
178
  }
171
179
  ngOnChanges(changes) {
180
+ if (this.instance) {
181
+ if (changes.zoom) {
182
+ this.instance.zoom(changes.zoom.currentValue);
183
+ delete changes['zoom'];
184
+ }
185
+ if (changes.center) {
186
+ this.instance.center(changes.center.currentValue);
187
+ delete changes['center'];
188
+ }
189
+ if (Object.keys(changes).length === 0) {
190
+ return;
191
+ }
192
+ }
172
193
  const store = this.configurationService.store;
173
194
  copyChanges(changes, store);
174
195
  store.popupSettings = null;
@@ -191,14 +212,126 @@ export class MapComponent {
191
212
  this.subscriptions.unsubscribe();
192
213
  }
193
214
  }
215
+ /**
216
+ * The marker layers instances.
217
+ */
218
+ get layers() {
219
+ var _a;
220
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.layers;
221
+ }
222
+ /**
223
+ * Gets the extent (visible area) of the map.
224
+ */
225
+ get extent() {
226
+ var _a;
227
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.extent();
228
+ }
229
+ /**
230
+ * Sets the extent (visible area) of the map.
231
+ */
232
+ set extent(extent) {
233
+ var _a;
234
+ (_a = this.instance) === null || _a === void 0 ? void 0 : _a.extent(extent);
235
+ }
194
236
  /**
195
237
  * Detects the size of the container and redraws the Map.
196
238
  * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
197
239
  */
198
240
  resize() {
199
- if (this.instance) {
200
- //this.instance.resize();
201
- }
241
+ //this.instance?.resize();
242
+ }
243
+ /**
244
+ * Retrieves the size of the visible portion of the map.
245
+ *
246
+ * @returns The size (width and height) of the visible portion of the map.
247
+ */
248
+ viewSize() {
249
+ var _a;
250
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.viewSize();
251
+ }
252
+ /**
253
+ * Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map.
254
+ *
255
+ * @param e The mouse event.
256
+ * @returns The event coordinates relative to the map element.
257
+ */
258
+ eventOffset(e) {
259
+ var _a;
260
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventOffset(e);
261
+ }
262
+ /**
263
+ * Retrieves projected (layer) coordinates that correspond to this mouse event. Layer coordinates are absolute and change only when the zoom level is changed.
264
+ *
265
+ * @param e The mouse event.
266
+ * @returns The projected (layer) coordinates that correspond to this event.
267
+ */
268
+ eventToLayer(e) {
269
+ var _a;
270
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventToLayer(e);
271
+ }
272
+ /**
273
+ * Retrieves the geographic location that correspond to this mouse event.
274
+ *
275
+ * @param e The mouse event.
276
+ * @returns The geographic location that correspond to this mouse event.
277
+ */
278
+ eventToLocation(e) {
279
+ var _a;
280
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventToLocation(e);
281
+ }
282
+ /**
283
+ * Retrieves relative (view) coordinates that correspond to this mouse event. Layer elements positioned on these coordinates will appear under the mouse cursor.
284
+ * View coordinates are no longer valid after a map reset.
285
+ *
286
+ * @param e The mouse event.
287
+ * @returns The relative (view) coordinates that correspond to this mouse event.
288
+ */
289
+ eventToView(e) {
290
+ var _a;
291
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventToView(e);
292
+ }
293
+ /**
294
+ * Transforms layer (projected) coordinates to geographical location.
295
+ *
296
+ * @param point The layer (projected) coordinates. An array argument is assumed to be in x, y order.
297
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
298
+ * @returns The geographic location that corresponds to the layer coordinates.
299
+ */
300
+ layerToLocation(point, zoom) {
301
+ var _a;
302
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.layerToLocation(point, zoom);
303
+ }
304
+ /**
305
+ * Returns the layer (projected) coordinates that correspond to a geographical location.
306
+ *
307
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
308
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
309
+ * @returns The layer (projected) coordinates.
310
+ */
311
+ locationToLayer(location, zoom) {
312
+ var _a;
313
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.locationToLayer(location, zoom);
314
+ }
315
+ /**
316
+ * Returns the view (relative) coordinates that correspond to a geographical location.
317
+ *
318
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
319
+ * @returns The view coordinates that correspond to a geographical location.
320
+ */
321
+ locationToView(location) {
322
+ var _a;
323
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.locationToView(location);
324
+ }
325
+ /**
326
+ * Returns the geographical location that correspond to the view (relative) coordinates.
327
+ *
328
+ * @param point The view coordinates. An array argument is assumed to be in x, y order.
329
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
330
+ * @returns The geographic location that corresponds to the view coordinates.
331
+ */
332
+ viewToLocation(point, zoom) {
333
+ var _a;
334
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.viewToLocation(point, zoom);
202
335
  }
203
336
  /**
204
337
  * @hidden
@@ -258,6 +391,10 @@ export class MapComponent {
258
391
  const emitter = this.activeEmitter(name);
259
392
  if (emitter) {
260
393
  const args = this.instanceEventService.create(name, e, this);
394
+ if (!this.instance && e.sender) {
395
+ // Ensure instance reference is populated for events trigger during initialization.
396
+ this.instance = e.sender;
397
+ }
261
398
  this.run(() => {
262
399
  emitter.emit(args);
263
400
  });
@@ -302,6 +439,12 @@ export class MapComponent {
302
439
  this.tooltipInstance.hide();
303
440
  }, true, true);
304
441
  }
442
+ onCenterChange(e) {
443
+ this.centerChange.next(e.center);
444
+ }
445
+ onZoomChange(e) {
446
+ this.zoomChange.next(e.zoom);
447
+ }
305
448
  /**
306
449
  * @hidden
307
450
  */
@@ -324,7 +467,7 @@ export class MapComponent {
324
467
  }
325
468
  }
326
469
  MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.InstanceEventService }, { token: i0.ElementRef }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
327
- MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", wraparound: "wraparound", zoom: "zoom", zoomable: "zoomable" }, outputs: { beforeReset: "beforeReset", mapClick: "mapClick", markerActivate: "markerActivate", markerClick: "markerClick", markerCreated: "markerCreated", panEnd: "panEnd", pan: "pan", reset: "reset", shapeClick: "shapeClick", shapeCreated: "shapeCreated", shapeFeatureCreated: "shapeFeatureCreated", shapeMouseEnter: "shapeMouseEnter", shapeMouseLeave: "shapeMouseLeave", zoomStart: "zoomStart", zoomEnd: "zoomEnd" }, providers: [
470
+ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", wraparound: "wraparound", zoom: "zoom", zoomable: "zoomable" }, outputs: { beforeReset: "beforeReset", mapClick: "mapClick", markerActivate: "markerActivate", markerClick: "markerClick", markerCreated: "markerCreated", panEnd: "panEnd", pan: "pan", reset: "reset", shapeClick: "shapeClick", shapeCreated: "shapeCreated", shapeFeatureCreated: "shapeFeatureCreated", shapeMouseEnter: "shapeMouseEnter", shapeMouseLeave: "shapeMouseLeave", zoomStart: "zoomStart", zoomEnd: "zoomEnd", centerChange: "centerChange", zoomChange: "zoomChange" }, providers: [
328
471
  ConfigurationService,
329
472
  InstanceEventService,
330
473
  LocalizationService,
@@ -414,6 +557,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
414
557
  type: Output
415
558
  }], zoomEnd: [{
416
559
  type: Output
560
+ }], centerChange: [{
561
+ type: Output
562
+ }], zoomChange: [{
563
+ type: Output
417
564
  }], surfaceElement: [{
418
565
  type: ViewChild,
419
566
  args: ['surface', { static: true }]
@@ -5,7 +5,6 @@
5
5
  import { CommonModule } from '@angular/common';
6
6
  import { NgModule } from '@angular/core';
7
7
  import { ResizeSensorModule } from '@progress/kendo-angular-common';
8
- import { TooltipsModule } from '@progress/kendo-angular-tooltip';
9
8
  import { MAP_DIRECTIVES } from './map.directives';
10
9
  import * as i0 from "@angular/core";
11
10
  import * as i1 from "./map/bubble-layer.component";
@@ -28,13 +27,13 @@ import * as i14 from "./tooltip/tooltip-popup.component";
28
27
  export class MapModule {
29
28
  }
30
29
  MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
31
- MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent], imports: [CommonModule, TooltipsModule, ResizeSensorModule], exports: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent] });
32
- MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, TooltipsModule, ResizeSensorModule]] });
30
+ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent] });
31
+ MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
33
32
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, decorators: [{
34
33
  type: NgModule,
35
34
  args: [{
36
35
  declarations: [MAP_DIRECTIVES],
37
- imports: [CommonModule, TooltipsModule, ResizeSensorModule],
36
+ imports: [CommonModule, ResizeSensorModule],
38
37
  exports: [MAP_DIRECTIVES]
39
38
  }]
40
39
  }] });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-map',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1658738530,
12
+ publishDate: 1658934477,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -18,7 +18,6 @@ import * as i1 from '@progress/kendo-angular-popup';
18
18
  import { PopupService, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
19
19
  import * as i4 from '@angular/common';
20
20
  import { CommonModule } from '@angular/common';
21
- import { TooltipsModule } from '@progress/kendo-angular-tooltip';
22
21
 
23
22
  /**
24
23
  * @hidden
@@ -375,7 +374,9 @@ class MapInstanceObserver extends InstanceObserver {
375
374
  hideTooltip: 'onHideTooltip',
376
375
  init: 'onInit',
377
376
  render: 'onRender',
378
- showTooltip: 'onShowTooltip'
377
+ showTooltip: 'onShowTooltip',
378
+ centerChange: 'onCenterChange',
379
+ zoomChange: 'onZoomChange'
379
380
  };
380
381
  }
381
382
  }
@@ -690,7 +691,7 @@ const packageMetadata = {
690
691
  name: '@progress/kendo-angular-map',
691
692
  productName: 'Kendo UI for Angular',
692
693
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
693
- publishDate: 1658738530,
694
+ publishDate: 1658934477,
694
695
  version: '',
695
696
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
696
697
  };
@@ -1031,6 +1032,14 @@ class MapComponent {
1031
1032
  * Fired when the map zoom level has changed.
1032
1033
  */
1033
1034
  this.zoomEnd = new EventEmitter();
1035
+ /**
1036
+ * Fired when the map center has been changed.
1037
+ */
1038
+ this.centerChange = new EventEmitter();
1039
+ /**
1040
+ * Fired when the map zoom level has been changed.
1041
+ */
1042
+ this.zoomChange = new EventEmitter();
1034
1043
  this.theme = null;
1035
1044
  this.rtl = false;
1036
1045
  validatePackage(packageMetadata);
@@ -1059,6 +1068,19 @@ class MapComponent {
1059
1068
  }
1060
1069
  }
1061
1070
  ngOnChanges(changes) {
1071
+ if (this.instance) {
1072
+ if (changes.zoom) {
1073
+ this.instance.zoom(changes.zoom.currentValue);
1074
+ delete changes['zoom'];
1075
+ }
1076
+ if (changes.center) {
1077
+ this.instance.center(changes.center.currentValue);
1078
+ delete changes['center'];
1079
+ }
1080
+ if (Object.keys(changes).length === 0) {
1081
+ return;
1082
+ }
1083
+ }
1062
1084
  const store = this.configurationService.store;
1063
1085
  copyChanges(changes, store);
1064
1086
  store.popupSettings = null;
@@ -1081,14 +1103,126 @@ class MapComponent {
1081
1103
  this.subscriptions.unsubscribe();
1082
1104
  }
1083
1105
  }
1106
+ /**
1107
+ * The marker layers instances.
1108
+ */
1109
+ get layers() {
1110
+ var _a;
1111
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.layers;
1112
+ }
1113
+ /**
1114
+ * Gets the extent (visible area) of the map.
1115
+ */
1116
+ get extent() {
1117
+ var _a;
1118
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.extent();
1119
+ }
1120
+ /**
1121
+ * Sets the extent (visible area) of the map.
1122
+ */
1123
+ set extent(extent) {
1124
+ var _a;
1125
+ (_a = this.instance) === null || _a === void 0 ? void 0 : _a.extent(extent);
1126
+ }
1084
1127
  /**
1085
1128
  * Detects the size of the container and redraws the Map.
1086
1129
  * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
1087
1130
  */
1088
1131
  resize() {
1089
- if (this.instance) {
1090
- //this.instance.resize();
1091
- }
1132
+ //this.instance?.resize();
1133
+ }
1134
+ /**
1135
+ * Retrieves the size of the visible portion of the map.
1136
+ *
1137
+ * @returns The size (width and height) of the visible portion of the map.
1138
+ */
1139
+ viewSize() {
1140
+ var _a;
1141
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.viewSize();
1142
+ }
1143
+ /**
1144
+ * Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map.
1145
+ *
1146
+ * @param e The mouse event.
1147
+ * @returns The event coordinates relative to the map element.
1148
+ */
1149
+ eventOffset(e) {
1150
+ var _a;
1151
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventOffset(e);
1152
+ }
1153
+ /**
1154
+ * Retrieves projected (layer) coordinates that correspond to this mouse event. Layer coordinates are absolute and change only when the zoom level is changed.
1155
+ *
1156
+ * @param e The mouse event.
1157
+ * @returns The projected (layer) coordinates that correspond to this event.
1158
+ */
1159
+ eventToLayer(e) {
1160
+ var _a;
1161
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventToLayer(e);
1162
+ }
1163
+ /**
1164
+ * Retrieves the geographic location that correspond to this mouse event.
1165
+ *
1166
+ * @param e The mouse event.
1167
+ * @returns The geographic location that correspond to this mouse event.
1168
+ */
1169
+ eventToLocation(e) {
1170
+ var _a;
1171
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventToLocation(e);
1172
+ }
1173
+ /**
1174
+ * Retrieves relative (view) coordinates that correspond to this mouse event. Layer elements positioned on these coordinates will appear under the mouse cursor.
1175
+ * View coordinates are no longer valid after a map reset.
1176
+ *
1177
+ * @param e The mouse event.
1178
+ * @returns The relative (view) coordinates that correspond to this mouse event.
1179
+ */
1180
+ eventToView(e) {
1181
+ var _a;
1182
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.eventToView(e);
1183
+ }
1184
+ /**
1185
+ * Transforms layer (projected) coordinates to geographical location.
1186
+ *
1187
+ * @param point The layer (projected) coordinates. An array argument is assumed to be in x, y order.
1188
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
1189
+ * @returns The geographic location that corresponds to the layer coordinates.
1190
+ */
1191
+ layerToLocation(point, zoom) {
1192
+ var _a;
1193
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.layerToLocation(point, zoom);
1194
+ }
1195
+ /**
1196
+ * Returns the layer (projected) coordinates that correspond to a geographical location.
1197
+ *
1198
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
1199
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
1200
+ * @returns The layer (projected) coordinates.
1201
+ */
1202
+ locationToLayer(location, zoom) {
1203
+ var _a;
1204
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.locationToLayer(location, zoom);
1205
+ }
1206
+ /**
1207
+ * Returns the view (relative) coordinates that correspond to a geographical location.
1208
+ *
1209
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
1210
+ * @returns The view coordinates that correspond to a geographical location.
1211
+ */
1212
+ locationToView(location) {
1213
+ var _a;
1214
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.locationToView(location);
1215
+ }
1216
+ /**
1217
+ * Returns the geographical location that correspond to the view (relative) coordinates.
1218
+ *
1219
+ * @param point The view coordinates. An array argument is assumed to be in x, y order.
1220
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
1221
+ * @returns The geographic location that corresponds to the view coordinates.
1222
+ */
1223
+ viewToLocation(point, zoom) {
1224
+ var _a;
1225
+ return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.viewToLocation(point, zoom);
1092
1226
  }
1093
1227
  /**
1094
1228
  * @hidden
@@ -1148,6 +1282,10 @@ class MapComponent {
1148
1282
  const emitter = this.activeEmitter(name);
1149
1283
  if (emitter) {
1150
1284
  const args = this.instanceEventService.create(name, e, this);
1285
+ if (!this.instance && e.sender) {
1286
+ // Ensure instance reference is populated for events trigger during initialization.
1287
+ this.instance = e.sender;
1288
+ }
1151
1289
  this.run(() => {
1152
1290
  emitter.emit(args);
1153
1291
  });
@@ -1192,6 +1330,12 @@ class MapComponent {
1192
1330
  this.tooltipInstance.hide();
1193
1331
  }, true, true);
1194
1332
  }
1333
+ onCenterChange(e) {
1334
+ this.centerChange.next(e.center);
1335
+ }
1336
+ onZoomChange(e) {
1337
+ this.zoomChange.next(e.zoom);
1338
+ }
1195
1339
  /**
1196
1340
  * @hidden
1197
1341
  */
@@ -1214,7 +1358,7 @@ class MapComponent {
1214
1358
  }
1215
1359
  }
1216
1360
  MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, deps: [{ token: ConfigurationService }, { token: InstanceEventService }, { token: i0.ElementRef }, { token: i3$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1217
- MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", wraparound: "wraparound", zoom: "zoom", zoomable: "zoomable" }, outputs: { beforeReset: "beforeReset", mapClick: "mapClick", markerActivate: "markerActivate", markerClick: "markerClick", markerCreated: "markerCreated", panEnd: "panEnd", pan: "pan", reset: "reset", shapeClick: "shapeClick", shapeCreated: "shapeCreated", shapeFeatureCreated: "shapeFeatureCreated", shapeMouseEnter: "shapeMouseEnter", shapeMouseLeave: "shapeMouseLeave", zoomStart: "zoomStart", zoomEnd: "zoomEnd" }, providers: [
1361
+ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", wraparound: "wraparound", zoom: "zoom", zoomable: "zoomable" }, outputs: { beforeReset: "beforeReset", mapClick: "mapClick", markerActivate: "markerActivate", markerClick: "markerClick", markerCreated: "markerCreated", panEnd: "panEnd", pan: "pan", reset: "reset", shapeClick: "shapeClick", shapeCreated: "shapeCreated", shapeFeatureCreated: "shapeFeatureCreated", shapeMouseEnter: "shapeMouseEnter", shapeMouseLeave: "shapeMouseLeave", zoomStart: "zoomStart", zoomEnd: "zoomEnd", centerChange: "centerChange", zoomChange: "zoomChange" }, providers: [
1218
1362
  ConfigurationService,
1219
1363
  InstanceEventService,
1220
1364
  LocalizationService,
@@ -1304,6 +1448,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1304
1448
  type: Output
1305
1449
  }], zoomEnd: [{
1306
1450
  type: Output
1451
+ }], centerChange: [{
1452
+ type: Output
1453
+ }], zoomChange: [{
1454
+ type: Output
1307
1455
  }], surfaceElement: [{
1308
1456
  type: ViewChild,
1309
1457
  args: ['surface', { static: true }]
@@ -1696,13 +1844,13 @@ const MAP_DIRECTIVES = [
1696
1844
  class MapModule {
1697
1845
  }
1698
1846
  MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1699
- MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent], imports: [CommonModule, TooltipsModule, ResizeSensorModule], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent] });
1700
- MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, TooltipsModule, ResizeSensorModule]] });
1847
+ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent] });
1848
+ MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
1701
1849
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, decorators: [{
1702
1850
  type: NgModule,
1703
1851
  args: [{
1704
1852
  declarations: [MAP_DIRECTIVES],
1705
- imports: [CommonModule, TooltipsModule, ResizeSensorModule],
1853
+ imports: [CommonModule, ResizeSensorModule],
1706
1854
  exports: [MAP_DIRECTIVES]
1707
1855
  }]
1708
1856
  }] });
@@ -5,7 +5,8 @@
5
5
  import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChange } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { PopupSettings } from '@progress/kendo-angular-popup';
8
- import { Location, Map, MapControls } from '@progress/kendo-charts';
8
+ import { Extent, Location, Map, MapControls, MapLayer } from '@progress/kendo-charts';
9
+ import { geometry } from '@progress/kendo-drawing';
9
10
  import { Subscription } from 'rxjs';
10
11
  import { ConfigurationService } from './common/configuration.service';
11
12
  import { MapInstanceObserver } from './common/map-instance-observer';
@@ -50,7 +51,7 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
50
51
  /**
51
52
  * The map center. Coordinates are listed as `[Latitude, Longitude]`.
52
53
  */
53
- center: Location | [number, number] | number[];
54
+ center: number[];
54
55
  /**
55
56
  * The configuration of built-in map controls.
56
57
  */
@@ -179,6 +180,14 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
179
180
  * Fired when the map zoom level has changed.
180
181
  */
181
182
  zoomEnd: EventEmitter<ZoomEndEvent>;
183
+ /**
184
+ * Fired when the map center has been changed.
185
+ */
186
+ centerChange: EventEmitter<number[]>;
187
+ /**
188
+ * Fired when the map zoom level has been changed.
189
+ */
190
+ zoomChange: EventEmitter<number>;
182
191
  surfaceElement: ElementRef;
183
192
  tooltipInstance: TooltipPopupComponent;
184
193
  instance: Map;
@@ -198,11 +207,92 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
198
207
  [propertyName: string]: SimpleChange;
199
208
  }): void;
200
209
  ngOnDestroy(): void;
210
+ /**
211
+ * The marker layers instances.
212
+ */
213
+ get layers(): MapLayer[];
214
+ /**
215
+ * Gets the extent (visible area) of the map.
216
+ */
217
+ get extent(): Extent;
218
+ /**
219
+ * Sets the extent (visible area) of the map.
220
+ */
221
+ set extent(extent: Extent);
201
222
  /**
202
223
  * Detects the size of the container and redraws the Map.
203
224
  * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
204
225
  */
205
226
  resize(): void;
227
+ /**
228
+ * Retrieves the size of the visible portion of the map.
229
+ *
230
+ * @returns The size (width and height) of the visible portion of the map.
231
+ */
232
+ viewSize(): {
233
+ width: number;
234
+ height: number;
235
+ };
236
+ /**
237
+ * Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map.
238
+ *
239
+ * @param e The mouse event.
240
+ * @returns The event coordinates relative to the map element.
241
+ */
242
+ eventOffset(e: any): geometry.Point;
243
+ /**
244
+ * Retrieves projected (layer) coordinates that correspond to this mouse event. Layer coordinates are absolute and change only when the zoom level is changed.
245
+ *
246
+ * @param e The mouse event.
247
+ * @returns The projected (layer) coordinates that correspond to this event.
248
+ */
249
+ eventToLayer(e: any): geometry.Point;
250
+ /**
251
+ * Retrieves the geographic location that correspond to this mouse event.
252
+ *
253
+ * @param e The mouse event.
254
+ * @returns The geographic location that correspond to this mouse event.
255
+ */
256
+ eventToLocation(e: any): geometry.Point;
257
+ /**
258
+ * Retrieves relative (view) coordinates that correspond to this mouse event. Layer elements positioned on these coordinates will appear under the mouse cursor.
259
+ * View coordinates are no longer valid after a map reset.
260
+ *
261
+ * @param e The mouse event.
262
+ * @returns The relative (view) coordinates that correspond to this mouse event.
263
+ */
264
+ eventToView(e: any): geometry.Point;
265
+ /**
266
+ * Transforms layer (projected) coordinates to geographical location.
267
+ *
268
+ * @param point The layer (projected) coordinates. An array argument is assumed to be in x, y order.
269
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
270
+ * @returns The geographic location that corresponds to the layer coordinates.
271
+ */
272
+ layerToLocation(point: geometry.Point | number[], zoom?: number): Location;
273
+ /**
274
+ * Returns the layer (projected) coordinates that correspond to a geographical location.
275
+ *
276
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
277
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
278
+ * @returns The layer (projected) coordinates.
279
+ */
280
+ locationToLayer(location: Location | number[], zoom?: number): geometry.Point;
281
+ /**
282
+ * Returns the view (relative) coordinates that correspond to a geographical location.
283
+ *
284
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
285
+ * @returns The view coordinates that correspond to a geographical location.
286
+ */
287
+ locationToView(location: Location | number[]): geometry.Point;
288
+ /**
289
+ * Returns the geographical location that correspond to the view (relative) coordinates.
290
+ *
291
+ * @param point The view coordinates. An array argument is assumed to be in x, y order.
292
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
293
+ * @returns The geographic location that corresponds to the view coordinates.
294
+ */
295
+ viewToLocation(point: geometry.Point | number[], zoom?: number): Location;
206
296
  /**
207
297
  * @hidden
208
298
  */
@@ -220,6 +310,8 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
220
310
  protected get isRTL(): boolean;
221
311
  protected onShowTooltip(e: any): void;
222
312
  protected onHideTooltip(): void;
313
+ protected onCenterChange(e: any): void;
314
+ protected onZoomChange(e: any): void;
223
315
  /**
224
316
  * @hidden
225
317
  */
@@ -229,5 +321,5 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
229
321
  */
230
322
  mapMouseleave(e: any): void;
231
323
  static ɵfac: i0.ɵɵFactoryDeclaration<MapComponent, never>;
232
- static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "kendo-map", ["kendoChart"], { "resizeRateLimit": "resizeRateLimit"; "center": "center"; "controls": "controls"; "minZoom": "minZoom"; "maxZoom": "maxZoom"; "minSize": "minSize"; "pannable": "pannable"; "popupSettings": "popupSettings"; "wraparound": "wraparound"; "zoom": "zoom"; "zoomable": "zoomable"; }, { "beforeReset": "beforeReset"; "mapClick": "mapClick"; "markerActivate": "markerActivate"; "markerClick": "markerClick"; "markerCreated": "markerCreated"; "panEnd": "panEnd"; "pan": "pan"; "reset": "reset"; "shapeClick": "shapeClick"; "shapeCreated": "shapeCreated"; "shapeFeatureCreated": "shapeFeatureCreated"; "shapeMouseEnter": "shapeMouseEnter"; "shapeMouseLeave": "shapeMouseLeave"; "zoomStart": "zoomStart"; "zoomEnd": "zoomEnd"; }, never, never>;
324
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "kendo-map", ["kendoChart"], { "resizeRateLimit": "resizeRateLimit"; "center": "center"; "controls": "controls"; "minZoom": "minZoom"; "maxZoom": "maxZoom"; "minSize": "minSize"; "pannable": "pannable"; "popupSettings": "popupSettings"; "wraparound": "wraparound"; "zoom": "zoom"; "zoomable": "zoomable"; }, { "beforeReset": "beforeReset"; "mapClick": "mapClick"; "markerActivate": "markerActivate"; "markerClick": "markerClick"; "markerCreated": "markerCreated"; "panEnd": "panEnd"; "pan": "pan"; "reset": "reset"; "shapeClick": "shapeClick"; "shapeCreated": "shapeCreated"; "shapeFeatureCreated": "shapeFeatureCreated"; "shapeMouseEnter": "shapeMouseEnter"; "shapeMouseLeave": "shapeMouseLeave"; "zoomStart": "zoomStart"; "zoomEnd": "zoomEnd"; "centerChange": "centerChange"; "zoomChange": "zoomChange"; }, never, never>;
233
325
  }
package/map.module.d.ts CHANGED
@@ -18,13 +18,12 @@ import * as i12 from "./tooltip/shape-tooltip-template.directive";
18
18
  import * as i13 from "./map/tile-layer.component";
19
19
  import * as i14 from "./tooltip/tooltip-popup.component";
20
20
  import * as i15 from "@angular/common";
21
- import * as i16 from "@progress/kendo-angular-tooltip";
22
- import * as i17 from "@progress/kendo-angular-common";
21
+ import * as i16 from "@progress/kendo-angular-common";
23
22
  /**
24
23
  * Sample module
25
24
  */
26
25
  export declare class MapModule {
27
26
  static ɵfac: i0.ɵɵFactoryDeclaration<MapModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent], [typeof i15.CommonModule, typeof i16.TooltipsModule, typeof i17.ResizeSensorModule], [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent]>;
27
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent], [typeof i15.CommonModule, typeof i16.ResizeSensorModule], [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent]>;
29
28
  static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
30
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-map",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-dev.202207271508",
4
4
  "description": "Kendo UI Map for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -25,7 +25,7 @@
25
25
  "friendlyName": "Map"
26
26
  },
27
27
  "dependencies": {
28
- "@progress/kendo-charts": "^1.24.0",
28
+ "@progress/kendo-charts": "dev",
29
29
  "@progress/kendo-schematics": "^3.0.0",
30
30
  "tslib": "^2.3.1"
31
31
  },
@@ -34,6 +34,7 @@
34
34
  "@angular/core": "12 - 14",
35
35
  "@progress/kendo-angular-common": "^3.0.0",
36
36
  "@progress/kendo-angular-l10n": "^4.0.0",
37
+ "@progress/kendo-angular-popup": "^5.0.0",
37
38
  "@progress/kendo-drawing": "^1.1.2",
38
39
  "@progress/kendo-licensing": "^1.0.0",
39
40
  "rxjs": "^6.4.0 || ^7.0.0"