@inlog/inlog-maps 6.1.0 → 6.2.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.
Files changed (85) hide show
  1. package/lib/index.d.ts +46 -0
  2. package/lib/map.d.ts +519 -0
  3. package/lib/models/apis/google/google-circles.d.ts +18 -0
  4. package/lib/models/apis/google/google-geojson.d.ts +9 -0
  5. package/lib/models/apis/google/google-map.d.ts +16 -0
  6. package/lib/models/apis/google/google-markers.d.ts +29 -0
  7. package/lib/models/apis/google/google-overlay.d.ts +11 -0
  8. package/lib/models/apis/google/google-polygons.d.ts +29 -0
  9. package/lib/models/apis/google/google-polylines.d.ts +55 -0
  10. package/lib/models/apis/google/google-popup.d.ts +10 -0
  11. package/lib/models/apis/googleMaps.d.ts +97 -0
  12. package/lib/models/apis/leaflet/leaflet-circle.d.ts +18 -0
  13. package/lib/models/apis/leaflet/leaflet-geojson.d.ts +9 -0
  14. package/lib/models/apis/leaflet/leaflet-map.d.ts +16 -0
  15. package/lib/models/apis/leaflet/leaflet-markers.d.ts +29 -0
  16. package/lib/models/apis/leaflet/leaflet-overlay.d.ts +10 -0
  17. package/lib/models/apis/leaflet/leaflet-polygons.d.ts +23 -0
  18. package/lib/models/apis/leaflet/leaflet-polylines.d.ts +54 -0
  19. package/lib/models/apis/leaflet/leaflet-popup.d.ts +11 -0
  20. package/lib/models/apis/leaflet.d.ts +99 -0
  21. package/lib/models/apis/mapFunctions.d.ts +85 -0
  22. package/lib/models/dto/event-type.d.ts +33 -0
  23. package/lib/models/dto/map-type.d.ts +4 -0
  24. package/lib/models/dto/polyline-type.d.ts +5 -0
  25. package/lib/models/features/circle/circle-alter-options.d.ts +12 -0
  26. package/lib/models/features/circle/circle-options.d.ts +15 -0
  27. package/lib/models/features/events/event-return.d.ts +4 -0
  28. package/lib/models/features/geojson/geojson-options.d.ts +5 -0
  29. package/lib/models/features/marker/circle-marker-options.d.ts +9 -0
  30. package/lib/models/features/marker/circle-marker-style.d.ts +8 -0
  31. package/lib/models/features/marker/marker-alter-options.d.ts +8 -0
  32. package/lib/models/features/marker/marker-icon.d.ts +6 -0
  33. package/lib/models/features/marker/marker-options.d.ts +11 -0
  34. package/lib/models/features/marker-clusterer/marker-clusterer-config.d.ts +6 -0
  35. package/lib/models/features/overlay/overlay-options.d.ts +11 -0
  36. package/lib/models/features/polygons/polygon-alter-options.d.ts +13 -0
  37. package/lib/models/features/polygons/polygon-options.d.ts +15 -0
  38. package/lib/models/features/polyline/navigations-options.d.ts +11 -0
  39. package/lib/models/features/polyline/polyline-options.d.ts +18 -0
  40. package/lib/models/features/popup/popup-options.d.ts +9 -0
  41. package/lib/utils/maps-api-loader.service.d.ts +14 -0
  42. package/lib/utils/url-builder.d.ts +20 -0
  43. package/lib-esm/index.d.ts +46 -0
  44. package/lib-esm/map.d.ts +519 -0
  45. package/lib-esm/models/apis/google/google-circles.d.ts +18 -0
  46. package/lib-esm/models/apis/google/google-geojson.d.ts +9 -0
  47. package/lib-esm/models/apis/google/google-map.d.ts +16 -0
  48. package/lib-esm/models/apis/google/google-markers.d.ts +29 -0
  49. package/lib-esm/models/apis/google/google-overlay.d.ts +11 -0
  50. package/lib-esm/models/apis/google/google-polygons.d.ts +29 -0
  51. package/lib-esm/models/apis/google/google-polylines.d.ts +55 -0
  52. package/lib-esm/models/apis/google/google-popup.d.ts +10 -0
  53. package/lib-esm/models/apis/googleMaps.d.ts +97 -0
  54. package/lib-esm/models/apis/leaflet/leaflet-circle.d.ts +18 -0
  55. package/lib-esm/models/apis/leaflet/leaflet-geojson.d.ts +9 -0
  56. package/lib-esm/models/apis/leaflet/leaflet-map.d.ts +16 -0
  57. package/lib-esm/models/apis/leaflet/leaflet-markers.d.ts +29 -0
  58. package/lib-esm/models/apis/leaflet/leaflet-overlay.d.ts +10 -0
  59. package/lib-esm/models/apis/leaflet/leaflet-polygons.d.ts +23 -0
  60. package/lib-esm/models/apis/leaflet/leaflet-polylines.d.ts +54 -0
  61. package/lib-esm/models/apis/leaflet/leaflet-popup.d.ts +11 -0
  62. package/lib-esm/models/apis/leaflet.d.ts +99 -0
  63. package/lib-esm/models/apis/mapFunctions.d.ts +85 -0
  64. package/lib-esm/models/dto/event-type.d.ts +33 -0
  65. package/lib-esm/models/dto/map-type.d.ts +4 -0
  66. package/lib-esm/models/dto/polyline-type.d.ts +5 -0
  67. package/lib-esm/models/features/circle/circle-alter-options.d.ts +12 -0
  68. package/lib-esm/models/features/circle/circle-options.d.ts +15 -0
  69. package/lib-esm/models/features/events/event-return.d.ts +4 -0
  70. package/lib-esm/models/features/geojson/geojson-options.d.ts +5 -0
  71. package/lib-esm/models/features/marker/circle-marker-options.d.ts +9 -0
  72. package/lib-esm/models/features/marker/circle-marker-style.d.ts +8 -0
  73. package/lib-esm/models/features/marker/marker-alter-options.d.ts +8 -0
  74. package/lib-esm/models/features/marker/marker-icon.d.ts +6 -0
  75. package/lib-esm/models/features/marker/marker-options.d.ts +11 -0
  76. package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.d.ts +6 -0
  77. package/lib-esm/models/features/overlay/overlay-options.d.ts +11 -0
  78. package/lib-esm/models/features/polygons/polygon-alter-options.d.ts +13 -0
  79. package/lib-esm/models/features/polygons/polygon-options.d.ts +15 -0
  80. package/lib-esm/models/features/polyline/navigations-options.d.ts +11 -0
  81. package/lib-esm/models/features/polyline/polyline-options.d.ts +18 -0
  82. package/lib-esm/models/features/popup/popup-options.d.ts +9 -0
  83. package/lib-esm/utils/maps-api-loader.service.d.ts +14 -0
  84. package/lib-esm/utils/url-builder.d.ts +20 -0
  85. package/package.json +1 -1
