UNPKG

@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

59 lines (58 loc) 1.61 kB
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base'; import { isNullOrUndefined } from '@syncfusion/ej2-base'; export var AnnotationsDirective = vueDefineComponent({ inject: { custom: { default: null } }, render: function (createElement) { if (!isExecute) { var h = !isExecute ? gh : createElement; var slots = null; if (!isNullOrUndefined(this.$slots.default)) { slots = !isExecute ? this.$slots.default() : this.$slots.default; } return h('div', { class: 'e-directive' }, slots); } return; }, updated: function () { if (!isExecute && this.custom) { this.custom(); } }, methods: { getTag: function () { return 'e-maps-annotations'; } } }); export var AnnotationsPlugin = { name: 'e-maps-annotations', install: function (Vue) { Vue.component(AnnotationsPlugin.name, AnnotationsDirective); } }; /** * Represents the directive to define the annotations in the maps. * ```vue * <ejs-maps> * <e-maps-annotations> * <e-maps-annotation></e-maps-annotation> * </e-maps-annotations> * </ejs-maps> * ``` */ export var AnnotationDirective = vueDefineComponent({ render: function () { return; }, methods: { getTag: function () { return 'e-maps-annotation'; } } }); export var AnnotationPlugin = { name: 'e-maps-annotation', install: function (Vue) { Vue.component(AnnotationPlugin.name, AnnotationDirective); } };