@inlog/inlog-maps 5.0.6 → 6.1.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 (243) hide show
  1. package/DOCUMENTATION.md +19 -2
  2. package/_bundles/inlog-maps.js +2 -7239
  3. package/_bundles/inlog-maps.js.LICENSE.txt +20 -0
  4. package/_bundles/inlog-maps.js.map +1 -1
  5. package/_bundles/inlog-maps.min.js +2 -1
  6. package/_bundles/inlog-maps.min.js.LICENSE.txt +20 -0
  7. package/_bundles/inlog-maps.min.js.map +1 -1
  8. package/lib/index.js +46 -46
  9. package/lib/index.js.map +1 -1
  10. package/lib/map.js +1136 -1010
  11. package/lib/map.js.map +1 -1
  12. package/lib/models/apis/google/google-circles.js +133 -130
  13. package/lib/models/apis/google/google-circles.js.map +1 -1
  14. package/lib/models/apis/google/google-geojson.js +72 -71
  15. package/lib/models/apis/google/google-geojson.js.map +1 -1
  16. package/lib/models/apis/google/google-map.js +173 -90
  17. package/lib/models/apis/google/google-map.js.map +1 -1
  18. package/lib/models/apis/google/google-markers.js +324 -290
  19. package/lib/models/apis/google/google-markers.js.map +1 -1
  20. package/lib/models/apis/google/google-overlay.js +101 -96
  21. package/lib/models/apis/google/google-overlay.js.map +1 -1
  22. package/lib/models/apis/google/google-polygons.js +300 -227
  23. package/lib/models/apis/google/google-polygons.js.map +1 -1
  24. package/lib/models/apis/google/google-polylines.js +706 -596
  25. package/lib/models/apis/google/google-polylines.js.map +1 -1
  26. package/lib/models/apis/google/google-popup.js +58 -60
  27. package/lib/models/apis/google/google-popup.js.map +1 -1
  28. package/lib/models/apis/googleMaps.js +448 -354
  29. package/lib/models/apis/googleMaps.js.map +1 -1
  30. package/lib/models/apis/leaflet/leaflet-circle.js +162 -134
  31. package/lib/models/apis/leaflet/leaflet-circle.js.map +1 -1
  32. package/lib/models/apis/leaflet/leaflet-geojson.js +72 -68
  33. package/lib/models/apis/leaflet/leaflet-geojson.js.map +1 -1
  34. package/lib/models/apis/leaflet/leaflet-map.js +139 -85
  35. package/lib/models/apis/leaflet/leaflet-map.js.map +1 -1
  36. package/lib/models/apis/leaflet/leaflet-markers.js +293 -259
  37. package/lib/models/apis/leaflet/leaflet-markers.js.map +1 -1
  38. package/lib/models/apis/leaflet/leaflet-overlay.js +34 -36
  39. package/lib/models/apis/leaflet/leaflet-overlay.js.map +1 -1
  40. package/lib/models/apis/leaflet/leaflet-polygons.js +210 -212
  41. package/lib/models/apis/leaflet/leaflet-polygons.js.map +1 -1
  42. package/lib/models/apis/leaflet/leaflet-polylines.js +705 -590
  43. package/lib/models/apis/leaflet/leaflet-polylines.js.map +1 -1
  44. package/lib/models/apis/leaflet/leaflet-popup.js +73 -75
  45. package/lib/models/apis/leaflet/leaflet-popup.js.map +1 -1
  46. package/lib/models/apis/leaflet.js +463 -360
  47. package/lib/models/apis/leaflet.js.map +1 -1
  48. package/lib/models/apis/mapFunctions.js +1 -2
  49. package/lib/models/dto/event-type.js +38 -40
  50. package/lib/models/dto/event-type.js.map +1 -1
  51. package/lib/models/dto/map-type.js +5 -7
  52. package/lib/models/dto/map-type.js.map +1 -1
  53. package/lib/models/dto/polyline-type.js +6 -8
  54. package/lib/models/dto/polyline-type.js.map +1 -1
  55. package/lib/models/features/circle/circle-alter-options.js +13 -15
  56. package/lib/models/features/circle/circle-alter-options.js.map +1 -1
  57. package/lib/models/features/circle/circle-options.js +18 -20
  58. package/lib/models/features/circle/circle-options.js.map +1 -1
  59. package/lib/models/features/events/event-return.js +7 -9
  60. package/lib/models/features/events/event-return.js.map +1 -1
  61. package/lib/models/features/geojson/geojson-options.js +8 -10
  62. package/lib/models/features/geojson/geojson-options.js.map +1 -1
  63. package/lib/models/features/marker/circle-marker-options.js +11 -13
  64. package/lib/models/features/marker/circle-marker-options.js.map +1 -1
  65. package/lib/models/features/marker/circle-marker-style.js +11 -13
  66. package/lib/models/features/marker/circle-marker-style.js.map +1 -1
  67. package/lib/models/features/marker/marker-alter-options.js +9 -11
  68. package/lib/models/features/marker/marker-alter-options.js.map +1 -1
  69. package/lib/models/features/marker/marker-icon.js +9 -11
  70. package/lib/models/features/marker/marker-icon.js.map +1 -1
  71. package/lib/models/features/marker/marker-options.js +17 -19
  72. package/lib/models/features/marker/marker-options.js.map +1 -1
  73. package/lib/models/features/marker-clusterer/marker-clusterer-config.js +9 -11
  74. package/lib/models/features/marker-clusterer/marker-clusterer-config.js.map +1 -1
  75. package/lib/models/features/overlay/overlay-options.js +14 -16
  76. package/lib/models/features/overlay/overlay-options.js.map +1 -1
  77. package/lib/models/features/polygons/polygon-alter-options.js +13 -14
  78. package/lib/models/features/polygons/polygon-alter-options.js.map +1 -1
  79. package/lib/models/features/polygons/polygon-options.js +18 -19
  80. package/lib/models/features/polygons/polygon-options.js.map +1 -1
  81. package/lib/models/features/polyline/navigations-options.js +15 -15
  82. package/lib/models/features/polyline/navigations-options.js.map +1 -1
  83. package/lib/models/features/polyline/polyline-options.js +19 -21
  84. package/lib/models/features/polyline/polyline-options.js.map +1 -1
  85. package/lib/models/features/popup/popup-options.js +12 -14
  86. package/lib/models/features/popup/popup-options.js.map +1 -1
  87. package/lib/utils/maps-api-loader.service.js +88 -77
  88. package/lib/utils/maps-api-loader.service.js.map +1 -1
  89. package/lib/utils/url-builder.js +43 -45
  90. package/lib/utils/url-builder.js.map +1 -1
  91. package/lib-esm/index.js +46 -45
  92. package/lib-esm/index.js.map +1 -1
  93. package/lib-esm/map.js +1136 -1008
  94. package/lib-esm/map.js.map +1 -1
  95. package/lib-esm/models/apis/google/google-circles.js +133 -128
  96. package/lib-esm/models/apis/google/google-circles.js.map +1 -1
  97. package/lib-esm/models/apis/google/google-geojson.js +72 -69
  98. package/lib-esm/models/apis/google/google-geojson.js.map +1 -1
  99. package/lib-esm/models/apis/google/google-map.js +173 -88
  100. package/lib-esm/models/apis/google/google-map.js.map +1 -1
  101. package/lib-esm/models/apis/google/google-markers.js +324 -288
  102. package/lib-esm/models/apis/google/google-markers.js.map +1 -1
  103. package/lib-esm/models/apis/google/google-overlay.js +101 -94
  104. package/lib-esm/models/apis/google/google-overlay.js.map +1 -1
  105. package/lib-esm/models/apis/google/google-polygons.js +300 -225
  106. package/lib-esm/models/apis/google/google-polygons.js.map +1 -1
  107. package/lib-esm/models/apis/google/google-polylines.js +706 -594
  108. package/lib-esm/models/apis/google/google-polylines.js.map +1 -1
  109. package/lib-esm/models/apis/google/google-popup.js +58 -58
  110. package/lib-esm/models/apis/google/google-popup.js.map +1 -1
  111. package/lib-esm/models/apis/googleMaps.js +448 -352
  112. package/lib-esm/models/apis/googleMaps.js.map +1 -1
  113. package/lib-esm/models/apis/leaflet/leaflet-circle.js +162 -132
  114. package/lib-esm/models/apis/leaflet/leaflet-circle.js.map +1 -1
  115. package/lib-esm/models/apis/leaflet/leaflet-geojson.js +72 -66
  116. package/lib-esm/models/apis/leaflet/leaflet-geojson.js.map +1 -1
  117. package/lib-esm/models/apis/leaflet/leaflet-map.js +139 -83
  118. package/lib-esm/models/apis/leaflet/leaflet-map.js.map +1 -1
  119. package/lib-esm/models/apis/leaflet/leaflet-markers.js +293 -257
  120. package/lib-esm/models/apis/leaflet/leaflet-markers.js.map +1 -1
  121. package/lib-esm/models/apis/leaflet/leaflet-overlay.js +34 -34
  122. package/lib-esm/models/apis/leaflet/leaflet-overlay.js.map +1 -1
  123. package/lib-esm/models/apis/leaflet/leaflet-polygons.js +210 -210
  124. package/lib-esm/models/apis/leaflet/leaflet-polygons.js.map +1 -1
  125. package/lib-esm/models/apis/leaflet/leaflet-polylines.js +705 -588
  126. package/lib-esm/models/apis/leaflet/leaflet-polylines.js.map +1 -1
  127. package/lib-esm/models/apis/leaflet/leaflet-popup.js +73 -73
  128. package/lib-esm/models/apis/leaflet/leaflet-popup.js.map +1 -1
  129. package/lib-esm/models/apis/leaflet.js +463 -358
  130. package/lib-esm/models/apis/leaflet.js.map +1 -1
  131. package/lib-esm/models/apis/mapFunctions.js +1 -0
  132. package/lib-esm/models/dto/event-type.js +38 -38
  133. package/lib-esm/models/dto/map-type.js +5 -5
  134. package/lib-esm/models/dto/polyline-type.js +6 -6
  135. package/lib-esm/models/features/circle/circle-alter-options.js +13 -13
  136. package/lib-esm/models/features/circle/circle-options.js +18 -18
  137. package/lib-esm/models/features/events/event-return.js +7 -7
  138. package/lib-esm/models/features/geojson/geojson-options.js +8 -8
  139. package/lib-esm/models/features/marker/circle-marker-options.js +11 -11
  140. package/lib-esm/models/features/marker/circle-marker-style.js +11 -11
  141. package/lib-esm/models/features/marker/marker-alter-options.js +9 -9
  142. package/lib-esm/models/features/marker/marker-icon.js +9 -9
  143. package/lib-esm/models/features/marker/marker-options.js +17 -17
  144. package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.js +9 -9
  145. package/lib-esm/models/features/overlay/overlay-options.js +14 -14
  146. package/lib-esm/models/features/polygons/polygon-alter-options.js +13 -12
  147. package/lib-esm/models/features/polygons/polygon-alter-options.js.map +1 -1
  148. package/lib-esm/models/features/polygons/polygon-options.js +18 -17
  149. package/lib-esm/models/features/polygons/polygon-options.js.map +1 -1
  150. package/lib-esm/models/features/polyline/navigations-options.js +15 -13
  151. package/lib-esm/models/features/polyline/navigations-options.js.map +1 -1
  152. package/lib-esm/models/features/polyline/polyline-options.js +19 -19
  153. package/lib-esm/models/features/polyline/polyline-options.js.map +1 -1
  154. package/lib-esm/models/features/popup/popup-options.js +12 -12
  155. package/lib-esm/utils/maps-api-loader.service.js +88 -75
  156. package/lib-esm/utils/maps-api-loader.service.js.map +1 -1
  157. package/lib-esm/utils/url-builder.js +43 -43
  158. package/lib-esm/utils/url-builder.js.map +1 -1
  159. package/package.json +67 -63
  160. package/lib/index.d.ts +0 -46
  161. package/lib/map.d.ts +0 -513
  162. package/lib/models/apis/google/google-circles.d.ts +0 -18
  163. package/lib/models/apis/google/google-geojson.d.ts +0 -9
  164. package/lib/models/apis/google/google-map.d.ts +0 -15
  165. package/lib/models/apis/google/google-markers.d.ts +0 -29
  166. package/lib/models/apis/google/google-overlay.d.ts +0 -11
  167. package/lib/models/apis/google/google-polygons.d.ts +0 -29
  168. package/lib/models/apis/google/google-polylines.d.ts +0 -55
  169. package/lib/models/apis/google/google-popup.d.ts +0 -10
  170. package/lib/models/apis/googleMaps.d.ts +0 -95
  171. package/lib/models/apis/leaflet/leaflet-circle.d.ts +0 -18
  172. package/lib/models/apis/leaflet/leaflet-geojson.d.ts +0 -9
  173. package/lib/models/apis/leaflet/leaflet-map.d.ts +0 -15
  174. package/lib/models/apis/leaflet/leaflet-markers.d.ts +0 -29
  175. package/lib/models/apis/leaflet/leaflet-overlay.d.ts +0 -10
  176. package/lib/models/apis/leaflet/leaflet-polygons.d.ts +0 -23
  177. package/lib/models/apis/leaflet/leaflet-polylines.d.ts +0 -54
  178. package/lib/models/apis/leaflet/leaflet-popup.d.ts +0 -11
  179. package/lib/models/apis/leaflet.d.ts +0 -97
  180. package/lib/models/apis/mapFunctions.d.ts +0 -84
  181. package/lib/models/dto/event-type.d.ts +0 -33
  182. package/lib/models/dto/map-type.d.ts +0 -4
  183. package/lib/models/dto/polyline-type.d.ts +0 -5
  184. package/lib/models/features/circle/circle-alter-options.d.ts +0 -12
  185. package/lib/models/features/circle/circle-options.d.ts +0 -15
  186. package/lib/models/features/events/event-return.d.ts +0 -4
  187. package/lib/models/features/geojson/geojson-options.d.ts +0 -5
  188. package/lib/models/features/marker/circle-marker-options.d.ts +0 -9
  189. package/lib/models/features/marker/circle-marker-style.d.ts +0 -8
  190. package/lib/models/features/marker/marker-alter-options.d.ts +0 -8
  191. package/lib/models/features/marker/marker-icon.d.ts +0 -6
  192. package/lib/models/features/marker/marker-options.d.ts +0 -11
  193. package/lib/models/features/marker-clusterer/marker-clusterer-config.d.ts +0 -6
  194. package/lib/models/features/overlay/overlay-options.d.ts +0 -11
  195. package/lib/models/features/polygons/polygon-alter-options.d.ts +0 -13
  196. package/lib/models/features/polygons/polygon-options.d.ts +0 -15
  197. package/lib/models/features/polyline/navigations-options.d.ts +0 -11
  198. package/lib/models/features/polyline/polyline-options.d.ts +0 -18
  199. package/lib/models/features/popup/popup-options.d.ts +0 -9
  200. package/lib/utils/maps-api-loader.service.d.ts +0 -9
  201. package/lib/utils/url-builder.d.ts +0 -11
  202. package/lib-esm/index.d.ts +0 -46
  203. package/lib-esm/map.d.ts +0 -513
  204. package/lib-esm/models/apis/google/google-circles.d.ts +0 -18
  205. package/lib-esm/models/apis/google/google-geojson.d.ts +0 -9
  206. package/lib-esm/models/apis/google/google-map.d.ts +0 -15
  207. package/lib-esm/models/apis/google/google-markers.d.ts +0 -29
  208. package/lib-esm/models/apis/google/google-overlay.d.ts +0 -11
  209. package/lib-esm/models/apis/google/google-polygons.d.ts +0 -29
  210. package/lib-esm/models/apis/google/google-polylines.d.ts +0 -55
  211. package/lib-esm/models/apis/google/google-popup.d.ts +0 -10
  212. package/lib-esm/models/apis/googleMaps.d.ts +0 -95
  213. package/lib-esm/models/apis/leaflet/leaflet-circle.d.ts +0 -18
  214. package/lib-esm/models/apis/leaflet/leaflet-geojson.d.ts +0 -9
  215. package/lib-esm/models/apis/leaflet/leaflet-map.d.ts +0 -15
  216. package/lib-esm/models/apis/leaflet/leaflet-markers.d.ts +0 -29
  217. package/lib-esm/models/apis/leaflet/leaflet-overlay.d.ts +0 -10
  218. package/lib-esm/models/apis/leaflet/leaflet-polygons.d.ts +0 -23
  219. package/lib-esm/models/apis/leaflet/leaflet-polylines.d.ts +0 -54
  220. package/lib-esm/models/apis/leaflet/leaflet-popup.d.ts +0 -11
  221. package/lib-esm/models/apis/leaflet.d.ts +0 -97
  222. package/lib-esm/models/apis/mapFunctions.d.ts +0 -84
  223. package/lib-esm/models/dto/event-type.d.ts +0 -33
  224. package/lib-esm/models/dto/map-type.d.ts +0 -4
  225. package/lib-esm/models/dto/polyline-type.d.ts +0 -5
  226. package/lib-esm/models/features/circle/circle-alter-options.d.ts +0 -12
  227. package/lib-esm/models/features/circle/circle-options.d.ts +0 -15
  228. package/lib-esm/models/features/events/event-return.d.ts +0 -4
  229. package/lib-esm/models/features/geojson/geojson-options.d.ts +0 -5
  230. package/lib-esm/models/features/marker/circle-marker-options.d.ts +0 -9
  231. package/lib-esm/models/features/marker/circle-marker-style.d.ts +0 -8
  232. package/lib-esm/models/features/marker/marker-alter-options.d.ts +0 -8
  233. package/lib-esm/models/features/marker/marker-icon.d.ts +0 -6
  234. package/lib-esm/models/features/marker/marker-options.d.ts +0 -11
  235. package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.d.ts +0 -6
  236. package/lib-esm/models/features/overlay/overlay-options.d.ts +0 -11
  237. package/lib-esm/models/features/polygons/polygon-alter-options.d.ts +0 -13
  238. package/lib-esm/models/features/polygons/polygon-options.d.ts +0 -15
  239. package/lib-esm/models/features/polyline/navigations-options.d.ts +0 -11
  240. package/lib-esm/models/features/polyline/polyline-options.d.ts +0 -18
  241. package/lib-esm/models/features/popup/popup-options.d.ts +0 -9
  242. package/lib-esm/utils/maps-api-loader.service.d.ts +0 -9
  243. package/lib-esm/utils/url-builder.d.ts +0 -11