package/lib/index.d.ts ADDED
@@ -0,0 +1,46 @@
1
+ import Map from './map';
2
+ import IMapFunctions from './models/apis/mapFunctions';
3
+ import CircleAlterOptions from './models/features/circle/circle-alter-options';
4
+ import CircleOptions from './models/features/circle/circle-options';
5
+ import EventReturn from './models/features/events/event-return';
6
+ import GeoJsonOptions from './models/features/geojson/geojson-options';
7
+ import CircleMarkerOptions from './models/features/marker/circle-marker-options';
8
+ import CircleMarkerStyle from './models/features/marker/circle-marker-style';
9
+ import MarkerAlterOptions from './models/features/marker/marker-alter-options';
10
+ import MarkerIcon from './models/features/marker/marker-icon';
11
+ import MarkerOptions from './models/features/marker/marker-options';
12
+ import OverlayOptions from './models/features/overlay/overlay-options';
13
+ import PolygonAlterOptions from './models/features/polygons/polygon-alter-options';
14
+ import PolygonOptions from './models/features/polygons/polygon-options';
15
+ import NavigationOptions from './models/features/polyline/navigations-options';
16
+ import PolylineOptions from './models/features/polyline/polyline-options';
17
+ import PopupOptions from './models/features/popup/popup-options';
18
+ import MarkerClustererConfig from './models/features/marker-clusterer/marker-clusterer-config';
19
+ import { MarkerEventType, CircleEventType, PolygonEventType, PolylineEventType, MapEventType } from './models/dto/event-type';
20
+ import { MapType } from './models/dto/map-type';
21
+ import { PolylineType } from './models/dto/polyline-type';
22
+ export { Map };
23
+ export { MarkerOptions };
24
+ export { MarkerIcon };
25
+ export { EventReturn };
26
+ export { CircleMarkerOptions };
27
+ export { CircleMarkerStyle };
28
+ export { GeoJsonOptions };
29
+ export { MarkerAlterOptions };
30
+ export { PopupOptions };
31
+ export { PolygonOptions };
32
+ export { PolygonAlterOptions };
33
+ export { CircleOptions };
34
+ export { CircleAlterOptions };
35
+ export { PolylineOptions };
36
+ export { NavigationOptions };
37
+ export { IMapFunctions };
38
+ export { OverlayOptions };
39
+ export { MapType };
40
+ export { PolylineType };
41
+ export { MapEventType };
42
+ export { MarkerEventType };
43
+ export { CircleEventType };
44
+ export { PolygonEventType };
45
+ export { PolylineEventType };
46
+ export { MarkerClustererConfig };
package/lib/map.d.ts ADDED
@@ -0,0 +1,519 @@
1
+ import { MarkerEventType, CircleEventType, PolygonEventType, PolylineEventType, MapEventType } from "./models/dto/event-type";
2
+ import { MapType } from "./models/dto/map-type";
3
+ import CircleAlterOptions from "./models/features/circle/circle-alter-options";
4
+ import CircleOptions from "./models/features/circle/circle-options";
5
+ import GeoJsonOptions from "./models/features/geojson/geojson-options";
6
+ import MarkerClustererConfig from "./models/features/marker-clusterer/marker-clusterer-config";
7
+ import CircleMarkerOptions from "./models/features/marker/circle-marker-options";
8
+ import MarkerAlterOptions from "./models/features/marker/marker-alter-options";
9
+ import MarkerOptions from "./models/features/marker/marker-options";
10
+ import OverlayOptions from "./models/features/overlay/overlay-options";
11
+ import PolygonAlterOptions from "./models/features/polygons/polygon-alter-options";
12
+ import PolygonOptions from "./models/features/polygons/polygon-options";
13
+ import PolylineOptions from "./models/features/polyline/polyline-options";
14
+ import PopupOptions from "./models/features/popup/popup-options";
15
+ export default class Map {
16
+ private markersList;
17
+ private polygonsList;
18
+ private circlesList;
19
+ private polylinesList;
20
+ private infoWindowList;
21
+ private overlayList;
22
+ private map;
23
+ private markerClusterer;
24
+ constructor();
25
+ /**
26
+ * Use this to initialize map
27
+ * @param {InlogMaps.MapType} mapType
28
+ * @param {any} options
29
+ * @param {string} elementId default: 'inlog-map' [nullable]
30
+ * @returns {Promisse<any>}
31
+ */
32
+ initialize(mapType: MapType, options: any, elementId?: string): Promise<any>;
33
+ /**
34
+ * Use this function to add GEOJSON to the currentMap
35
+ * @param {object} data Geojson
36
+ * @param {InlogMaps.GeoJsonOptions} options
37
+ * @param {any} eventClick is a function callback on click [nullable]
38
+ */
39
+ loadGEOJson(data: object, options: GeoJsonOptions, eventClick?: any): void;
40
+ /**
41
+ * Use this function to draw markers in the currentMap
42
+ * @param {string} type
43
+ * @param {InlogMaps.MarkerOptions} options
44
+ * @param {any} eventClick is a function callback on click [nullable]
45
+ */
46
+ drawMarker(type: string, options: MarkerOptions, eventClick?: any): void;
47
+ /**
48
+ * Use this function to draw circle markers in the currentMap
49
+ * @param {string} type
50
+ * @param {InlogMaps.CircleMarkerOptions} options
51
+ * @param {any} eventClick is a function callback on click [nullable]
52
+ */
53
+ drawCircleMarker(type: string, options: CircleMarkerOptions, eventClick?: any): void;
54
+ /**
55
+ * Use this function to show/hide markers from a specific type
56
+ * @param {boolean} show
57
+ * @param {string} type
58
+ * @param {any} condition toogle markers with the condition [nullable]
59
+ */
60
+ toggleMarkers(show: boolean, type: string, condition?: any): void;
61
+ /**
62
+ * Remove markers from the map and from internal list
63
+ * @param {string} type
64
+ * @param {any} condition remove markers with the condition [nullable]
65
+ */
66
+ removeMarkers(type: string, condition?: any): void;
67
+ /**
68
+ * Remove all markers from the map and from the internal list
69
+ */
70
+ removeAllMarkers(): void;
71
+ /**
72
+ * Use this function to alter marker style
73
+ * @param {string} type
74
+ * @param {InlogMaps.MarkerAlterOptions} options
75
+ * @param {any} condition alter markers with the condition [nullable]
76
+ */
77
+ alterMarkerOptions(type: string, options: MarkerAlterOptions, condition?: any): void;
78
+ /**
79
+ * Use this functions to alterar marker position
80
+ * @param {string } type
81
+ * @param {number[]} position
82
+ * @param {boolean} addTransition [nullable]
83
+ * @param {any} condition [nullable]
84
+ */
85
+ alterMarkerPosition(type: string, position: number[], addTransition?: boolean, condition?: any): void;
86
+ /**
87
+ * Use this function to fit bounds in the markers with the especified type
88
+ * @param {string} type
89
+ * @param {any} condition [nullable]
90
+ * @param {boolean} onlyMarkersOnMap default true
91
+ */
92
+ fitBoundsMarkers(type: string, condition?: any, onlyMarkersOnMap?: boolean): void;
93
+ /**
94
+ * Use this functions to set the center of the map on marker
95
+ * @param {string} type
96
+ * @param {any} condition center on marker with the condition [nullable]
97
+ */
98
+ setCenterMarker(type: string, condition?: any): void;
99
+ /**
100
+ * This functions returns if marker exists
101
+ * @param type
102
+ * @param condition [nullable]
103
+ * @returns {boolean}
104
+ */
105
+ markerExists(type: string, condition?: any): boolean;
106
+ /**
107
+ * Use this function to count markers by type
108
+ * @param {string} type
109
+ * @param {boolean} onlyOnMap exclude hidden markers, default true
110
+ * @param {any} condition
111
+ * @returns {number}
112
+ */
113
+ countMarkers(type: string, onlyOnMap?: boolean, condition?: any): number;
114
+ /**
115
+ * This function add new events on marker
116
+ * @param {string} type
117
+ * @param {InlogMaps.MarkerEventType} event
118
+ * @param {any} eventFunction
119
+ * @param {any} condition [nullable]
120
+ */
121
+ addMarkerEvent(type: string, event: MarkerEventType, eventFunction: any, condition?: any): void;
122
+ /**
123
+ * This function remove events of marker
124
+ * @param {string} type
125
+ * @param {InlogMaps.MarkerEventType} event
126
+ * @param {any} condition [nullable]
127
+ */
128
+ removeMarkerEvent(type: string, event: MarkerEventType, condition?: any): void;
129
+ /**
130
+ * Use this function to add MarkerClusterer on the map
131
+ * @param {string} type same type of markers
132
+ * @param {InlogMaps.MarkerClusterConfig} config
133
+ */
134
+ addMarkerClusterer(type: string, config: MarkerClustererConfig): void;
135
+ /**
136
+ * Use this function to alter clusterer options
137
+ * @param type same type of markers
138
+ * @param {InlogMaps.MarkerClusterConfig} config
139
+ */
140
+ alterMarkerClustererConfig(type: string, config: MarkerClustererConfig): void;
141
+ /**
142
+ * Use this function to redraw marker clusterer
143
+ * @param type same type of markers
144
+ */
145
+ refreshClusterer(type: string): void;
146
+ /**
147
+ * Use this to clear markers on clusterer
148
+ * @param type same type of markers
149
+ */
150
+ clearMarkersClusterer(type: string): void;
151
+ /**
152
+ * Use this function to draw polygons
153
+ * @param {string} type
154
+ * @param {InlogMaps.PolygonOptions} options
155
+ * @param {any} eventClick [nullable]
156
+ */
157
+ drawPolygon(type: string, options: PolygonOptions, eventClick?: any): void;
158
+ /**
159
+ * Use this function to show/hide polygon from a especific type
160
+ * @param {boolean} show
161
+ * @param {string} type
162
+ * @param {any} condition toggle polygon with the condition [nullable]
163
+ */
164
+ togglePolygons(show: boolean, type: string, condition?: any): void;
165
+ /**
166
+ * Remove polygons from the map and from internal list
167
+ * @param {string} type
168
+ * @param {any} condition remove polygons with the condition [nullable]
169
+ */
170
+ removePolygons(type: string, condition?: any): void;
171
+ /**
172
+ * Remove all polygons from the map and from the internal list
173
+ */
174
+ removeAllPolygons(): void;
175
+ /**
176
+ * Use this function to alter polygons options/style
177
+ * @param {string} type
178
+ * @param {InlogMaps.PolygonAlterOptions} options
179
+ * @param {any} condition alter polygon with the condition [nullable]
180
+ */
181
+ alterPolygonOptions(type: string, options: PolygonAlterOptions, condition?: any): void;
182
+ /**
183
+ * Use this function to fit bounds of a polygon
184
+ * @param {string} type
185
+ * @param {any} condition fit polygon bounds with the condition [nullable]
186
+ */
187
+ fitBoundsPolygons(type: string, condition?: any): void;
188
+ /**
189
+ * Set center on polygon bounds
190
+ * @param {string} type
191
+ * @param {any} condition fit polygon bounds with the condition [nullable]
192
+ */
193
+ setCenterPolygons(type: string, condition?: any): void;
194
+ /**
195
+ * This functions returns if polygon exists
196
+ * @param type
197
+ * @param condition [nullable]
198
+ * @returns {boolean}
199
+ */
200
+ polygonExists(type: string, condition?: any): boolean;
201
+ /**
202
+ * Use this function to get the path of some polygon
203
+ * @param {string} type
204
+ * @param {any} condition
205
+ * @returns {number[]}
206
+ */
207
+ getPolygonPath(type: string, condition?: any): number[][] | undefined;
208
+ /**
209
+ * This function add new events on polygon
210
+ * @param {string} type
211
+ * @param {InlogMaps.PolygonEventType} event
212
+ * @param {any} eventFunction
213
+ * @param {any} condition [nullable]
214
+ */
215
+ addPolygonEvent(type: string, event: PolygonEventType, eventFunction: any, condition?: any): void;
216
+ /**
217
+ * This function remove events of polygon
218
+ * @param {string} type
219
+ * @param {InlogMaps.PolygonEventType} event
220
+ * @param {any} condition [nullable]
221
+ */
222
+ removePolygonEvent(type: string, event: PolygonEventType, condition?: any): void;
223
+ /**
224
+ * Use this function to draw circles on the currentMap
225
+ * @param {string} type
226
+ * @param {InlogMaps.CircleOptions} options
227
+ * @param {any} eventClick [nullable]
228
+ */
229
+ drawCircle(type: string, options: CircleOptions, eventClick?: any): void;
230
+ /**
231
+ * Use this function to show/hide circles from a especific type
232
+ * @param {boolean} show
233
+ * @param {string} type
234
+ * @param {any} condition toggle circles with the condition [nullable]
235
+ */
236
+ toggleCircles(show: boolean, type: string, condition?: any): void;
237
+ /**
238
+ * Remove circles from the map and from internal list
239
+ * @param {string} type
240
+ * @param {any} condition remove circles with the condition [nullable]
241
+ */
242
+ removeCircles(type: string, condition?: any): void;
243
+ /**
244
+ * Remove all circles from the map and from the internal list
245
+ */
246
+ removeAllCircles(): void;
247
+ /**
248
+ * Use this function to alter circle options
249
+ * @param {string} type
250
+ * @param {InlogMaps.CircleAlterOptions} options
251
+ * @param {any} condition alter circle with the condition [nullable]
252
+ */
253
+ alterCircleOptions(type: string, options: CircleAlterOptions, condition?: any): void;
254
+ /**
255
+ * Use this function to fit bounds of a polygon
256
+ * @param {string} type
257
+ * @param {any} condition fit polygon bounds with the condition [nullable]
258
+ */
259
+ fitBoundsCircles(type: string, condition?: any): void;
260
+ /**
261
+ * This functions returns if circle exists
262
+ * @param {string} type
263
+ * @param {any} condition [nullable]
264
+ * @returns {boolean}
265
+ */
266
+ circleExists(type: string, condition?: any): boolean;
267
+ /**
268
+ * This function return circle center
269
+ * @param {string} type
270
+ * @param {any} condition [nullable]
271
+ * @returns {number[]}
272
+ */
273
+ getCircleCenter(type: string, condition?: any): number[] | null;
274
+ /**
275
+ * This function return circle center
276
+ * @param {string} type
277
+ * @param {any} condition [nullable]
278
+ * @returns {number}
279
+ */
280
+ getCircleRadius(type: string, condition?: any): number | null;
281
+ /**
282
+ * This function add new events on circle
283
+ * @param {string} type
284
+ * @param {InlogMaps.CircleEventType} event
285
+ * @param {any} eventFunction
286
+ * @param {any} condition [nullable]
287
+ */
288
+ addCircleEvent(type: string, event: CircleEventType, eventFunction: any, condition?: any): void;
289
+ /**
290
+ * This function remove events of circle
291
+ * @param {string} type
292
+ * @param {InlogMaps.CircleEventType} event
293
+ * @param {any} condition [nullable]
294
+ */
295
+ removeCircleEvent(type: string, event: CircleEventType, condition?: any): void;
296
+ /**
297
+ * Use this function to draw polylines on the currentMap
298
+ * @param {string} type
299
+ * @param {InlogMaps.PolylineOptions} options
300
+ * @param {any} eventClick [nullable]
301
+ */
302
+ drawPolyline(type: string, options: PolylineOptions, eventClick?: any): void;
303
+ /**
304
+ * Use this function to draw polylines with navigation on the currentMap
305
+ * @param {string} type
306
+ * @param {InlogMaps.PolylineOptions} options
307
+ */
308
+ drawPolylineWithNavigation(type: string, options: PolylineOptions, eventClick?: any): void;
309
+ /**
310
+ * Use this function to toggle polylines
311
+ * @param {boolean} show
312
+ * @param {string} type
313
+ * @param {any} condition toggle polyline with the condition [nullable]
314
+ */
315
+ togglePolylines(show: boolean, type: string, condition?: any): void;
316
+ /**
317
+ * Use this function to remove polylines
318
+ * @param {string} type
319
+ * @param {any} condition remove polyline with the condition [nullable]
320
+ */
321
+ removePolylines(type: string, condition?: any): void;
322
+ /**
323
+ * Remove all polylines from the map and from the internal list
324
+ */
325
+ removeAllPolylines(): void;
326
+ /**
327
+ * Use this function to alter polyline options
328
+ * @param {string} type
329
+ * @param {InlogMaps.PolylineOptions} options
330
+ * @param {any} condition alter polyline with the condition [nullable]
331
+ */
332
+ alterPolylineOptions(type: string, options: PolylineOptions, condition?: any): void;
333
+ /**
334
+ * Use this functions to fit polylines bounds
335
+ * @param {string} type
336
+ * @param {any} condition [nullable]
337
+ */
338
+ fitBoundsPolylines(type: string, condition?: any): void;
339
+ /**
340
+ * This functions returns if polyline exists
341
+ * @param {string} type
342
+ * @param {any} condition [nullable]
343
+ * @returns {boolean}
344
+ */
345
+ polylineExists(type: string, condition?: any): boolean;
346
+ /**
347
+ * Use this function to add more paths to a polyline
348
+ * @param {string} type
349
+ * @param {number[]} position
350
+ * @param {any} condition [nullable]
351
+ */
352
+ addPolylinePath(type: string, position: number[], condition?: any): void;
353
+ /**
354
+ * Use this function to get the path of some polyline
355
+ * @param {string} type
356
+ * @param {any} condition
357
+ * @returns {number[]}
358
+ */
359
+ getPolylinePath(type: string, condition?: any): number[][] | undefined;
360
+ /**
361
+ * Use this function to clear polyline selected from the currentMap
362
+ */
363
+ removePolylineHighlight(): void;
364
+ /**
365
+ * Use this function to add listeners on polyline
366
+ * @param {string} type
367
+ * @param {InlogMaps.PolylineEventType} event
368
+ * @param {any} eventFunction
369
+ * @param {any} condition [nullable]
370
+ */
371
+ addPolylineEvent(type: string, event: PolylineEventType, eventFunction: any, condition?: any): void;
372
+ /**
373
+ * Use this function to remove listeners of polyline
374
+ * @param {string} type
375
+ * @param {InlogMaps.PolylineEventType} event
376
+ * @param {any} condition [nullable]
377
+ */
378
+ removePolylineEvent(type: string, event: PolylineEventType, condition?: any): void;
379
+ /**
380
+ * Use this function to set position of polyline highlight
381
+ * @param {string} type
382
+ * @param {number} initialIndex
383
+ * @param {any} condition [nullable]
384
+ */
385
+ setIndexPolylineHighlight(type: string, initialIndex: number, condition?: any): void;
386
+ /**
387
+ * Use this function to get the object of a polyline
388
+ * @param {string} type
389
+ * @param {any} condition
390
+ * @returns {object}
391
+ */
392
+ getObjectPolyline(type: string, condition?: any): object | null;
393
+ /**
394
+ * Use this function to get the object of the polyline highligth
395
+ * @returns {object}
396
+ */
397
+ getObjectPolylineHighlight(): any;
398
+ /**
399
+ * Use this function to add events on polyline highligtht / selected polyline
400
+ * @param {InlogMaps.PolylineEventType} event
401
+ * @param {any} eventFunction
402
+ */
403
+ addPolylineHighlightEvent(event: PolylineEventType, eventFunction: any): void;
404
+ /**
405
+ * Use this function to get initial and final index of the polyline highlight
406
+ * @returns {number[]} returns an array with initial index and final index
407
+ */
408
+ getPolylineHighlightIndex(): number[];
409
+ /**
410
+ * Use this function to draw popups on the currentMap
411
+ * @param {string} type
412
+ * @param {InlogMaps.PopupOptions} options
413
+ */
414
+ drawPopup(type: string, options: PopupOptions): void;
415
+ /**
416
+ * Use this function to alter popups
417
+ * @param {string} type
418
+ * @param {InlogMaps.PopupOptions} options
419
+ */
420
+ alterPopup(type: string, options: PopupOptions): void;
421
+ /**
422
+ *
423
+ * @param {string} type
424
+ * @returns {object}
425
+ */
426
+ getObjectOpenPopup(type: string): object;
427
+ /**
428
+ * Use this function to close popup by type
429
+ * @param {string} type
430
+ */
431
+ closePopup(type: string): void;
432
+ /**
433
+ * Use this function to close all popups
434
+ * @param {string} type
435
+ */
436
+ closeAllPopups(): void;
437
+ /**
438
+ * Resize de map based on html size
439
+ */
440
+ resizeMap(): void;
441
+ /**
442
+ * Use this function to add event clicks on the currentMap
443
+ * @param {InlogMaps.MapEventType} eventType
444
+ * @param eventFunction function callback
445
+ */
446
+ addEventMap(eventType: MapEventType, eventFunction: any): void;
447
+ /**
448
+ * Use this function to remove event clicks from the currentMap
449
+ * @param {InlogMaps.MapEventType} eventType
450
+ */
451
+ removeEventMap(eventType: MapEventType): void;
452
+ /**
453
+ * Returns the current zoom level of the map view
454
+ * @returns {number}
455
+ */
456
+ getZoom(): number;
457
+ /**
458
+ * Set the current zoom level of the map view
459
+ * @param {number} zoom
460
+ */
461
+ setZoom(zoom: number): void;
462
+ /**
463
+ * Takes a screenshot with all the context included in it (visible area)
464
+ * Returns the image as a base64 string or null
465
+ * @returns {Promise<string | null>}
466
+ */
467
+ takeMapScreenshot(): Promise<string>;
468
+ /**
469
+ * Returns the center position of the map
470
+ * @returns {number[]}
471
+ */
472
+ getCenter(): number[];
473
+ /**
474
+ * Set the position center of the map
475
+ * @param {number[]} position
476
+ */
477
+ setCenter(position: number[]): void;
478
+ /**
479
+ * Returns the coordinates from pixels
480
+ * @param {number} offsetx
481
+ * @param {number} offsety
482
+ * @returns {number[]}
483
+ */
484
+ pixelsToLatLng(offsetx: number, offsety: number): number[];
485
+ /**
486
+ * Use this functions to fit bounds on elements with same type and condition
487
+ * @param {string} type
488
+ * @param {any} condition [nullable]
489
+ */
490
+ fitBoundsElements(type: string, condition?: any): void;
491
+ /**
492
+ * Use this function to dray overlays on the current map
493
+ * @param {string} type
494
+ * @param {InlogMaps.OverlayOptions} options
495
+ */
496
+ drawOverlay(type: string, options: OverlayOptions): void;
497
+ /**
498
+ * Use this function to show or hide overlay
499
+ * @param {boolean} show
500
+ * @param {string} type
501
+ * @param {any} condition [nullable]
502
+ */
503
+ toggleOverlay(show: boolean, type: string, condition?: any): void;
504
+ /**
505
+ * Remove overlays from the map and from internal list
506
+ * @param {string} type
507
+ * @param {any} condition remove overlays with the condition [nullable]
508
+ */
509
+ removeOverlays(type: string, condition?: any): void;
510
+ /**
511
+ * Remove all overlays from the map and from the internal list
512
+ */
513
+ removeAllOverlays(): void;
514
+ private getMarkers;
515
+ private getPolygons;
516
+ private getCircles;
517
+ private getPolylines;
518
+ private getOverlays;
519
+ }
@@ -0,0 +1,18 @@
1
+ import { CircleEventType } from '../../dto/event-type';
2
+ import CircleAlterOptions from '../../features/circle/circle-alter-options';
3
+ import CircleOptions from '../../features/circle/circle-options';
4
+ export default class GoogleCircles {
5
+ private map;
6
+ private google;
7
+ constructor(map: any, google: any);
8
+ drawCircle(options: CircleOptions, eventClick: any): any;
9
+ toggleCircles(circles: any[], show: boolean): void;
10
+ alterCircleOptions(circles: any[], options: CircleAlterOptions): void;
11
+ fitBoundsCircles(circles: any): void;
12
+ isCircleOnMap(circle: any): boolean;
13
+ getCircleCenter(circle: any): number[];
14
+ getCircleRadius(circle: any): number;
15
+ addCircleEvent(circles: any, eventType: CircleEventType, eventFunction: any): void;
16
+ removeCircleEvent(circles: any, event: CircleEventType): void;
17
+ private getCirclesBounds;
18
+ }
@@ -0,0 +1,9 @@
1
+ import GeoJsonOptions from "../../features/geojson/geojson-options";
2
+ export default class GoogleGeoJson {
3
+ private map;
4
+ private google;
5
+ constructor(map: any, google: any);
6
+ loadGEOJson(data: object, options: GeoJsonOptions, eventClick: any): void;
7
+ private parseGeoJson;
8
+ private parseGeoJsonToObject;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { MapEventType } from "../../dto/event-type";
2
+ export default class GoogleMap {
3
+ private map;
4
+ private google;
5
+ constructor(map: any, google: any);
6
+ resizeMap(): void;
7
+ addEventMap(eventType: MapEventType, eventFunction: any): void;
8
+ removeEventMap(eventType: MapEventType): void;
9
+ getZoom(): number;
10
+ setZoom(zoom: number): any;
11
+ takeScreenShot(elementId: string): Promise<string>;
12
+ getCenter(): number[];
13
+ setCenter(position: number[]): void;
14
+ pixelsToLatLng(offsetx: number, offsety: number): any[];
15
+ fitBoundsElements(markers: any, circles: any, polygons: any, polylines: any): void;
16
+ }
@@ -0,0 +1,29 @@
1
+ import { MarkerEventType } from "../../dto/event-type";
2
+ import MarkerClustererConfig from "../../features/marker-clusterer/marker-clusterer-config";
3
+ import CircleMarkerOptions from "../../features/marker/circle-marker-options";
4
+ import MarkerAlterOptions from "../../features/marker/marker-alter-options";
5
+ import MarkerOptions from "../../features/marker/marker-options";
6
+ export default class GoogleMarkers {
7
+ private map;
8
+ private google;
9
+ constructor(map: any, google: any);
10
+ drawMarker(options: MarkerOptions, eventClick: any): any;
11
+ drawCircleMarker(options: CircleMarkerOptions, eventClick: any): any;
12
+ toggleMarkers(markers: any[], show: boolean, markerClusterer?: any): void;
13
+ alterMarkerOptions(markers: any[], options: MarkerAlterOptions): void;
14
+ alterMarkerPosition(markers: any[], position: number[], addTransition: boolean): void;
15
+ fitBoundsPositions(markers: any[]): void;
16
+ isMarkerOnMap(marker: any): boolean | undefined;
17
+ setCenterMarker(marker: any): void;
18
+ addMarkerEvent(markers: any, eventType: MarkerEventType, eventFunction: any): void;
19
+ removeMarkerEvent(markers: any, event: MarkerEventType): void;
20
+ addMarkerClusterer(config: MarkerClustererConfig): any;
21
+ alterMarkerClustererConfig(markerClusterer: any, config: MarkerClustererConfig): void;
22
+ refreshClusterer(markerClusterer: any): void;
23
+ addMarkerOnClusterer(marker: any, markerClusterer: any): void;
24
+ removeMarkerFromClusterer(marker: any, markerClusterer: any): void;
25
+ clearMarkersClusterer(markerClusterer: any): void;
26
+ countMarkersOnCluster(markerClusterer: any): number;
27
+ private moveTransitionMarker;
28
+ private moveMarker;
29
+ }
@@ -0,0 +1,11 @@
1
+ import OverlayOptions from "../../features/overlay/overlay-options";
2
+ import GooglePolygons from "./google-polygons";
3
+ export default class GoogleOverlays {
4
+ private map;
5
+ private google;
6
+ private googlePolygons;
7
+ private OverlayGoogle;
8
+ constructor(map: any, google: any, googlePolygons: GooglePolygons);
9
+ drawOverlay(options: OverlayOptions, polygons: any): any;
10
+ toggleOverlay(overlays: any[], show: boolean): void;
11
+ }
@@ -0,0 +1,29 @@
1
+ import { PolygonEventType } from "../../dto/event-type";
2
+ import PolygonAlterOptions from "../../features/polygons/polygon-alter-options";
3
+ import PolygonOptions from "../../features/polygons/polygon-options";
4
+ export default class GooglePolygons {
5
+ private map;
6
+ private google;
7
+ constructor(map: any, google: any);
8
+ drawPolygon(options: PolygonOptions, eventClick: any): any;
9
+ togglePolygons(polygons: any[], show: boolean): void;
10
+ alterPolygonOptions(polygons: any[], options: PolygonAlterOptions): void;
11
+ fitBoundsPolygons(polygons: any): void;
12
+ setCenterPolygons(polygons: any): void;
13
+ isPolygonOnMap(polygon: any): boolean;
14
+ getPolygonPath(polygon: any): number[][];
15
+ addPolygonEvent(polygons: any, eventType: PolygonEventType, eventFunction: any): void;
16
+ removePolygonEvent(polygons: any, event: PolygonEventType): void;
17
+ getPolygonsBounds(polygons: any): any;
18
+ private getPolygonBounds;
19
+ private addPolygonEventMove;
20
+ private addPolygonEventMoveAllPaths;
21
+ private addPolygonEventInsertAt;
22
+ private addPolygonEventInsertAtAllPaths;
23
+ private addPolygonEventRemoveAt;
24
+ private addPolygonEventRemoveAtAllPaths;
25
+ private addPolygonEventDragPolygon;
26
+ private addPolygonEventClick;
27
+ private getPathRecursiveArray;
28
+ private getPathPolylineArray;
29
+ }