@twinmatrix/spatialverse-sdk-web 0.0.3 → 0.0.5

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 (111) hide show
  1. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.js +2 -2
  2. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.js.map +1 -1
  3. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.js +293 -0
  4. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.js.map +1 -0
  5. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.js +35 -0
  6. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.js.map +1 -0
  7. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.js +33 -0
  8. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.js.map +1 -0
  9. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.js +307 -0
  10. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.js.map +1 -0
  11. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.js +4 -3
  12. package/lib/cjs/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.js.map +1 -1
  13. package/lib/cjs/meta-atlas-sdk/3DMap/MainMap.js +202 -198
  14. package/lib/cjs/meta-atlas-sdk/3DMap/MainMap.js.map +1 -1
  15. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.js +3 -3
  16. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.js.map +1 -1
  17. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/focustree.json +121 -0
  18. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.js +32 -29
  19. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.js.map +1 -1
  20. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/routing-core/index.js +10 -13
  21. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/routing-core/index.js.map +1 -1
  22. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.js +55 -68
  23. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.js.map +1 -1
  24. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.js +12 -12
  25. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.js.map +1 -1
  26. package/lib/cjs/meta-atlas-sdk/MetaAtlasCore/whatTaxonomies.json +170 -0
  27. package/lib/cjs/meta-atlas-sdk/combined_style.json +2313 -0
  28. package/lib/cjs/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.js +166 -0
  29. package/lib/cjs/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.js.map +1 -0
  30. package/lib/cjs/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.js +229 -0
  31. package/lib/cjs/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.js.map +1 -0
  32. package/lib/cjs/meta-atlas-sdk/meta-atlas-sdk.js +73 -69
  33. package/lib/cjs/meta-atlas-sdk/meta-atlas-sdk.js.map +1 -1
  34. package/lib/cjs/meta-atlas-sdk/utils/helpers.js +1 -1
  35. package/lib/cjs/meta-atlas-sdk/utils/helpers.js.map +1 -1
  36. package/lib/cjs/meta-atlas-sdk/utils/local-storage.js +6 -1
  37. package/lib/cjs/meta-atlas-sdk/utils/local-storage.js.map +1 -1
  38. package/lib/cjs/meta-atlas-sdk/utils/routing-visualizer/index.js +103 -103
  39. package/lib/cjs/meta-atlas-sdk/utils/routing-visualizer/index.js.map +1 -1
  40. package/lib/cjs/react/MetaAtlasMap.js +4 -4
  41. package/lib/cjs/react/MetaAtlasMap.js.map +1 -1
  42. package/lib/cjs/react/hooks/useMapEvents/index.js +6 -3
  43. package/lib/cjs/react/hooks/useMapEvents/index.js.map +1 -1
  44. package/lib/cjs/react/hooks/useStampRally/index.js +7 -5
  45. package/lib/cjs/react/hooks/useStampRally/index.js.map +1 -1
  46. package/lib/cjs/react/hooks/useStampRally/utils.js +1 -1
  47. package/lib/cjs/react/hooks/useStampRally/utils.js.map +1 -1
  48. package/lib/cjs/react/stores/useMapDataStore.js +17 -21
  49. package/lib/cjs/react/stores/useMapDataStore.js.map +1 -1
  50. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.js +2 -2
  51. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.js.map +1 -1
  52. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.js +286 -0
  53. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.js.map +1 -0
  54. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.js +27 -0
  55. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.js.map +1 -0
  56. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.js +27 -0
  57. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.js.map +1 -0
  58. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.js +305 -0
  59. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.js.map +1 -0
  60. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.js +4 -3
  61. package/lib/esm/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.js.map +1 -1
  62. package/lib/esm/meta-atlas-sdk/3DMap/MainMap.js +202 -198
  63. package/lib/esm/meta-atlas-sdk/3DMap/MainMap.js.map +1 -1
  64. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.js +3 -3
  65. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.js.map +1 -1
  66. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/focustree.json +121 -0
  67. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.js +32 -29
  68. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.js.map +1 -1
  69. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/routing-core/index.js +10 -8
  70. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/routing-core/index.js.map +1 -1
  71. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.js +55 -68
  72. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.js.map +1 -1
  73. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.js +12 -12
  74. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.js.map +1 -1
  75. package/lib/esm/meta-atlas-sdk/MetaAtlasCore/whatTaxonomies.json +170 -0
  76. package/lib/esm/meta-atlas-sdk/combined_style.json +2313 -0
  77. package/lib/esm/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.js +158 -0
  78. package/lib/esm/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.js.map +1 -0
  79. package/lib/esm/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.js +221 -0
  80. package/lib/esm/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.js.map +1 -0
  81. package/lib/esm/meta-atlas-sdk/meta-atlas-sdk.js +73 -68
  82. package/lib/esm/meta-atlas-sdk/meta-atlas-sdk.js.map +1 -1
  83. package/lib/esm/meta-atlas-sdk/utils/helpers.js +1 -1
  84. package/lib/esm/meta-atlas-sdk/utils/helpers.js.map +1 -1
  85. package/lib/esm/meta-atlas-sdk/utils/local-storage.js +6 -1
  86. package/lib/esm/meta-atlas-sdk/utils/local-storage.js.map +1 -1
  87. package/lib/esm/meta-atlas-sdk/utils/routing-visualizer/index.js +103 -101
  88. package/lib/esm/meta-atlas-sdk/utils/routing-visualizer/index.js.map +1 -1
  89. package/lib/esm/react/MetaAtlasMap.js +4 -4
  90. package/lib/esm/react/MetaAtlasMap.js.map +1 -1
  91. package/lib/esm/react/hooks/useMapEvents/index.js +6 -3
  92. package/lib/esm/react/hooks/useMapEvents/index.js.map +1 -1
  93. package/lib/esm/react/hooks/useStampRally/index.js +7 -5
  94. package/lib/esm/react/hooks/useStampRally/index.js.map +1 -1
  95. package/lib/esm/react/hooks/useStampRally/utils.js +1 -1
  96. package/lib/esm/react/hooks/useStampRally/utils.js.map +1 -1
  97. package/lib/esm/react/stores/useMapDataStore.js +17 -21
  98. package/lib/esm/react/stores/useMapDataStore.js.map +1 -1
  99. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts +30 -0
  100. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts.map +1 -0
  101. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts +5 -0
  102. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts.map +1 -0
  103. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts +21 -0
  104. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts.map +1 -0
  105. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts +27 -0
  106. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts.map +1 -0
  107. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.d.ts +18 -0
  108. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.d.ts.map +1 -0
  109. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.d.ts +37 -0
  110. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.d.ts.map +1 -0
  111. package/package.json +4 -4
