@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.
- package/DOCUMENTATION.md +19 -2
- package/_bundles/inlog-maps.js +2 -7239
- package/_bundles/inlog-maps.js.LICENSE.txt +20 -0
- package/_bundles/inlog-maps.js.map +1 -1
- package/_bundles/inlog-maps.min.js +2 -1
- package/_bundles/inlog-maps.min.js.LICENSE.txt +20 -0
- package/_bundles/inlog-maps.min.js.map +1 -1
- package/lib/index.js +46 -46
- package/lib/index.js.map +1 -1
- package/lib/map.js +1136 -1010
- package/lib/map.js.map +1 -1
- package/lib/models/apis/google/google-circles.js +133 -130
- package/lib/models/apis/google/google-circles.js.map +1 -1
- package/lib/models/apis/google/google-geojson.js +72 -71
- package/lib/models/apis/google/google-geojson.js.map +1 -1
- package/lib/models/apis/google/google-map.js +173 -90
- package/lib/models/apis/google/google-map.js.map +1 -1
- package/lib/models/apis/google/google-markers.js +324 -290
- package/lib/models/apis/google/google-markers.js.map +1 -1
- package/lib/models/apis/google/google-overlay.js +101 -96
- package/lib/models/apis/google/google-overlay.js.map +1 -1
- package/lib/models/apis/google/google-polygons.js +300 -227
- package/lib/models/apis/google/google-polygons.js.map +1 -1
- package/lib/models/apis/google/google-polylines.js +706 -596
- package/lib/models/apis/google/google-polylines.js.map +1 -1
- package/lib/models/apis/google/google-popup.js +58 -60
- package/lib/models/apis/google/google-popup.js.map +1 -1
- package/lib/models/apis/googleMaps.js +448 -354
- package/lib/models/apis/googleMaps.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-circle.js +162 -134
- package/lib/models/apis/leaflet/leaflet-circle.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-geojson.js +72 -68
- package/lib/models/apis/leaflet/leaflet-geojson.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-map.js +139 -85
- package/lib/models/apis/leaflet/leaflet-map.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-markers.js +293 -259
- package/lib/models/apis/leaflet/leaflet-markers.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-overlay.js +34 -36
- package/lib/models/apis/leaflet/leaflet-overlay.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-polygons.js +210 -212
- package/lib/models/apis/leaflet/leaflet-polygons.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-polylines.js +705 -590
- package/lib/models/apis/leaflet/leaflet-polylines.js.map +1 -1
- package/lib/models/apis/leaflet/leaflet-popup.js +73 -75
- package/lib/models/apis/leaflet/leaflet-popup.js.map +1 -1
- package/lib/models/apis/leaflet.js +463 -360
- package/lib/models/apis/leaflet.js.map +1 -1
- package/lib/models/apis/mapFunctions.js +1 -2
- package/lib/models/dto/event-type.js +38 -40
- package/lib/models/dto/event-type.js.map +1 -1
- package/lib/models/dto/map-type.js +5 -7
- package/lib/models/dto/map-type.js.map +1 -1
- package/lib/models/dto/polyline-type.js +6 -8
- package/lib/models/dto/polyline-type.js.map +1 -1
- package/lib/models/features/circle/circle-alter-options.js +13 -15
- package/lib/models/features/circle/circle-alter-options.js.map +1 -1
- package/lib/models/features/circle/circle-options.js +18 -20
- package/lib/models/features/circle/circle-options.js.map +1 -1
- package/lib/models/features/events/event-return.js +7 -9
- package/lib/models/features/events/event-return.js.map +1 -1
- package/lib/models/features/geojson/geojson-options.js +8 -10
- package/lib/models/features/geojson/geojson-options.js.map +1 -1
- package/lib/models/features/marker/circle-marker-options.js +11 -13
- package/lib/models/features/marker/circle-marker-options.js.map +1 -1
- package/lib/models/features/marker/circle-marker-style.js +11 -13
- package/lib/models/features/marker/circle-marker-style.js.map +1 -1
- package/lib/models/features/marker/marker-alter-options.js +9 -11
- package/lib/models/features/marker/marker-alter-options.js.map +1 -1
- package/lib/models/features/marker/marker-icon.js +9 -11
- package/lib/models/features/marker/marker-icon.js.map +1 -1
- package/lib/models/features/marker/marker-options.js +17 -19
- package/lib/models/features/marker/marker-options.js.map +1 -1
- package/lib/models/features/marker-clusterer/marker-clusterer-config.js +9 -11
- package/lib/models/features/marker-clusterer/marker-clusterer-config.js.map +1 -1
- package/lib/models/features/overlay/overlay-options.js +14 -16
- package/lib/models/features/overlay/overlay-options.js.map +1 -1
- package/lib/models/features/polygons/polygon-alter-options.js +13 -14
- package/lib/models/features/polygons/polygon-alter-options.js.map +1 -1
- package/lib/models/features/polygons/polygon-options.js +18 -19
- package/lib/models/features/polygons/polygon-options.js.map +1 -1
- package/lib/models/features/polyline/navigations-options.js +15 -15
- package/lib/models/features/polyline/navigations-options.js.map +1 -1
- package/lib/models/features/polyline/polyline-options.js +19 -21
- package/lib/models/features/polyline/polyline-options.js.map +1 -1
- package/lib/models/features/popup/popup-options.js +12 -14
- package/lib/models/features/popup/popup-options.js.map +1 -1
- package/lib/utils/maps-api-loader.service.js +88 -77
- package/lib/utils/maps-api-loader.service.js.map +1 -1
- package/lib/utils/url-builder.js +43 -45
- package/lib/utils/url-builder.js.map +1 -1
- package/lib-esm/index.js +46 -45
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/map.js +1136 -1008
- package/lib-esm/map.js.map +1 -1
- package/lib-esm/models/apis/google/google-circles.js +133 -128
- package/lib-esm/models/apis/google/google-circles.js.map +1 -1
- package/lib-esm/models/apis/google/google-geojson.js +72 -69
- package/lib-esm/models/apis/google/google-geojson.js.map +1 -1
- package/lib-esm/models/apis/google/google-map.js +173 -88
- package/lib-esm/models/apis/google/google-map.js.map +1 -1
- package/lib-esm/models/apis/google/google-markers.js +324 -288
- package/lib-esm/models/apis/google/google-markers.js.map +1 -1
- package/lib-esm/models/apis/google/google-overlay.js +101 -94
- package/lib-esm/models/apis/google/google-overlay.js.map +1 -1
- package/lib-esm/models/apis/google/google-polygons.js +300 -225
- package/lib-esm/models/apis/google/google-polygons.js.map +1 -1
- package/lib-esm/models/apis/google/google-polylines.js +706 -594
- package/lib-esm/models/apis/google/google-polylines.js.map +1 -1
- package/lib-esm/models/apis/google/google-popup.js +58 -58
- package/lib-esm/models/apis/google/google-popup.js.map +1 -1
- package/lib-esm/models/apis/googleMaps.js +448 -352
- package/lib-esm/models/apis/googleMaps.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-circle.js +162 -132
- package/lib-esm/models/apis/leaflet/leaflet-circle.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-geojson.js +72 -66
- package/lib-esm/models/apis/leaflet/leaflet-geojson.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-map.js +139 -83
- package/lib-esm/models/apis/leaflet/leaflet-map.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-markers.js +293 -257
- package/lib-esm/models/apis/leaflet/leaflet-markers.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-overlay.js +34 -34
- package/lib-esm/models/apis/leaflet/leaflet-overlay.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-polygons.js +210 -210
- package/lib-esm/models/apis/leaflet/leaflet-polygons.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-polylines.js +705 -588
- package/lib-esm/models/apis/leaflet/leaflet-polylines.js.map +1 -1
- package/lib-esm/models/apis/leaflet/leaflet-popup.js +73 -73
- package/lib-esm/models/apis/leaflet/leaflet-popup.js.map +1 -1
- package/lib-esm/models/apis/leaflet.js +463 -358
- package/lib-esm/models/apis/leaflet.js.map +1 -1
- package/lib-esm/models/apis/mapFunctions.js +1 -0
- package/lib-esm/models/dto/event-type.js +38 -38
- package/lib-esm/models/dto/map-type.js +5 -5
- package/lib-esm/models/dto/polyline-type.js +6 -6
- package/lib-esm/models/features/circle/circle-alter-options.js +13 -13
- package/lib-esm/models/features/circle/circle-options.js +18 -18
- package/lib-esm/models/features/events/event-return.js +7 -7
- package/lib-esm/models/features/geojson/geojson-options.js +8 -8
- package/lib-esm/models/features/marker/circle-marker-options.js +11 -11
- package/lib-esm/models/features/marker/circle-marker-style.js +11 -11
- package/lib-esm/models/features/marker/marker-alter-options.js +9 -9
- package/lib-esm/models/features/marker/marker-icon.js +9 -9
- package/lib-esm/models/features/marker/marker-options.js +17 -17
- package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.js +9 -9
- package/lib-esm/models/features/overlay/overlay-options.js +14 -14
- package/lib-esm/models/features/polygons/polygon-alter-options.js +13 -12
- package/lib-esm/models/features/polygons/polygon-alter-options.js.map +1 -1
- package/lib-esm/models/features/polygons/polygon-options.js +18 -17
- package/lib-esm/models/features/polygons/polygon-options.js.map +1 -1
- package/lib-esm/models/features/polyline/navigations-options.js +15 -13
- package/lib-esm/models/features/polyline/navigations-options.js.map +1 -1
- package/lib-esm/models/features/polyline/polyline-options.js +19 -19
- package/lib-esm/models/features/polyline/polyline-options.js.map +1 -1
- package/lib-esm/models/features/popup/popup-options.js +12 -12
- package/lib-esm/utils/maps-api-loader.service.js +88 -75
- package/lib-esm/utils/maps-api-loader.service.js.map +1 -1
- package/lib-esm/utils/url-builder.js +43 -43
- package/lib-esm/utils/url-builder.js.map +1 -1
- package/package.json +67 -63
- package/lib/index.d.ts +0 -46
- package/lib/map.d.ts +0 -513
- package/lib/models/apis/google/google-circles.d.ts +0 -18
- package/lib/models/apis/google/google-geojson.d.ts +0 -9
- package/lib/models/apis/google/google-map.d.ts +0 -15
- package/lib/models/apis/google/google-markers.d.ts +0 -29
- package/lib/models/apis/google/google-overlay.d.ts +0 -11
- package/lib/models/apis/google/google-polygons.d.ts +0 -29
- package/lib/models/apis/google/google-polylines.d.ts +0 -55
- package/lib/models/apis/google/google-popup.d.ts +0 -10
- package/lib/models/apis/googleMaps.d.ts +0 -95
- package/lib/models/apis/leaflet/leaflet-circle.d.ts +0 -18
- package/lib/models/apis/leaflet/leaflet-geojson.d.ts +0 -9
- package/lib/models/apis/leaflet/leaflet-map.d.ts +0 -15
- package/lib/models/apis/leaflet/leaflet-markers.d.ts +0 -29
- package/lib/models/apis/leaflet/leaflet-overlay.d.ts +0 -10
- package/lib/models/apis/leaflet/leaflet-polygons.d.ts +0 -23
- package/lib/models/apis/leaflet/leaflet-polylines.d.ts +0 -54
- package/lib/models/apis/leaflet/leaflet-popup.d.ts +0 -11
- package/lib/models/apis/leaflet.d.ts +0 -97
- package/lib/models/apis/mapFunctions.d.ts +0 -84
- package/lib/models/dto/event-type.d.ts +0 -33
- package/lib/models/dto/map-type.d.ts +0 -4
- package/lib/models/dto/polyline-type.d.ts +0 -5
- package/lib/models/features/circle/circle-alter-options.d.ts +0 -12
- package/lib/models/features/circle/circle-options.d.ts +0 -15
- package/lib/models/features/events/event-return.d.ts +0 -4
- package/lib/models/features/geojson/geojson-options.d.ts +0 -5
- package/lib/models/features/marker/circle-marker-options.d.ts +0 -9
- package/lib/models/features/marker/circle-marker-style.d.ts +0 -8
- package/lib/models/features/marker/marker-alter-options.d.ts +0 -8
- package/lib/models/features/marker/marker-icon.d.ts +0 -6
- package/lib/models/features/marker/marker-options.d.ts +0 -11
- package/lib/models/features/marker-clusterer/marker-clusterer-config.d.ts +0 -6
- package/lib/models/features/overlay/overlay-options.d.ts +0 -11
- package/lib/models/features/polygons/polygon-alter-options.d.ts +0 -13
- package/lib/models/features/polygons/polygon-options.d.ts +0 -15
- package/lib/models/features/polyline/navigations-options.d.ts +0 -11
- package/lib/models/features/polyline/polyline-options.d.ts +0 -18
- package/lib/models/features/popup/popup-options.d.ts +0 -9
- package/lib/utils/maps-api-loader.service.d.ts +0 -9
- package/lib/utils/url-builder.d.ts +0 -11
- package/lib-esm/index.d.ts +0 -46
- package/lib-esm/map.d.ts +0 -513
- package/lib-esm/models/apis/google/google-circles.d.ts +0 -18
- package/lib-esm/models/apis/google/google-geojson.d.ts +0 -9
- package/lib-esm/models/apis/google/google-map.d.ts +0 -15
- package/lib-esm/models/apis/google/google-markers.d.ts +0 -29
- package/lib-esm/models/apis/google/google-overlay.d.ts +0 -11
- package/lib-esm/models/apis/google/google-polygons.d.ts +0 -29
- package/lib-esm/models/apis/google/google-polylines.d.ts +0 -55
- package/lib-esm/models/apis/google/google-popup.d.ts +0 -10
- package/lib-esm/models/apis/googleMaps.d.ts +0 -95
- package/lib-esm/models/apis/leaflet/leaflet-circle.d.ts +0 -18
- package/lib-esm/models/apis/leaflet/leaflet-geojson.d.ts +0 -9
- package/lib-esm/models/apis/leaflet/leaflet-map.d.ts +0 -15
- package/lib-esm/models/apis/leaflet/leaflet-markers.d.ts +0 -29
- package/lib-esm/models/apis/leaflet/leaflet-overlay.d.ts +0 -10
- package/lib-esm/models/apis/leaflet/leaflet-polygons.d.ts +0 -23
- package/lib-esm/models/apis/leaflet/leaflet-polylines.d.ts +0 -54
- package/lib-esm/models/apis/leaflet/leaflet-popup.d.ts +0 -11
- package/lib-esm/models/apis/leaflet.d.ts +0 -97
- package/lib-esm/models/apis/mapFunctions.d.ts +0 -84
- package/lib-esm/models/dto/event-type.d.ts +0 -33
- package/lib-esm/models/dto/map-type.d.ts +0 -4
- package/lib-esm/models/dto/polyline-type.d.ts +0 -5
- package/lib-esm/models/features/circle/circle-alter-options.d.ts +0 -12
- package/lib-esm/models/features/circle/circle-options.d.ts +0 -15
- package/lib-esm/models/features/events/event-return.d.ts +0 -4
- package/lib-esm/models/features/geojson/geojson-options.d.ts +0 -5
- package/lib-esm/models/features/marker/circle-marker-options.d.ts +0 -9
- package/lib-esm/models/features/marker/circle-marker-style.d.ts +0 -8
- package/lib-esm/models/features/marker/marker-alter-options.d.ts +0 -8
- package/lib-esm/models/features/marker/marker-icon.d.ts +0 -6
- package/lib-esm/models/features/marker/marker-options.d.ts +0 -11
- package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.d.ts +0 -6
- package/lib-esm/models/features/overlay/overlay-options.d.ts +0 -11
- package/lib-esm/models/features/polygons/polygon-alter-options.d.ts +0 -13
- package/lib-esm/models/features/polygons/polygon-options.d.ts +0 -15
- package/lib-esm/models/features/polyline/navigations-options.d.ts +0 -11
- package/lib-esm/models/features/polyline/polyline-options.d.ts +0 -18
- package/lib-esm/models/features/popup/popup-options.d.ts +0 -9
- package/lib-esm/utils/maps-api-loader.service.d.ts +0 -9
- 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
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
script
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
document.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
document.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
MapsApiLoaderService.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"maps-api-loader.service.js","sourceRoot":"","sources":["../../src/utils/maps-api-loader.service.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;I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BAC1C,CAAC,CAAC;YACN,CAAC;YAED,UAAU,CAAC;;gBACP,IAAI,CAAC,CAAA,MAAA,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,SAAS,0CAAE,GAAG,CAAA,EAAE,CAAC;oBACxC,MAAM,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC;gBAC/C,CAAC;YACL,CAAC,EAAE,IAAI,CAAC,CAAC;QACb,CAAC,CAAC;QAEF,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IAlDc,8BAAS,GAAG,IAAI,CAAC;IACjB,4BAAO,GAAG,IAAI,CAAC;IAkDlC,2BAAC;CAAA,AAtGD,IAsGC;SAtGY,oBAAoB"}
|
|
@@ -1,44 +1,44 @@
|
|
|
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 +=
|
|
16
|
-
}
|
|
17
|
-
if (params.integrity) {
|
|
18
|
-
builtUrl +=
|
|
19
|
-
}
|
|
20
|
-
if (params.client) {
|
|
21
|
-
builtUrl +=
|
|
22
|
-
}
|
|
23
|
-
if (params.crossorigin) {
|
|
24
|
-
builtUrl +=
|
|
25
|
-
}
|
|
26
|
-
if (params.libraries && params.libraries.length > 0) {
|
|
27
|
-
builtUrl +=
|
|
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 +=
|
|
38
|
-
}
|
|
39
|
-
if (params.callback) {
|
|
40
|
-
builtUrl +=
|
|
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,
|
|
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,MAS1B;IACG,IAAI,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC;IAE3B,QAAQ,IAAI,GAAG,CAAC;IAEhB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAChB,QAAQ,IAAI,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;IAC7C,CAAC;IACD,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACnB,QAAQ,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC;IACtD,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAChB,QAAQ,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;IAChD,CAAC;IAED,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACrB,QAAQ,IAAI,cAAc,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC;IAC1D,CAAC;IAED,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClD,QAAQ,IAAI,YAAY,CAAC;QAEzB,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,OAAY,EAAE,KAAa;YAC1D,QAAQ,IAAI,OAAO,CAAC;YAEpB,IAAI,KAAK,KAAK,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACxC,QAA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log-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 };
|