@@ -1,13 +1,13 @@
1
- var PopupOptions = /** @class */ (function () {
2
- function PopupOptions(latlng, content, marker, conditionMarker, notCalledByMap, object) {
3
- this.latlng = latlng;
4
- this.content = content;
5
- this.marker = marker;
6
- this.conditionMarker = conditionMarker;
7
- this.notCalledByMap = notCalledByMap;
8
- this.object = object;
9
- }
10
- return PopupOptions;
11
- }());
12
- export default PopupOptions;
1
+ var PopupOptions = /** @class */ (function () {
2
+ function PopupOptions(latlng, content, marker, conditionMarker, notCalledByMap, object) {
3
+ this.latlng = latlng;
4
+ this.content = content;
5
+ this.marker = marker;
6
+ this.conditionMarker = conditionMarker;
7
+ this.notCalledByMap = notCalledByMap;
8
+ this.object = object;
9
+ }
10
+ return PopupOptions;
11
+ }());
12
+ export default PopupOptions;
13
13
  //# sourceMappingURL=popup-options.js.map
@@ -1,76 +1,89 @@
1
- import { MapType } from '../models/dto/map-type';
2
- import { urlBuilder } from './url-builder';
3
- var MapsApiLoaderService = /** @class */ (function () {
4
- function MapsApiLoaderService() {
5
- }
6
- MapsApiLoaderService.loadGoogleAPI = function (params) {
7
- var script = document.createElement('script');
8
- script.type = 'text/javascript';
9
- script.setAttribute('data-google-inlogmaps', 'true');
10
- script.src = urlBuilder({
11
- apiKey: params.apiKey,
12
- base: 'https://maps.googleapis.com/maps/api/js',
13
- callback: 'mapsAPILoadCallback',
14
- client: params.client,
15
- language: params.language,
16
- libraries: params.libraries || []
17
- });
18
- var has_script = document.querySelector('script').hasAttribute('data-google-inlogmaps');
19
- if (!has_script)
20
- document.querySelector('head').appendChild(script);
21
- };
22
- MapsApiLoaderService.loadLeafletAPI = function (params) {
23
- var link = document.createElement('link');
24
- link.rel = 'stylesheet';
25
- link.href = 'https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.css';
26
- // link.integrity = params.cssIntegrity;
27
- // link.setAttribute('crossorigin', params.crossorigin);
28
- document.querySelector('head').appendChild(link);
29
- var script = document.createElement('script');
30
- script.type = 'text/javascript';
31
- script.src = urlBuilder({
32
- base: 'https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.js',
33
- callback: 'mapsAPILoadCallback',
34
- });
35
- document.querySelector('head').appendChild(script);
36
- };
37
- // TODO: needs refactoring
38
- MapsApiLoaderService.prototype.loadApi = function (mapType, params) {
39
- if (MapsApiLoaderService.mapsApi) {
40
- return Promise.resolve(MapsApiLoaderService.mapsApi);
41
- }
42
- MapsApiLoaderService.windowRef = window ? window : { api: null, mapsAPILoadCallback: null };
43
- var deferred = function (resolve, reject) {
44
- if (mapType === MapType.Google) {
45
- MapsApiLoaderService.loadGoogleAPI(params);
46
- }
47
- else {
48
- MapsApiLoaderService.loadLeafletAPI(params);
49
- }
50
- // Temporaria para testar Leaflet
51
- if (mapType === MapType.Leaflet) {
52
- setTimeout(function () {
53
- MapsApiLoaderService.mapsApi = MapsApiLoaderService.windowRef.L;
54
- resolve(MapsApiLoaderService.mapsApi);
55
- }, 2000);
56
- }
57
- else {
58
- MapsApiLoaderService.windowRef.mapsAPILoadCallback = function () {
59
- MapsApiLoaderService.mapsApi = MapsApiLoaderService.windowRef.google;
60
- resolve(MapsApiLoaderService.mapsApi);
61
- };
62
- }
63
- setTimeout(function () {
64
- if (!MapsApiLoaderService.windowRef.api) {
65
- reject(new Error('Loading took too long'));
66
- }
67
- }, 5000);
68
- };
69
- return new Promise(deferred);
70
- };
71
- MapsApiLoaderService.windowRef = null;
72
- MapsApiLoaderService.mapsApi = null;
73
- return MapsApiLoaderService;
74
- }());
75
- export { MapsApiLoaderService };
1
+ // @ts-nocheck
2
+ import { MapType } from "../models/dto/map-type";
3
+ import { urlBuilder } from "./url-builder";
4
+ var MapsApiLoaderService = /** @class */ (function () {
5
+ function MapsApiLoaderService() {
6
+ /* */
7
+ }
8
+ MapsApiLoaderService.loadGoogleAPI = function (params) {
9
+ var _a, _b;
10
+ var script = document.createElement("script");
11
+ script.type = "text/javascript";
12
+ script.setAttribute("data-google-inlogmaps", "true");
13
+ script.src = urlBuilder({
14
+ apiKey: params.apiKey,
15
+ base: "https://maps.googleapis.com/maps/api/js",
16
+ callback: "mapsAPILoadCallback",
17
+ client: params.client,
18
+ language: params.language,
19
+ libraries: params.libraries || [],
20
+ });
21
+ var has_script = (_a = document
22
+ .querySelector("script")) === null || _a === void 0 ? void 0 : _a.hasAttribute("data-google-inlogmaps");
23
+ if (!has_script)
24
+ (_b = document.querySelector("head")) === null || _b === void 0 ? void 0 : _b.appendChild(script);
25
+ };
26
+ MapsApiLoaderService.loadLeafletAPI = function (params) {
27
+ var _a, _b;
28
+ var link = document.createElement("link");
29
+ link.rel = "stylesheet";
30
+ link.href =
31
+ "https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.css";
32
+ // link.integrity = params.cssIntegrity;
33
+ // link.setAttribute('crossorigin', params.crossorigin);
34
+ (_a = document.querySelector("head")) === null || _a === void 0 ? void 0 : _a.appendChild(link);
35
+ var script = document.createElement("script");
36
+ script.type = "text/javascript";
37
+ script.src = urlBuilder({
38
+ base: "https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.js",
39
+ callback: "mapsAPILoadCallback",
40
+ // crossorigin: params.crossorigin,
41
+ // integrity: params.integrity
42
+ });
43
+ (_b = document === null || document === void 0 ? void 0 : document.querySelector("head")) === null || _b === void 0 ? void 0 : _b.appendChild(script);
44
+ };
45
+ // TODO: needs refactoring
46
+ MapsApiLoaderService.prototype.loadApi = function (mapType, params) {
47
+ if (MapsApiLoaderService.mapsApi) {
48
+ return Promise.resolve(MapsApiLoaderService.mapsApi);
49
+ }
50
+ MapsApiLoaderService.windowRef = window
51
+ ? window
52
+ : { api: null, mapsAPILoadCallback: null };
53
+ var deferred = function (resolve, reject) {
54
+ if (mapType === MapType.Google) {
55
+ MapsApiLoaderService.loadGoogleAPI(params);
56
+ }
57
+ else {
58
+ MapsApiLoaderService.loadLeafletAPI(params);
59
+ }
60
+ // Temporaria para testar Leaflet
61
+ if (mapType === MapType.Leaflet) {
62
+ setTimeout(function () {
63
+ MapsApiLoaderService.mapsApi =
64
+ MapsApiLoaderService.windowRef.L;
65
+ resolve(MapsApiLoaderService.mapsApi);
66
+ }, 2000);
67
+ }
68
+ else {
69
+ MapsApiLoaderService.windowRef.mapsAPILoadCallback = function () {
70
+ MapsApiLoaderService.mapsApi =
71
+ MapsApiLoaderService.windowRef.google;
72
+ resolve(MapsApiLoaderService.mapsApi);
73
+ };
74
+ }
75
+ setTimeout(function () {
76
+ var _a;
77
+ if (!((_a = MapsApiLoaderService === null || MapsApiLoaderService === void 0 ? void 0 : MapsApiLoaderService.windowRef) === null || _a === void 0 ? void 0 : _a.api)) {
78
+ reject(new Error("Loading took too long"));
79
+ }
80
+ }, 5000);
81
+ };
82
+ return new Promise(deferred);
83
+ };
84
+ MapsApiLoaderService.windowRef = null;
85
+ MapsApiLoaderService.mapsApi = null;
86
+ return MapsApiLoaderService;
87
+ }());
88
+ export { MapsApiLoaderService };
76
89
  //# sourceMappingURL=maps-api-loader.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"maps-api-loader.service.js","sourceRoot":"","sources":["../../src/utils/maps-api-loader.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;IA8CI;IAAsB,CAAC;IA7CT,kCAAa,GAA3B,UAA4B,MAAM;QAC9B,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAEhD,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAChC,MAAM,CAAC,YAAY,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;QAErD,MAAM,CAAC,GAAG,GAAG,UAAU,CAAC;YACpB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,IAAI,EAAE,yCAAyC;YAC/C,QAAQ,EAAE,qBAAqB;YAC/B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,EAAE;SACpC,CAAC,CAAC;QAEH,IAAI,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;QAExF,IAAI,CAAC,UAAU;YAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACxE,CAAC;IAEa,mCAAc,GAA5B,UAA6B,MAAM;QAC/B,IAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,4EAA4E,CAAC;QACzF,wCAAwC;QACxC,wDAAwD;QAExD,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,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the base url
