import { NgModule , ValueProvider } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { InitialShapeSelectionDirective , InitialShapeSelectionsDirective } from './initialshapeselection.directive' ; import { MarkerDirective , MarkersDirective } from './markersettings.directive' ; import { ColorMappingDirective , ColorMappingsDirective } from './colormapping.directive' ; import { BubbleDirective , BubblesDirective } from './bubblesettings.directive' ; import { NavigationLineDirective , NavigationLinesDirective } from './navigationlinesettings.directive' ; import { LayerDirective , LayersDirective } from './layers.directive' ; import { AnnotationDirective , AnnotationsDirective } from './annotations.directive' ; import { MapsComponent } from './maps.component' ; import { MapsModule } from './maps.module' ; import { Bubble , Legend , Marker , Highlight , Selection , MapsTooltip , Zoom , DataLabel , NavigationLine , Annotations , Print , PdfExport , ImageExport } from '@syncfusion/ej2-maps' ; export const BubbleService = { provide : 'MapsBubble' , useValue : Bubble } ; export const LegendService = { provide : 'MapsLegend' , useValue : Legend } ; export const MarkerService = { provide : 'MapsMarker' , useValue : Marker } ; export const HighlightService = { provide : 'MapsHighlight' , useValue : Highlight } ; export const SelectionService = { provide : 'MapsSelection' , useValue : Selection } ; export const MapsTooltipService = { provide : 'MapsMapsTooltip' , useValue : MapsTooltip } ; export const ZoomService = { provide : 'MapsZoom' , useValue : Zoom } ; export const DataLabelService = { provide : 'MapsDataLabel' , useValue : DataLabel } ; export const NavigationLineService = { provide : 'MapsNavigationLine' , useValue : NavigationLine } ; export const AnnotationsService = { provide : 'MapsAnnotations' , useValue : Annotations } ; export const PrintService = { provide : 'MapsPrint' , useValue : Print } ; export const PdfExportService = { provide : 'MapsPdfExport' , useValue : PdfExport } ; export const ImageExportService = { provide : 'MapsImageExport' , useValue : ImageExport } ; /**
 * NgModule definition for the Maps component with providers.
 */ @ NgModule ( { imports : [ CommonModule , MapsModule ] , exports : [ MapsModule ] , providers : [ BubbleService , LegendService , MarkerService , HighlightService , SelectionService , MapsTooltipService , ZoomService , DataLabelService , NavigationLineService , AnnotationsService , PrintService , PdfExportService , ImageExportService ] } ) export class MapsAllModule { }