@progress/kendo-angular-map 0.2.1 → 0.3.0
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")):"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,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),_=i(o),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 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 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,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 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 r;e.hasOwnProperty(n)&&(void 0===(r=e[n].currentValue)?delete t[n]:t[n]=r)}}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[]}});d.prototype.ngOnChanges=function(e){var t=this.configurationService.store;Q(e,t),this.configurationService.push(t)},d.prototype.notifyChanges=function(e){this.ngOnChanges(X(e))},d.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},d.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new U(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){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 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(G,$=v),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,r){var o=J.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(ee,Y=D);var Y,I=ee;function ee(e,t,n){var r=Y.call(this,"bubble",e,t,n)||this;return r.configurationService=e,r.collectionService=t,r.sanitizer=n,r}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(oe,ne=j.InstanceObserver);var ne,re=oe;function oe(e){e=ne.call(this,e)||this;return e.handlerMap={hideTooltip:"onHideTooltip",init:"onInit",render:"onRender",showTooltip:"onShowTooltip"},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(de,ye=h);var ye,he=de;function de(e,t){t=ye.call(this,t)||this;return t.marker=e.marker,t.layer=e.layer,t}u(fe,ve=h),fe.prototype.preventDefault=function(){this.prevented=!0},fe.prototype.isDefaultPrevented=function(){return this.prevented};var ve,k=fe;function fe(){var e=ve.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))}([],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(Ve,ze=h);var ze,Re=Ve;function Ve(e,t){return ze.call(this,t)||this}u(Fe,Me=h);var Me,we=Fe;function Fe(e,t){t=Me.call(this,t)||this;return t.layer=e.layer,t.shape=e.shape,t.originalEvent=e.originalEvent,t}u(Le,Pe=h);var Pe,xe=Le;function Le(e,t){t=Pe.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:Re,shapeClick:we,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:1658754843,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),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 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,rt=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,rt.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,rt.prototype.hide.call(this)};var rt,b=E;function E(e,t,n,r){var o=rt.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:_.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: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:[o.PopupService,{provide:o.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){var t=this.configurationService.store;Q(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 re(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&&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,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(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"},providers:[m,Je,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,Je,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: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}],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))};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(it,ot=o);var ot,t=it;function it(e,t){var n=ot.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,R=st;function st(e,t,n){var r=at.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(ct,pt=D);var pt,V=ct;function ct(e,t,n){var r=pt.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(ut,lt=D);var lt,M=ut;function ut(e,t,n){var r=lt.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 mt,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(gt,mt=v),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 r=mt.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(ht,yt=v),ht.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.markerTooltipTemplate)?void 0:e.templateRef)};var yt,P=ht;function ht(e,t,n){var r=yt.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(vt,dt=v),vt.prototype.ngAfterContentChecked=function(){var e;this.templateService.registerTemplate(this.layer.index,null==(e=this.shapeTooltipTemplate)?void 0:e.templateRef)};var dt,v=vt;function vt(e,t,n){var r=dt.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 ft=[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,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,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=F,e.BubbleTooltipTemplateDirective=r,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=R,e.MarkerTooltipComponent=P,e.MarkerTooltipTemplateDirective=o,e.PanEndEvent=be,e.PanEvent=Ee,e.ResetEvent=Re,e.ShapeClickEvent=we,e.ShapeCreatedEvent=xe,e.ShapeFeatureCreatedEvent=Ae,e.ShapeLayerComponent=V,e.ShapeMouseEnterEvent=_e,e.ShapeMouseLeaveEvent=Be,e.ShapeTooltipComponent=v,e.ShapeTooltipTemplateDirective=w,e.TileLayerComponent=M,e.TooltipPopupComponent=b,e.ZoomEndEvent=h,e.ZoomStartEvent=k,e.bodyFactory=tt,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){var o;return n&&n.__esModule?n:(o=Object.create(null),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:1661261110,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){var t,n,o;return this.popupSettings&&this.popupSettings.appendTo?(t=(o=this.popupSettings.appendTo.element.nativeElement).getBoundingClientRect(),n=(o=this.scrollOffset(o)).scrollLeft,o=o.scrollTop,{left:e.left-t.left-n,top:e.top-t.top-o}):e},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.onInit=function(e){this.instance=e.sender},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
|
}
|
package/esm2015/map.component.js
CHANGED
|
@@ -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
|
-
|
|
200
|
-
|
|
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
|
});
|
|
@@ -292,6 +429,9 @@ export class MapComponent {
|
|
|
292
429
|
get isRTL() {
|
|
293
430
|
return Boolean(this.localizationService.rtl);
|
|
294
431
|
}
|
|
432
|
+
onInit(e) {
|
|
433
|
+
this.instance = e.sender;
|
|
434
|
+
}
|
|
295
435
|
onShowTooltip(e) {
|
|
296
436
|
this.run(() => {
|
|
297
437
|
this.tooltipInstance.show(e);
|
|
@@ -302,6 +442,12 @@ export class MapComponent {
|
|
|
302
442
|
this.tooltipInstance.hide();
|
|
303
443
|
}, true, true);
|
|
304
444
|
}
|
|
445
|
+
onCenterChange(e) {
|
|
446
|
+
this.centerChange.next(e.center);
|
|
447
|
+
}
|
|
448
|
+
onZoomChange(e) {
|
|
449
|
+
this.zoomChange.next(e.zoom);
|
|
450
|
+
}
|
|
305
451
|
/**
|
|
306
452
|
* @hidden
|
|
307
453
|
*/
|
|
@@ -324,7 +470,7 @@ export class MapComponent {
|
|
|
324
470
|
}
|
|
325
471
|
}
|
|
326
472
|
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: [
|
|
473
|
+
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
474
|
ConfigurationService,
|
|
329
475
|
InstanceEventService,
|
|
330
476
|
LocalizationService,
|
|
@@ -414,6 +560,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
414
560
|
type: Output
|
|
415
561
|
}], zoomEnd: [{
|
|
416
562
|
type: Output
|
|
563
|
+
}], centerChange: [{
|
|
564
|
+
type: Output
|
|
565
|
+
}], zoomChange: [{
|
|
566
|
+
type: Output
|
|
417
567
|
}], surfaceElement: [{
|
|
418
568
|
type: ViewChild,
|
|
419
569
|
args: ['surface', { static: true }]
|
|
@@ -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:
|
|
12
|
+
publishDate: 1661261110,
|
|
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
|
};
|
|
@@ -374,7 +374,9 @@ class MapInstanceObserver extends InstanceObserver {
|
|
|
374
374
|
hideTooltip: 'onHideTooltip',
|
|
375
375
|
init: 'onInit',
|
|
376
376
|
render: 'onRender',
|
|
377
|
-
showTooltip: 'onShowTooltip'
|
|
377
|
+
showTooltip: 'onShowTooltip',
|
|
378
|
+
centerChange: 'onCenterChange',
|
|
379
|
+
zoomChange: 'onZoomChange'
|
|
378
380
|
};
|
|
379
381
|
}
|
|
380
382
|
}
|
|
@@ -689,7 +691,7 @@ const packageMetadata = {
|
|
|
689
691
|
name: '@progress/kendo-angular-map',
|
|
690
692
|
productName: 'Kendo UI for Angular',
|
|
691
693
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
692
|
-
publishDate:
|
|
694
|
+
publishDate: 1661261110,
|
|
693
695
|
version: '',
|
|
694
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'
|
|
695
697
|
};
|
|
@@ -1030,6 +1032,14 @@ class MapComponent {
|
|
|
1030
1032
|
* Fired when the map zoom level has changed.
|
|
1031
1033
|
*/
|
|
1032
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();
|
|
1033
1043
|
this.theme = null;
|
|
1034
1044
|
this.rtl = false;
|
|
1035
1045
|
validatePackage(packageMetadata);
|
|
@@ -1058,6 +1068,19 @@ class MapComponent {
|
|
|
1058
1068
|
}
|
|
1059
1069
|
}
|
|
1060
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
|
+
}
|
|
1061
1084
|
const store = this.configurationService.store;
|
|
1062
1085
|
copyChanges(changes, store);
|
|
1063
1086
|
store.popupSettings = null;
|
|
@@ -1080,14 +1103,126 @@ class MapComponent {
|
|
|
1080
1103
|
this.subscriptions.unsubscribe();
|
|
1081
1104
|
}
|
|
1082
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
|
+
}
|
|
1083
1127
|
/**
|
|
1084
1128
|
* Detects the size of the container and redraws the Map.
|
|
1085
1129
|
* Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
|
|
1086
1130
|
*/
|
|
1087
1131
|
resize() {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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);
|
|
1091
1226
|
}
|
|
1092
1227
|
/**
|
|
1093
1228
|
* @hidden
|
|
@@ -1147,6 +1282,10 @@ class MapComponent {
|
|
|
1147
1282
|
const emitter = this.activeEmitter(name);
|
|
1148
1283
|
if (emitter) {
|
|
1149
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
|
+
}
|
|
1150
1289
|
this.run(() => {
|
|
1151
1290
|
emitter.emit(args);
|
|
1152
1291
|
});
|
|
@@ -1181,6 +1320,9 @@ class MapComponent {
|
|
|
1181
1320
|
get isRTL() {
|
|
1182
1321
|
return Boolean(this.localizationService.rtl);
|
|
1183
1322
|
}
|
|
1323
|
+
onInit(e) {
|
|
1324
|
+
this.instance = e.sender;
|
|
1325
|
+
}
|
|
1184
1326
|
onShowTooltip(e) {
|
|
1185
1327
|
this.run(() => {
|
|
1186
1328
|
this.tooltipInstance.show(e);
|
|
@@ -1191,6 +1333,12 @@ class MapComponent {
|
|
|
1191
1333
|
this.tooltipInstance.hide();
|
|
1192
1334
|
}, true, true);
|
|
1193
1335
|
}
|
|
1336
|
+
onCenterChange(e) {
|
|
1337
|
+
this.centerChange.next(e.center);
|
|
1338
|
+
}
|
|
1339
|
+
onZoomChange(e) {
|
|
1340
|
+
this.zoomChange.next(e.zoom);
|
|
1341
|
+
}
|
|
1194
1342
|
/**
|
|
1195
1343
|
* @hidden
|
|
1196
1344
|
*/
|
|
@@ -1213,7 +1361,7 @@ class MapComponent {
|
|
|
1213
1361
|
}
|
|
1214
1362
|
}
|
|
1215
1363
|
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 });
|
|
1216
|
-
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: [
|
|
1364
|
+
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: [
|
|
1217
1365
|
ConfigurationService,
|
|
1218
1366
|
InstanceEventService,
|
|
1219
1367
|
LocalizationService,
|
|
@@ -1303,6 +1451,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1303
1451
|
type: Output
|
|
1304
1452
|
}], zoomEnd: [{
|
|
1305
1453
|
type: Output
|
|
1454
|
+
}], centerChange: [{
|
|
1455
|
+
type: Output
|
|
1456
|
+
}], zoomChange: [{
|
|
1457
|
+
type: Output
|
|
1306
1458
|
}], surfaceElement: [{
|
|
1307
1459
|
type: ViewChild,
|
|
1308
1460
|
args: ['surface', { static: true }]
|
package/map.component.d.ts
CHANGED
|
@@ -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:
|
|
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
|
*/
|
|
@@ -218,8 +308,11 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
|
|
|
218
308
|
protected detectChanges(): void;
|
|
219
309
|
protected setDirection(): void;
|
|
220
310
|
protected get isRTL(): boolean;
|
|
311
|
+
protected onInit(e: any): void;
|
|
221
312
|
protected onShowTooltip(e: any): void;
|
|
222
313
|
protected onHideTooltip(): void;
|
|
314
|
+
protected onCenterChange(e: any): void;
|
|
315
|
+
protected onZoomChange(e: any): void;
|
|
223
316
|
/**
|
|
224
317
|
* @hidden
|
|
225
318
|
*/
|
|
@@ -229,5 +322,5 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
|
|
|
229
322
|
*/
|
|
230
323
|
mapMouseleave(e: any): void;
|
|
231
324
|
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>;
|
|
325
|
+
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
326
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-map",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
28
|
+
"@progress/kendo-charts": "^1.24.1",
|
|
29
29
|
"@progress/kendo-schematics": "^3.0.0",
|
|
30
30
|
"tslib": "^2.3.1"
|
|
31
31
|
},
|