6
- * @param {array} params.libraries an array of the libraries to be requested
7
- * @param {string} params.callback the callback function
8
- *
9
- * @return {string}
10
- */
11
- export var urlBuilder = function (params) {
12
- var builtUrl = params.base;
13
- builtUrl += '?';
14
- if (params.apiKey) {
15
- builtUrl += 'key=' + params.apiKey + '&';
16
- }
17
- if (params.integrity) {
18
- builtUrl += 'integrity=' + params.integrity + '&';
19
- }
20
- if (params.client) {
21
- builtUrl += 'client=' + params.client + '&';
22
- }
23
- if (params.crossorigin) {
24
- builtUrl += 'crossorigin=' + params.crossorigin + '&';
25
- }
26
- if (params.libraries && params.libraries.length > 0) {
27
- builtUrl += 'libraries=';
28
- params.libraries.forEach(function (library, index) {
29
- builtUrl += library;
30
- if (index !== params.libraries.length - 1) {
31
- builtUrl += ',';
32
- }
33
- });
34
- builtUrl += '&';
35
- }
36
- if (params.language) {
37
- builtUrl += 'language=' + params.language + '&';
38
- }
39
- if (params.callback) {
40
- builtUrl += 'callback=' + params.callback + '&';
41
- }
42
- return builtUrl;
43
- };
1
+ /**
2
+ * urlBuilder
3
+ *
4
+ * @param {object} params
5
+ * @param {string} params.base the base url
6
+ * @param {array} params.libraries an array of the libraries to be requested
7
+ * @param {string} params.callback the callback function
8
+ *
9
+ * @return {string}
10
+ */
11
+ export var urlBuilder = function (params) {
12
+ var builtUrl = params.base;
13
+ builtUrl += "?";
14
+ if (params.apiKey) {
15
+ builtUrl += "key=" + params.apiKey + "&";
16
+ }
17
+ if (params.integrity) {
18
+ builtUrl += "integrity=" + params.integrity + "&";
19
+ }
20
+ if (params.client) {
21
+ builtUrl += "client=" + params.client + "&";
22
+ }
23
+ if (params.crossorigin) {
24
+ builtUrl += "crossorigin=" + params.crossorigin + "&";
25
+ }
26
+ if (params.libraries && params.libraries.length > 0) {
27
+ builtUrl += "libraries=";
28
+ params.libraries.forEach(function (library, index) {
29
+ builtUrl += library;
30
+ if (index !== params.libraries.length - 1) {
31
+ builtUrl += ",";
32
+ }
33
+ });
34
+ builtUrl += "&";
35
+ }
36
+ if (params.language) {
37
+ builtUrl += "language=" + params.language + "&";
38
+ }
39
+ if (params.callback) {
40
+ builtUrl += "callback=" + params.callback + "&";
41
+ }
42
+ return builtUrl;
43
+ };
44
44
  //# sourceMappingURL=url-builder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"url-builder.js","sourceRoot":"","sources":["../../src/utils/url-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,MAAM;IAC7B,IAAI,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC;IAE3B,QAAQ,IAAI,GAAG,CAAC;IAEhB,IAAI,MAAM,CAAC,MAAM,EAAE;QACf,QAAQ,IAAI,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;KAC5C;IACD,IAAI,MAAM,CAAC,SAAS,EAAE;QAClB,QAAQ,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC;KACrD;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QACf,QAAQ,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;KAC/C;IAED,IAAI,MAAM,CAAC,WAAW,EAAE;QACpB,QAAQ,IAAI,cAAc,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC;KACzD;IAED,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;QACjD,QAAQ,IAAI,YAAY,CAAC;QAEzB,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,OAAO,EAAE,KAAK;YAC7C,QAAQ,IAAI,OAAO,CAAC;YAEpB,IAAI,KAAK,KAAK,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBACvC,QAAQ,IAAI,GAAG,CAAC;aACnB;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,IAAI,GAAG,CAAC;KACnB;IAED,IAAI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C,MAAM,GAAG,CAAC,EAAE,CAAC;gBACxC,QAAQ,IAAI,GAAG,CAAC;YACpB,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,IAAI,GAAG,CAAC;IACpB,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,QAAQ,IAAI,WAAW,GAAG,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC;IACpD,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,QAAQ,IAAI,WAAW,GAAG,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC;IACpD,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,65 +1,69 @@
