@syncfusion/ej2-vue-maps
Version:
The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options for Vue
12 lines (11 loc) • 11.7 kB
JavaScript
/*!
* filename: ej2-vue-maps.umd.min.js
* version : 31.2.2
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-maps"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-maps","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2Maps,e.ej2VueBase,e.ej2Base)}(this,function(t,n,o,a){"use strict";var i=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-initialShapeSelections"}}}),s={name:"e-initialShapeSelections",install:function(e){e.component(s.name,i)}},r=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-initialShapeSelection"}}}),u={name:"e-initialShapeSelection",install:function(e){e.component(u.name,r)}},c=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-markerSettings"}}}),l={name:"e-markerSettings",install:function(e){e.component(l.name,c)}},m=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-markerSetting"}}}),d={name:"e-markerSetting",install:function(e){e.component(d.name,m)}},p=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-colorMappings"}}}),h={name:"e-colorMappings",install:function(e){e.component(h.name,p)}},f=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-colorMapping"}}}),g={name:"e-colorMapping",install:function(e){e.component(g.name,f)}},v=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-bubbleSettings"}}}),j={name:"e-bubbleSettings",install:function(e){e.component(j.name,v)}},b=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-bubbleSetting"}}}),S={name:"e-bubbleSetting",install:function(e){e.component(S.name,b)}},I=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-navigationLineSettings"}}}),x={name:"e-navigationLineSettings",install:function(e){e.component(x.name,I)}},y=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-navigationLineSetting"}}}),C={name:"e-navigationLineSetting",install:function(e){e.component(C.name,y)}},M=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-layers"}}}),E={name:"e-layers",install:function(e){e.component(E.name,M)}},$=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-layer"}}}),D={name:"e-layer",install:function(e){e.component(D.name,$)}},L=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-maps-annotations"}}}),P={name:"e-maps-annotations",install:function(e){e.component(P.name,L)}},k=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-maps-annotation"}}}),T={name:"e-maps-annotation",install:function(e){e.component(T.name,k)}},e=["isLazyUpdate","plugins","allowImageExport","allowPdfExport","allowPrint","annotations","background","baseLayerIndex","border","centerPosition","description","enablePersistence","enableRtl","format","height","layers","legendSettings","locale","mapsArea","margin","projectionType","tabIndex","theme","titleSettings","tooltipDisplayMode","useGroupingSeparator","width","zoomSettings","animationComplete","annotationRendering","beforePrint","bubbleClick","bubbleMouseMove","bubbleRendering","click","dataLabelRendering","doubleClick","itemHighlight","itemSelection","layerRendering","legendRendering","load","loaded","markerClick","markerClusterClick","markerClusterMouseMove","markerClusterRendering","markerDragEnd","markerDragStart","markerMouseMove","markerRendering","mouseMove","onclick","pan","panComplete","resize","rightClick","shapeHighlight","shapeRendering","shapeSelected","tooltipRender","tooltipRenderComplete","zoom","zoomComplete"],U=["dataSource"],O=o.getProps({props:e}),R=O[0],O=O[1],B=Object.keys(O);B.push("modelchanged","update:modelValue");for(var N=0,z=U;N<z.length;N++)B.push("update:"+z[N]);var _=o.vueDefineComponent({name:"MapsComponent",mixins:[o.ComponentBase],props:R,watch:O,emits:B,model:{event:"modelchanged"},provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.Maps({}),propKeys:e,models:U,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-layers":{"e-layer":{"e-initialShapeSelections":"e-initialShapeSelection","e-markerSettings":"e-markerSetting","e-bubbleSettings":{"e-bubbleSetting":{"e-colorMappings":"e-colorMapping"}},"e-navigationLineSettings":"e-navigationLineSetting"}},"e-maps-annotations":"e-maps-annotation"},tagNameMapper:{"e-initialShapeSelections":"e-initialShapeSelection","e-colorMappings":"e-colorMapping","e-maps-annotations":"e-annotations"},isVue3:!o.isExecute,templateCollection:{}}},created:function(){this.ej2Instances._trigger=this.ej2Instances.trigger,this.ej2Instances.trigger=this.trigger,this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=null;return(o.isExecute?e:o.gh)("div",t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],s=this.templateCollection[i];if(s&&s.length){for(var o=0,a=s;o<a.length;o++){var r=a[o];this.destroyPortals(r)}delete this.templateCollection[i]}}},setProperties:function(n,e){var i=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){i.models.map(function(e){t!==e||/datasource/i.test(t)||(i.isVue3?i.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(i.$emit("update:"+t,n[t]),i.$emit("modelchanged",n[t])))})})},trigger:function(e,t,n){var i,s;o.isExecute||(this.models=this.models||this.ej2Instances.referModels),"change"!==e&&"input"!==e||!this.models||0===this.models.length?"actionBegin"===e&&"dateNavigate"===t.requestType&&this.models&&0!==this.models.length&&(s=(i=this.models.toString().match(/currentView|selectedDate/)||[])[0],t)&&i&&!a.isUndefined(t[s])&&(o.isExecute?(this.$emit("update:"+s,t[s]),this):(this.ej2Instances.vueInstance.$emit("update:"+s,t[s]),this.ej2Instances.vueInstance)).$emit("modelchanged",t[s]):(s=(i=this.models.toString().match(/checked|value/)||[])[0],t&&i&&!a.isUndefined(t[s])&&(o.isExecute?("change"===e||this.$props&&!this.$props.isLazyUpdate)&&(this.$emit("update:"+s,t[s]),this.$emit("modelchanged",t[s])):(this.ej2Instances.vueInstance.$emit("update:"+s,t[s]),this.ej2Instances.vueInstance.$emit("modelchanged",t[s]),this.ej2Instances.vueInstance.$emit("update:modelValue",t[s])))),this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t,n)},custom:function(){this.updated()},addLayer:function(e){return this.ej2Instances.addLayer(e)},addMarker:function(e,t){return this.ej2Instances.addMarker(e,t)},destroy:function(){return this.ej2Instances.destroy()},export:function(e,t,n,i){return this.ej2Instances.export(e,t,n,i)},getBingUrlTemplate:function(e){return this.ej2Instances.getBingUrlTemplate(e)},getGeoLocation:function(e,t,n){return this.ej2Instances.getGeoLocation(e,t,n)},getMinMaxLatitudeLongitude:function(){return this.ej2Instances.getMinMaxLatitudeLongitude()},getTileGeoLocation:function(e,t){return this.ej2Instances.getTileGeoLocation(e,t)},mapsOnResize:function(e){return this.ej2Instances.mapsOnResize(e)},panByDirection:function(e,t){return this.ej2Instances.panByDirection(e,t)},pointToLatLong:function(e,t){return this.ej2Instances.pointToLatLong(e,t)},print:function(e){return this.ej2Instances.print(e)},removeLayer:function(e){return this.ej2Instances.removeLayer(e)},shapeSelection:function(e,t,n,i){return this.ej2Instances.shapeSelection(e,t,n,i)},zoomByPosition:function(e,t){return this.ej2Instances.zoomByPosition(e,t)},zoomToCoordinates:function(e,t,n,i){return this.ej2Instances.zoomToCoordinates(e,t,n,i)}}}),w={name:"ejs-maps",install:function(e){e.component(w.name,_),e.component(D.name,$),e.component(E.name,M),e.component(u.name,r),e.component(s.name,i),e.component(d.name,m),e.component(l.name,c),e.component(S.name,b),e.component(j.name,v),e.component(g.name,f),e.component(h.name,p),e.component(C.name,y),e.component(x.name,I),e.component(T.name,k),e.component(P.name,L)}};Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),t.AnnotationDirective=k,t.AnnotationPlugin=T,t.AnnotationsDirective=L,t.AnnotationsPlugin=P,t.BubbleDirective=b,t.BubblePlugin=S,t.BubblesDirective=v,t.BubblesPlugin=j,t.ColorMappingDirective=f,t.ColorMappingPlugin=g,t.ColorMappingsDirective=p,t.ColorMappingsPlugin=h,t.InitialShapeSelectionDirective=r,t.InitialShapeSelectionPlugin=u,t.InitialShapeSelectionsDirective=i,t.InitialShapeSelectionsPlugin=s,t.LayerDirective=$,t.LayerPlugin=D,t.LayersDirective=M,t.LayersPlugin=E,t.MapsComponent=_,t.MapsPlugin=w,t.MarkerDirective=m,t.MarkerPlugin=d,t.MarkersDirective=c,t.MarkersPlugin=l,t.NavigationLineDirective=y,t.NavigationLinePlugin=C,t.NavigationLinesDirective=I,t.NavigationLinesPlugin=x,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-vue-maps.umd.min.js.map