@@ -0,0 +1,121 @@
1
+ {
2
+ "site": {
3
+ "name": "Singapore",
4
+ "taxonomyPath": "where.singapore",
5
+ "cameraConfigs": {
6
+ "mobile": {
7
+ "zoom": 20,
8
+ "center": [103.852996655352, 1.2944483519089962],
9
+ "bearing": -55,
10
+ "pitch": 42
11
+ },
12
+ "web": {
13
+ "zoom": 20,
14
+ "center": [103.852996655352, 1.2944483519089962],
15
+ "bearing": -55,
16
+ "pitch": 42
17
+ }
18
+ },
19
+ "buildings": [
20
+ {
21
+ "name": "RCCC",
22
+ "taxonomyPath": "where.singapore.rfcc",
23
+ "defaultFloorPath": "where.singapore.rfcc.level_4",
24
+ "cameraConfigs": {
25
+ "mobile": {
26
+ "zoom": 20,
27
+ "center": [103.852996655352, 1.2944483519089962],
28
+ "bearing": -55,
29
+ "pitch": 42
30
+ },
31
+ "web": {
32
+ "zoom": 20,
33
+ "center": [103.852996655352, 1.2944483519089962],
34
+ "bearing": -55,
35
+ "pitch": 42
36
+ }
37
+ },
38
+ "bounds": [
39
+ [103.85320731171177, 1.2948914975277541],
40
+ [103.85421314010136, 1.2941272630719642],
41
+ [103.85348894366088, 1.2929286211985838],
42
+ [103.85317244299428, 1.2948914975277541]
43
+ ],
44
+ "floors": [
45
+ {
46
+ "name": "Level 1",
47
+ "taxonomyPath": "where.singapore.rfcc.level_1",
48
+ "cameraConfigs": {
49
+ "mobile": {
50
+ "zoom": 19.35,
51
+ "center": [103.85364319364783, 1.294008192054065],
52
+ "bearing": -55,
53
+ "pitch": 42
54
+ },
55
+ "web": {
56
+ "zoom": 19.5,
57
+ "center": [103.85346012604555, 1.293763243193382],
58
+ "bearing": -53,
59
+ "pitch": 38.23
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "name": "Level 4",
65
+ "taxonomyPath": "where.singapore.rfcc.level_4",
66
+ "cameraConfigs": {
67
+ "mobile": {
68
+ "zoom": 20,
69
+ "center": [103.852996655352, 1.2944483519089962],
70
+ "bearing": -55,
71
+ "pitch": 42
72
+ },
73
+ "web": {
74
+ "zoom": 20,
75
+ "center": [103.852996655352, 1.2944483519089962],
76
+ "bearing": -55,
77
+ "pitch": 42
78
+ }
79
+ }
80
+ },
81
+ {
82
+ "name": "Level 69",
83
+ "taxonomyPath": "where.singapore.rfcc.level_69",
84
+ "cameraConfigs": {
85
+ "mobile": {
86
+ "zoom": 18.1,
87
+ "center": [103.85374636384404, 1.293577568494925],
88
+ "bearing": -55,
89
+ "pitch": 42
90
+ },
91
+ "web": {
92
+ "zoom": 19.4,
93
+ "center": [103.85361309798509, 1.293664890336487],
94
+ "bearing": -54.3,
95
+ "pitch": 44.5
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "name": "Level 70",
101
+ "taxonomyPath": "where.singapore.rfcc.level_70",
102
+ "cameraConfigs": {
103
+ "mobile": {
104
+ "zoom": 18.1,
105
+ "center": [103.85374636384404, 1.293577568494925],
106
+ "bearing": -55,
107
+ "pitch": 42
108
+ },
109
+ "web": {
110
+ "zoom": 19.4,
111
+ "center": [103.85361309798509, 1.293664890336487],
112
+ "bearing": -54.3,
113
+ "pitch": 44.5
114
+ }
115
+ }
116
+ }
117
+ ]
118
+ }
119
+ ]
120
+ }
121
+ }
@@ -1,3 +1,8 @@
1
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
6
  import focusTree from './focustree.json';
2
7
  import whatTaxonomies from './whatTaxonomies.json';
3
8
  import length from '@turf/length';
@@ -23,21 +28,22 @@ export let FilterType = /*#__PURE__*/function (FilterType) {
23
28
  return FilterType;
24
29
  }({});
25
30
  export class MetaAtlasCore {
26
- defaultFocusedTaxonomy = 'where.changi';
27
- searchableGeoJsonFeatures = [];
28
- currentFocus = this.defaultFocusedTaxonomy;
29
- // For ATOMS API
30
- token = '';
31
- empApi = '';
32
- atomsAPIAccessToken = '';
33
- apiRequestLimit = 5000;
34
-
35
- // For Routing & Search
36
- secretKeyForDecryption = '';
37
- routingStatus = (() => Status.Awaiting)();
38
- searchStatus = (() => Status.Awaiting)();
39
- storage = (() => new LocalStorage())();
40
31
  constructor() {
32
+ _defineProperty(this, "defaultFocusedTaxonomy", 'where.changi');
33
+ _defineProperty(this, "searchableGeoJsonFeatures", []);
34
+ _defineProperty(this, "currentFocus", this.defaultFocusedTaxonomy);
35
+ // For ATOMS API
36
+ _defineProperty(this, "token", '');
37
+ _defineProperty(this, "empApi", '');
38
+ _defineProperty(this, "atomsAPIAccessToken", '');
39
+ _defineProperty(this, "apiRequestLimit", 5000);
40
+ // For Routing & Search
41
+ _defineProperty(this, "secretKeyForDecryption", '');
42
+ _defineProperty(this, "routingStatus", Status.Awaiting);
43
+ _defineProperty(this, "searchStatus", Status.Awaiting);
44
+ _defineProperty(this, "storage", new LocalStorage());
45
+ _defineProperty(this, "ignoredLayers", ['Aerodrome', 'Aerodrome names', 'Aerobridge', 'Aerobridge gates', 'Airplanes', 'Airplanes outline', 'Building Extrusion', 'Building icon', 'Building overlay', 'Building overlay outline', 'Building underlay', 'Building underlay icon', 'Building underlay selected outline', 'building_outline', 'Changi Airport Connector', 'Changi Airport Connector Text', 'Changi Walkway Text', 'T2 overlay outline copy', 'Building overlay base', 'Skytrain track outdoor']);
46
+ _defineProperty(this, "nonFloorLayers", ['where.changi', 'where.changi.tarmac', 'where.changi.tarmac.public', 'where.changi.tarmac.private', 'where.changi.terminals', 'where.changi.terminals.jewel', 'where.changi.terminals.t1', 'where.changi.terminals.t2', 'where.changi.terminals.t3', 'where.changi.terminals.t4', 'where.hkcec.main_bldg', 'where.gbtb.flower_dome', 'where.lima', 'where.lima.mahsuri_center', 'where.lima.maritime', 'where.malaysia', 'where.malaysia.bcck', 'where.malaysia.rmh', 'where.malaysia.pm', 'where.indonesia.fairmont_jakarta']);
41
47
  this.lastClicked = {
42
48
  mapObjectId: null,
43
49
  coordinates: null,
@@ -64,14 +70,15 @@ export class MetaAtlasCore {
64
70
  });
65
71
  const config = {
66
72
  method: 'post',
67
- url: `${this.empApi}/authentication`,
73
+ url: "".concat(this.empApi, "/authentication"),
68
74
  headers: {
69
75
  'Content-Type': 'application/json'
70
76
  },
71
77
  data: data
72
78
  };
73
79
  axios(config).then(async response => {
74
- if (response?.data?.accessToken) {
80
+ var _response$data;
81
+ if (response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && _response$data.accessToken) {
75
82
  this.atomsAPIAccessToken = response.data.accessToken;
76
83
  onAuthenticationResponse({
77
84
  authenticated: true
@@ -105,15 +112,13 @@ export class MetaAtlasCore {
105
112
  setLastClickedFeature(featureData) {
106
113
  if (featureData.mapObjectId) {
107
114
  this.getMapObjectById(featureData.mapObjectId, res => {
108
- const mo = res?.[0];
115
+ const mo = res === null || res === void 0 ? void 0 : res[0];
109
116
  if (mo) {
110
- this.lastClicked = {
111
- ...featureData,
112
- properties: {
113
- ...featureData.properties,
117
+ this.lastClicked = _objectSpread(_objectSpread({}, featureData), {}, {
118
+ properties: _objectSpread(_objectSpread({}, featureData.properties), {}, {
114
119
  booth_info: mo.properties.booth_info
115
- }
116
- };
120
+ })
121
+ });
117
122
  }
118
123
  });
119
124
  } else {
@@ -238,8 +243,6 @@ export class MetaAtlasCore {
238
243
  let isViewingFloor = booleanPointInPolygon(centerPoint, fBounds);
239
244
  return isViewingBuilding || isViewingFloor;
240
245
  }
241
- ignoredLayers = ['Aerodrome', 'Aerodrome names', 'Aerobridge', 'Aerobridge gates', 'Airplanes', 'Airplanes outline', 'Building Extrusion', 'Building icon', 'Building overlay', 'Building overlay outline', 'Building underlay', 'Building underlay icon', 'Building underlay selected outline', 'building_outline', 'Changi Airport Connector', 'Changi Airport Connector Text', 'Changi Walkway Text', 'T2 overlay outline copy', 'Building overlay base', 'Skytrain track outdoor'];
242
- nonFloorLayers = ['where.changi', 'where.changi.tarmac', 'where.changi.tarmac.public', 'where.changi.tarmac.private', 'where.changi.terminals', 'where.changi.terminals.jewel', 'where.changi.terminals.t1', 'where.changi.terminals.t2', 'where.changi.terminals.t3', 'where.changi.terminals.t4', 'where.hkcec.main_bldg', 'where.gbtb.flower_dome', 'where.lima', 'where.lima.mahsuri_center', 'where.lima.maritime', 'where.malaysia', 'where.malaysia.bcck', 'where.malaysia.rmh', 'where.malaysia.pm', 'where.indonesia.fairmont_jakarta'];
243
246
  filterBaseMapWhereDimension(layersData, whereTaxonomyPath) {
244
247
  let dimensionWhere = whereTaxonomyPath;
245
248
  if (!dimensionWhere) {
@@ -1009,9 +1012,9 @@ export class MetaAtlasCore {
1009
1012
  let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1010
1013
  return new Promise((resolve, reject) => {
1011
1014
  axios({
1012
- url: `${this.empApi}/map-objects${query}`,
1015
+ url: "".concat(this.empApi, "/map-objects").concat(query),
1013
1016
  headers: {
1014
- Authorization: `Bearer ${this.atomsAPIAccessToken}`
1017
+ Authorization: "Bearer ".concat(this.atomsAPIAccessToken)
1015
1018
  },
1016
1019
  method: 'get'
1017
1020
  }).then(response => {
@@ -1024,8 +1027,8 @@ export class MetaAtlasCore {
1024
1027
  });
1025
1028
  }
1026
1029
  getMapObjectsByWhatTaxonomyAPI(whatTaxonomyPath, onResponseCallback) {
1027
- let query = `?$limit=${this.apiRequestLimit}`;
1028
- if (whatTaxonomyPath) query += `&taxonomy2Path=${whatTaxonomyPath}`;
1030
+ let query = "?$limit=".concat(this.apiRequestLimit);
1031
+ if (whatTaxonomyPath) query += "&taxonomy2Path=".concat(whatTaxonomyPath);
1029
1032
  this.getMapObjectsApi(query).then(onResponseCallback).catch(onResponseCallback);
1030
1033
  }
1031
1034
  }