1
1
  {
2
- "name": "@inlog/inlog-maps",
3
- "version": "5.0.6",
4
- "description": "A library for using generic layer maps ",
5
- "main": "index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "clean": "shx rm -rf _bundles lib lib-esm",
9
- "build": "npm run clean && tsc && tsc -m es6 --outDir lib-esm && webpack",
10
- "docs": "doxdox lib/map.js --layout markdown --output DOCUMENTATION.md",
11
- "start": "webpack-dev-server --mode development",
12
- "test": "mocha --reporter spec"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/weareinlog/inlog-maps.git"
17
- },
18
- "keywords": [
19
- "maps",
20
- "map api"
21
- ],
22
- "author": "Carol Hoegen <carolhoegen@gmail.com>",
23
- "contributors": [
24
- "Lidia Freitas <lidiafreitas.me@gmail.com>",
25
- "Gustavo Santos <gustavo.dev@outlook.com.br>",
26
- "Herus Armstrong <herus02@gmail.com>",
27
- "Kleber Silva <kleber7777@gmail.com>",
28
- "Gabriel Marques <gabrielgomarques@gmail.com>",
29
- "Jeandro Couto <jeandro.couto@gmail.com>"
30
- ],
31
- "license": "MIT",
32
- "devDependencies": {
33
- "@types/leaflet-editable": "^0.7.34",
34
- "chai": "^4.2.0",
35
- "doxdox": "git+https://git@github.com/weareinlog/doxdox.git",
36
- "mocha": "^5.2.0",
37
- "ts-loader": "^5.3.0",
38
- "typescript": "^2.9.2",
39
- "webpack-cli": "^5.0.1"
40
- },
41
- "dependencies": {
42
- "@google/markerclustererplus": "^2.1.11",
43
- "@types/google-maps": "^3.2.0",
44
- "@types/googlemaps": "^3.30.16",
45
- "@types/node": "^12.0.1",
46
- "awesome-typescript-loader": "^3.0.4-rc.2",
47
- "jsdoc-to-markdown": "^4.0.1",
48
- "leaflet": "^1.4.0",
49
- "leaflet-editable": "^1.2.0",
50
- "leaflet-gesture-handling": "^1.1.8",
51
- "leaflet-polylinedecorator": "^1.6.0",
52
- "leaflet.markercluster": "^1.4.1",
53
- "leaflet.path.drag": "0.0.6",
54
- "shx": "^0.3.4",
55
- "webpack": "^2.2.1"
56
- },
57
- "bugs": {
58
- "url": "https://github.com/weareinlog/inlog-maps/issues"
59
- },
60
- "homepage": "https://github.com/weareinlog/inlog-maps#readme",
61
- "directories": {
62
- "lib": "lib",
63
- "test": "test"
64
- }
2
+ "name": "@inlog/inlog-maps",
3
+ "version": "6.1.0",
4
+ "description": "A library for using generic layer maps ",
5
+ "main": "index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "clean": "shx rm -rf _bundles lib lib-esm",
9
+ "build": "npm run clean && tsc && tsc --outDir lib-esm && webpack",
10
+ "docs": "doxdox lib-esm/map.js --layout markdown --output DOCUMENTATION.md",
11
+ "start": "webpack-dev-server --mode development",
12
+ "test": "mocha --reporter spec"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/weareinlog/inlog-maps.git"
17
+ },
18
+ "keywords": [
19
+ "maps",
20
+ "map api"
21
+ ],
22
+ "author": "Carol Hoegen <carolhoegen@gmail.com>",
23
+ "contributors": [
24
+ "Lidia Freitas <lidiafreitas.me@gmail.com>",
25
+ "Gustavo Santos <gustavo.dev@outlook.com.br>",
26
+ "Herus Armstrong <herus02@gmail.com>",
27
+ "Kleber Silva <kleber7777@gmail.com>",
28
+ "Gabriel Marques <gabrielgomarques@gmail.com>",
29
+ "Jeandro Couto <jeandro.couto@gmail.com>",
30
+ "Alexandre Borges <ale13borges@gmail.com>"
31
+ ],
32
+ "license": "MIT",
33
+ "devDependencies": {
34
+ "@types/leaflet-editable": "^1.2.6",
35
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
36
+ "@typescript-eslint/parser": "^6.13.2",
37
+ "chai": "^4.3.10",
38
+ "doxdox": "git+https://git@github.com/weareinlog/doxdox.git",
39
+ "mocha": "^10.2.0",
40
+ "ts-loader": "^9.5.1",
41
+ "typescript": "^5.3.3",
42
+ "webpack-cli": "^5.1.4"
43
+ },
44
+ "dependencies": {
45
+ "@google/markerclustererplus": "^5.1.3",
46
+ "@types/google-maps": "^3.2.6",
47
+ "@types/googlemaps": "^3.43.3",
48
+ "@types/node": "^20.10.4",
49
+ "html2canvas": "^1.4.1",
50
+ "jsdoc-to-markdown": "^8.0.0",
51
+ "leaflet": "^1.9.4",
52
+ "leaflet-editable": "^1.2.0",
53
+ "leaflet-gesture-handling": "^1.1.8",
54
+ "leaflet-polylinedecorator": "^1.6.0",
55
+ "leaflet-simple-map-screenshoter": "^0.5.0",
56
+ "leaflet.markercluster": "^1.4.1",
57
+ "leaflet.path.drag": "0.0.6",
58
+ "shx": "^0.3.4",
59
+ "webpack": "^5.89.0"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/weareinlog/inlog-maps/issues"
63
+ },
64
+ "homepage": "https://github.com/weareinlog/inlog-maps#readme",
65
+ "directories": {
66
+ "lib": "lib",
67
+ "test": "test"
68
+ }
65
69
  }
package/lib/index.d.ts DELETED
@@ -1,46 +0,0 @@
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 };