map.d.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core';
  15. import DxMap from 'devextreme/ui/map';
  16. import { DxComponent } from '../core/component';
  17. import { DxTemplateHost } from '../core/template-host';
  18. import { NestedOptionHost } from '../core/nested-option';
  19. import { WatcherHelper } from '../core/watcher-helper';
  20. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  21. import { DxiCenterComponent } from './nested/center-dxi';
  22. import { DxiMarkerComponent } from './nested/marker-dxi';
  23. import { DxiRouteComponent } from './nested/route-dxi';
  24. /**
  25. * The Map is an interactive widget that displays a geographic map with markers and routes.
  26. */
  27. export declare class DxMapComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  28. private _watcherHelper;
  29. private _idh;
  30. instance: DxMap;
  31. /**
  32. * Specifies the shortcut key that sets focus on the widget.
  33. */
  34. accessKey: string;
  35. /**
  36. * Specifies whether or not the widget changes its state when interacting with a user.
  37. */
  38. activeStateEnabled: boolean;
  39. /**
  40. * Specifies whether the widget automatically adjusts center and zoom option values when adding a new marker or route, or if a new widget contains markers or routes by default.
  41. */
  42. autoAdjust: boolean;
  43. /**
  44. * An object, a string, or an array specifying which part of the map is displayed at the widget's center using coordinates. The widget can change this value if autoAdjust is enabled.
  45. */
  46. center: string | Array<number | {
  47. lat?: number;
  48. lng?: number;
  49. }>;
  50. /**
  51. * Specifies whether or not map widget controls are available.
  52. */
  53. controls: boolean;
  54. /**
  55. * Specifies whether the widget responds to user interaction.
  56. */
  57. disabled: boolean;
  58. /**
  59. * Specifies the attributes to be attached to the widget's root element.
  60. */
  61. elementAttr: any;
  62. /**
  63. * Specifies whether the widget can be focused using keyboard navigation.
  64. */
  65. focusStateEnabled: boolean;
  66. /**
  67. * Specifies the widget's height.
  68. */
  69. height: number | Function | string;
  70. /**
  71. * Specifies text for a hint that appears when a user pauses on the widget.
  72. */
  73. hint: string;
  74. /**
  75. * Specifies whether the widget changes its state when a user pauses on it.
  76. */
  77. hoverStateEnabled: boolean;
  78. /**
  79. * A key used to authenticate the application within the required map provider.
  80. */
  81. key: string | {
  82. bing?: string;
  83. google?: string;
  84. googleStatic?: string;
  85. };
  86. /**
  87. * A URL pointing to the custom icon to be used for map markers.
  88. */
  89. markerIconSrc: string;
  90. /**
  91. * An array of markers displayed on a map.
  92. */
  93. markers: Array<any | {
  94. iconSrc?: string;
  95. location?: string | Array<number | {
  96. lat?: number;
  97. lng?: number;
  98. }>;
  99. onClick?: Function;
  100. tooltip?: string | {
  101. isShown?: boolean;
  102. text?: string;
  103. };
  104. }>;
  105. /**
  106. * The name of the current map data provider.
  107. */
  108. provider: string;
  109. /**
  110. * An array of routes shown on the map.
  111. */
  112. routes: Array<any | {
  113. color?: string;
  114. locations?: Array<any | {
  115. lat?: number;
  116. lng?: number;
  117. }>;
  118. mode?: string;
  119. opacity?: number;
  120. weight?: number;
  121. }>;
  122. /**
  123. * Switches the widget to a right-to-left representation.
  124. */
  125. rtlEnabled: boolean;
  126. /**
  127. * Specifies the number of the element when the Tab key is used for navigating.
  128. */
  129. tabIndex: number;
  130. /**
  131. * The type of a map to display.
  132. */
  133. type: string;
  134. /**
  135. * Specifies whether the widget is visible.
  136. */
  137. visible: boolean;
  138. /**
  139. * Specifies the widget's width.
  140. */
  141. width: number | Function | string;
  142. /**
  143. * The map's zoom level. The widget can change this value if autoAdjust is enabled.
  144. */
  145. zoom: number;
  146. /**
  147. * A function that is executed when any location on the map is clicked or tapped.
  148. */
  149. onClick: EventEmitter<any>;
  150. /**
  151. * A function that is executed before the widget is disposed of.
  152. */
  153. onDisposing: EventEmitter<any>;
  154. /**
  155. * A function used in JavaScript frameworks to save the widget instance.
  156. */
  157. onInitialized: EventEmitter<any>;
  158. /**
  159. * A function that is executed when a marker is created on the map.
  160. */
  161. onMarkerAdded: EventEmitter<any>;
  162. /**
  163. * A function that is executed when a marker is removed from the map.
  164. */
  165. onMarkerRemoved: EventEmitter<any>;
  166. /**
  167. * A function that is executed after a widget option is changed.
  168. */
  169. onOptionChanged: EventEmitter<any>;
  170. /**
  171. * A function that is executed when the map is ready.
  172. */
  173. onReady: EventEmitter<any>;
  174. /**
  175. * A function that is executed when a route is created on the map.
  176. */
  177. onRouteAdded: EventEmitter<any>;
  178. /**
  179. * A function that is executed when a route is removed from the map.
  180. */
  181. onRouteRemoved: EventEmitter<any>;
  182. /**
  183. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  184. */
  185. accessKeyChange: EventEmitter<string>;
  186. /**
  187. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  188. */
  189. activeStateEnabledChange: EventEmitter<boolean>;
  190. /**
  191. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  192. */
  193. autoAdjustChange: EventEmitter<boolean>;
  194. /**
  195. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  196. */
  197. centerChange: EventEmitter<string | Array<number | {
  198. lat?: number;
  199. lng?: number;
  200. }>>;
  201. /**
  202. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  203. */
  204. controlsChange: EventEmitter<boolean>;
  205. /**
  206. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  207. */
  208. disabledChange: EventEmitter<boolean>;
  209. /**
  210. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  211. */
  212. elementAttrChange: EventEmitter<any>;
  213. /**
  214. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  215. */
  216. focusStateEnabledChange: EventEmitter<boolean>;
  217. /**
  218. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  219. */
  220. heightChange: EventEmitter<number | Function | string>;
  221. /**
  222. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  223. */
  224. hintChange: EventEmitter<string>;
  225. /**
  226. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  227. */
  228. hoverStateEnabledChange: EventEmitter<boolean>;
  229. /**
  230. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  231. */
  232. keyChange: EventEmitter<string | {
  233. bing?: string;
  234. google?: string;
  235. googleStatic?: string;
  236. }>;
  237. /**
  238. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  239. */
  240. markerIconSrcChange: EventEmitter<string>;
  241. /**
  242. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  243. */
  244. markersChange: EventEmitter<Array<any | {
  245. iconSrc?: string;
  246. location?: string | Array<number | {
  247. lat?: number;
  248. lng?: number;
  249. }>;
  250. onClick?: Function;
  251. tooltip?: string | {
  252. isShown?: boolean;
  253. text?: string;
  254. };
  255. }>>;
  256. /**
  257. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  258. */
  259. providerChange: EventEmitter<string>;
  260. /**
  261. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  262. */
  263. routesChange: EventEmitter<Array<any | {
  264. color?: string;
  265. locations?: Array<any | {
  266. lat?: number;
  267. lng?: number;
  268. }>;
  269. mode?: string;
  270. opacity?: number;
  271. weight?: number;
  272. }>>;
  273. /**
  274. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  275. */
  276. rtlEnabledChange: EventEmitter<boolean>;
  277. /**
  278. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  279. */
  280. tabIndexChange: EventEmitter<number>;
  281. /**
  282. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  283. */
  284. typeChange: EventEmitter<string>;
  285. /**
  286. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  287. */
  288. visibleChange: EventEmitter<boolean>;
  289. /**
  290. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  291. */
  292. widthChange: EventEmitter<number | Function | string>;
  293. /**
  294. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  295. */
  296. zoomChange: EventEmitter<number>;
  297. centerChildren: QueryList<DxiCenterComponent>;
  298. markersChildren: QueryList<DxiMarkerComponent>;
  299. routesChildren: QueryList<DxiRouteComponent>;
  300. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  301. protected _createInstance(element: any, options: any): DxMap;
  302. ngOnDestroy(): void;
  303. ngOnChanges(changes: SimpleChanges): void;
  304. setupChanges(prop: string, changes: SimpleChanges): void;
  305. ngDoCheck(): void;
  306. _setOption(name: string, value: any): void;
  307. }
  308. export declare class DxMapModule {
  309. }