@roomle/web-sdk 7.0.0-alpha.1 → 7.0.0-alpha.2

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 (87) hide show
  1. package/THIRD-PARTY-NOTICES.txt +2 -2
  2. package/lib/{BufferGeometry-CzBRCIk3.mjs → BufferGeometry-YaAhwXNX.mjs} +2 -2
  3. package/lib/{BufferGeometry-CzBRCIk3.mjs.map → BufferGeometry-YaAhwXNX.mjs.map} +1 -1
  4. package/lib/ConfiguratorKernel.wasm +0 -0
  5. package/lib/{Object3D-Bkmul_of.mjs → Object3D-Dx0HN7Wz.mjs} +1 -1
  6. package/lib/{Object3D-Bkmul_of.mjs.map → Object3D-Dx0HN7Wz.mjs.map} +1 -1
  7. package/lib/{PointLightHelper-DOW-3Hvn.mjs → PointLightHelper-B8k3nJVr.mjs} +4 -4
  8. package/lib/{PointLightHelper-DOW-3Hvn.mjs.map → PointLightHelper-B8k3nJVr.mjs.map} +1 -1
  9. package/lib/RoomleCore.wasm +0 -0
  10. package/lib/RoomleToolsCore.wasm +0 -0
  11. package/lib/{SpotLightHelper-sE9yZPeq.mjs → SpotLightHelper-jqI3QyNE.mjs} +3 -3
  12. package/lib/{SpotLightHelper-sE9yZPeq.mjs.map → SpotLightHelper-jqI3QyNE.mjs.map} +1 -1
  13. package/lib/{USDZExporter-zhEk6F4K.mjs → USDZExporter-BS1qa3HO.mjs} +2 -2
  14. package/lib/{USDZExporter-zhEk6F4K.mjs.map → USDZExporter-BS1qa3HO.mjs.map} +1 -1
  15. package/lib/{Vector4-CmUR_DSp.mjs → Vector4-BmWb-htx.mjs} +2 -2
  16. package/lib/{Vector4-CmUR_DSp.mjs.map → Vector4-BmWb-htx.mjs.map} +1 -1
  17. package/lib/{api-1YHSF8TD.mjs → api-DOHbOr7K.mjs} +2 -2
  18. package/lib/{api-1YHSF8TD.mjs.map → api-DOHbOr7K.mjs.map} +1 -1
  19. package/lib/asset-loader.worker-Bdvb-pt7.mjs.map +1 -1
  20. package/lib/budgeteer.sw-ByZxiRBr.mjs.map +1 -1
  21. package/lib/{common-utils-DZiN8bjs.mjs → common-utils-zPOllvAT.mjs} +3 -2
  22. package/lib/common-utils-zPOllvAT.mjs.map +1 -0
  23. package/lib/{component-raycast-helper-BSFG09WY.mjs → component-raycast-helper-CMFpSJXC.mjs} +3 -3
  24. package/lib/{component-raycast-helper-BSFG09WY.mjs.map → component-raycast-helper-CMFpSJXC.mjs.map} +1 -1
  25. package/lib/{configuration-operations-DI677LMN.mjs → configuration-operations-DJD9A1xP.mjs} +38 -38
  26. package/lib/{configuration-operations-DI677LMN.mjs.map → configuration-operations-DJD9A1xP.mjs.map} +1 -1
  27. package/lib/configurator-D5Ehj649.mjs +3 -0
  28. package/lib/configurator-DCynrn7X.mjs +46 -0
  29. package/lib/{configurator-CgFJ2voV.mjs.map → configurator-DCynrn7X.mjs.map} +1 -1
  30. package/lib/{configurator-capabilities-CLqul800.mjs → configurator-capabilities-BfSMwdWh.mjs} +12 -12
  31. package/lib/{configurator-capabilities-CLqul800.mjs.map → configurator-capabilities-BfSMwdWh.mjs.map} +1 -1
  32. package/lib/configurator-capabilities-DAJuxSTw.mjs +3 -0
  33. package/lib/{fflate.module-CpWr9KGw.mjs → fflate.module-BfCRKtjc.mjs} +1 -1
  34. package/lib/{fflate.module-CpWr9KGw.mjs.map → fflate.module-BfCRKtjc.mjs.map} +1 -1
  35. package/lib/{glb-viewer-B2WH46su.mjs → glb-viewer-BhiCqjpE.mjs} +24 -24
  36. package/lib/{glb-viewer-B2WH46su.mjs.map → glb-viewer-BhiCqjpE.mjs.map} +1 -1
  37. package/lib/glb-viewer-BrggGLte.mjs +3 -0
  38. package/lib/{hi-mcp-server-tVF1bn28.mjs → hi-mcp-server-rSu1HL4m.mjs} +2 -2
  39. package/lib/{hi-mcp-server-tVF1bn28.mjs.map → hi-mcp-server-rSu1HL4m.mjs.map} +1 -1
  40. package/lib/{highlight-coordinator-CiBzWsMf.mjs → highlight-coordinator-DbqhP7Hy.mjs} +3 -3
  41. package/lib/{highlight-coordinator-CiBzWsMf.mjs.map → highlight-coordinator-DbqhP7Hy.mjs.map} +1 -1
  42. package/lib/{homag-intelligence-CdYda0Mb.mjs → homag-intelligence-DuFtYgdG.mjs} +3 -3
  43. package/lib/{homag-intelligence-CdYda0Mb.mjs.map → homag-intelligence-DuFtYgdG.mjs.map} +1 -1
  44. package/lib/{material-viewer-BrARE0p0.mjs → material-viewer-uEDqIbCx.mjs} +25 -21
  45. package/lib/material-viewer-uEDqIbCx.mjs.map +1 -0
  46. package/lib/{packages-DhBz4dX3.mjs → packages-DOCmEOxI.mjs} +6 -6
  47. package/lib/{packages-DhBz4dX3.mjs.map → packages-DOCmEOxI.mjs.map} +1 -1
  48. package/lib/planner-B9GbQLSB.mjs +3 -0
  49. package/lib/{planner-SRvOM5ZQ.mjs → planner-D8UVNfkJ.mjs} +16 -16
  50. package/lib/{planner-SRvOM5ZQ.mjs.map → planner-D8UVNfkJ.mjs.map} +1 -1
  51. package/lib/roomle-headless.d.ts +14 -18
  52. package/lib/roomle-headless.js +35 -32
  53. package/lib/roomle-headless.js.map +1 -1
  54. package/lib/{roomle-sdk-Sdrd7K0F.mjs → roomle-sdk-C0YpFZdj.mjs} +24740 -24770
  55. package/lib/roomle-sdk-C0YpFZdj.mjs.map +1 -0
  56. package/lib/roomle-sdk.d.ts +14 -18
  57. package/lib/roomle-sdk.js +9 -9
  58. package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs → roomle-webgpu-renderer-DZ9LaZfc.mjs} +3 -3
  59. package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs.map → roomle-webgpu-renderer-DZ9LaZfc.mjs.map} +1 -1
  60. package/lib/{scene-renderer-CsbP23gu.mjs → scene-renderer-BmtXHWEw.mjs} +3 -3
  61. package/lib/{scene-renderer-CsbP23gu.mjs.map → scene-renderer-BmtXHWEw.mjs.map} +1 -1
  62. package/lib/{script-loader-D9Tr-8LN.mjs → script-loader-jRBMP-ca.mjs} +2 -2
  63. package/lib/{script-loader-D9Tr-8LN.mjs.map → script-loader-jRBMP-ca.mjs.map} +1 -1
  64. package/lib/{shading-settings-mnQRn2LO.mjs → shading-settings-CpXZmOnx.mjs} +2 -2
  65. package/lib/{shading-settings-mnQRn2LO.mjs.map → shading-settings-CpXZmOnx.mjs.map} +1 -1
  66. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  67. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  68. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  69. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  70. package/lib/{stats-helper-Q25NjvCQ.mjs → stats-helper-jzrLyoHV.mjs} +2 -2
  71. package/lib/{stats-helper-Q25NjvCQ.mjs.map → stats-helper-jzrLyoHV.mjs.map} +1 -1
  72. package/lib/{threejs-utils-C3CWKZXa.mjs → threejs-utils-D1gtvxiA.mjs} +7 -15
  73. package/lib/{threejs-utils-C3CWKZXa.mjs.map → threejs-utils-D1gtvxiA.mjs.map} +1 -1
  74. package/lib/{tools-core-BBYYzygJ.mjs → tools-core-k93qrqfB.mjs} +6 -6
  75. package/lib/{tools-core-BBYYzygJ.mjs.map → tools-core-k93qrqfB.mjs.map} +1 -1
  76. package/lib/{util-BdWrqTeC.mjs → util-LmkV26fg.mjs} +1 -1
  77. package/lib/{util-BdWrqTeC.mjs.map → util-LmkV26fg.mjs.map} +1 -1
  78. package/package.json +2 -2
  79. package/sbom.cdx.json +5 -5
  80. package/lib/common-utils-DZiN8bjs.mjs.map +0 -1
  81. package/lib/configurator-AwPowYQR.mjs +0 -3
  82. package/lib/configurator-CgFJ2voV.mjs +0 -46
  83. package/lib/configurator-capabilities-Dg8oD49T.mjs +0 -3
  84. package/lib/glb-viewer-sxVA5IgD.mjs +0 -3
  85. package/lib/material-viewer-BrARE0p0.mjs.map +0 -1
  86. package/lib/planner-D6uV0kCw.mjs +0 -3
  87. package/lib/roomle-sdk-Sdrd7K0F.mjs.map +0 -1
@@ -1962,7 +1962,6 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
1962
1962
  private _updateComponentDependencies;
1963
1963
  private _updatePlanObjectParameters;
1964
1964
  private _updateCommonPlanObjectParameters;
1965
- private _enableRootComponentParametersAsGlobal;
1966
1965
  private _updatePlanObjectChildren;
1967
1966
  updatePlanObjectDependencies(planObjectId: number): void;
1968
1967
  /** Sends the parameters and possible children of the selected components of the plan object to the UI. */
@@ -2659,14 +2658,6 @@ export declare class ConfiguratorUiCallbacks extends UiCallback implements Confi
2659
2658
  ids: RapiId[];
2660
2659
  message: string;
2661
2660
  }) => void;
2662
- /**
2663
- * When a sync has been started
2664
- */
2665
- onSyncStarted: () => void;
2666
- /**
2667
- * When a previously requested sync has been completed
2668
- */
2669
- onSyncDone: () => void;
2670
2661
  /**
2671
2662
  * When UI should show floor material selection
2672
2663
  */
@@ -3694,7 +3685,6 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
3694
3685
  private _isStarting;
3695
3686
  private _alwaysUseCache;
3696
3687
  constructor(creator: string);
3697
- start(catalogId: RapiId): Promise<void>;
3698
3688
  syncCatalog(catalogId: RapiId): Promise<void>;
3699
3689
  syncFloorTag(tagId: RapiId): Promise<any>;
3700
3690
  syncTypeChangeTag(tagId: RapiId): Promise<any>;
@@ -3714,6 +3704,7 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
3714
3704
  private _assetUrlToBase64;
3715
3705
  private _softReject;
3716
3706
  requestAsset(url: string, urlAsFallback?: boolean): AssetUrl | null;
3707
+ requestCachedAsset(url: string): AssetUrl | null;
3717
3708
  setAlwaysUseCache(alwaysUseCache: boolean): void;
3718
3709
  preFillAssetCache(key: string, url: string): void;
3719
3710
  }
@@ -7775,6 +7766,7 @@ export declare class MeshGenerator implements Context {
7775
7766
  private _loadBenchmarkTextures;
7776
7767
  protected _loadTextures(rapiMaterial: RapiMaterial, material: MeshPhysicalMaterial, width?: number, height?: number): Promise<void>;
7777
7768
  private _addTexturesToMaterial;
7769
+ private _addTextureAsset;
7778
7770
  protected _loadMaterial(materialId: string, width?: number, height?: number): Promise<Material>;
7779
7771
  protected _assignMaterial(mesh: Mesh, materialId: string, materialAttributes?: Record<string, string | null>): Promise<void>;
7780
7772
  get maxAnisotropy(): number;
@@ -10356,6 +10348,8 @@ export declare const enum RAPI_PATHS {
10356
10348
  PLAN_SNAPSHOTS = "planSnapshots"
10357
10349
  }
10358
10350
 
10351
+ export declare type RAPI_TEXTURE_ASSET_TYPE = 'image1k' | 'src';
10352
+
10359
10353
  export declare const enum RAPI_TEXTURE_TYPE {
10360
10354
  RGB = "RGB",// diffuse color texture
10361
10355
  RGBA = "RGBA",// Diffuse color texture and opacity map
@@ -10392,7 +10386,6 @@ export declare class RapiAccess implements Context {
10392
10386
  getPreloadForConfiguration(id: RapiId): Promise<void>;
10393
10387
  private _getPreload;
10394
10388
  changeUseOfHDGeometry(): void;
10395
- getHSCPackage(id: RapiId): Promise<RapiPackage | void>;
10396
10389
  getComponent(id: RapiId): Promise<RapiComponent>;
10397
10390
  getConfiguration(id: RapiId): Promise<RapiConfiguration>;
10398
10391
  getConfigurations(ids: RapiId[]): Promise<RapiConfiguration[]>;
@@ -10645,6 +10638,12 @@ export declare const enum RapiFavoriteType {
10645
10638
 
10646
10639
  export declare type RapiId = string;
10647
10640
 
10641
+ export declare interface RapiImageAsset extends RapiJson {
10642
+ format: string;
10643
+ url: AssetUrl;
10644
+ generated: string;
10645
+ }
10646
+
10648
10647
  /**
10649
10648
  * Error thrown when _getById is called with an invalid or empty id.
10650
10649
  * This is a programmer error and should not happen in production.
@@ -10779,12 +10778,6 @@ export declare class RapiOfflineError extends Error {
10779
10778
  constructor(rapiPath: RAPI_PATHS, id: RapiId);
10780
10779
  }
10781
10780
 
10782
- export declare interface RapiPackage extends RapiJson {
10783
- components: RapiComponent[];
10784
- materials: RapiMaterial[];
10785
- textures: RapiTexture[];
10786
- }
10787
-
10788
10781
  export declare interface RapiPlan extends RapiJson {
10789
10782
  name: string;
10790
10783
  description: string;
@@ -10961,9 +10954,12 @@ export declare interface RapiTexture extends RapiJson {
10961
10954
  mmWidth: number;
10962
10955
  tileable: boolean;
10963
10956
  material: RapiId;
10964
- [key: string]: string | number | boolean | AssetUrl | RapiId | LinksCollection | null | undefined;
10957
+ assets?: RapiTextureAssetMap;
10958
+ [key: string]: string | number | boolean | AssetUrl | RapiId | LinksCollection | RapiTextureAssetMap | null | undefined;
10965
10959
  }
10966
10960
 
10961
+ export declare type RapiTextureAssetMap = Partial<Record<RAPI_TEXTURE_ASSET_TYPE, RapiImageAsset>>;
10962
+
10967
10963
  export declare interface RapiUser extends RapiJson {
10968
10964
  username: string;
10969
10965
  salutationCode: number;
package/lib/roomle-sdk.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
- import { a as e, i as t, n, r, t as i } from "./packages-DhBz4dX3.mjs";
2
+ import { a as e, i as t, n, r, t as i } from "./packages-DOCmEOxI.mjs";
3
3
  import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
4
- import { Ot as s, Tt as c, wt as l } from "./threejs-utils-C3CWKZXa.mjs";
5
- import { D as u, g as d } from "./common-utils-DZiN8bjs.mjs";
6
- import { $ as f, F as p, H as m, I as h, L as g, M as _, N as v, O as y, P as b, Q as x, R as S, U as C, W as w, X as T, Y as E, Z as D, _t as O, b as k, bt as A, gt as j, ht as M, mt as N, pt as P, t as F, u as I, x as L, y as R } from "./roomle-sdk-Sdrd7K0F.mjs";
7
- import { t as z } from "./configurator-CgFJ2voV.mjs";
8
- import { t as B } from "./planner-SRvOM5ZQ.mjs";
9
- import { n as V, t as H } from "./glb-viewer-B2WH46su.mjs";
10
- import { t as U } from "./api-1YHSF8TD.mjs";
11
- export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, c as CORE_FLOOR_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, z as Configurator, p as FloorPlanElementViewModel, H as GlbViewer, w as HI_CONTEXT_ACTION, m as HI_GROUP_OPERATION, C as HI_TOOL_COMMAND, P as HttpResponseError, b as MeasurementLinePlanElementViewModel, R as PLAN_ELEMENT_CHANGE_TYPES, S as PlanElementViewModel, g as PlanObjectViewModel, B as Planner, N as RapiAccess, M as RapiInvalidIdError, j as RapiOfflineError, U as RoomDesignerApi, y as RoomleConfigurator, V as RoomleGLBViewer, A as RoomleLightSource, I as RoomlePlanner, F as RoomleSdk, h as StaticPlanObjectViewModel, _ as WallPlanElementViewModel, E as createExtObj, f as createExtObjId, d as download, O as getCatalogIdFromConfigurationHash, v as isDeletedInvisibleWall, T as isExtObjId, D as isExternalObject, k as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, L as isSafari, u as md5Hash, x as removeExtObjIdPrefix };
4
+ import { Ot as s, Tt as c, wt as l } from "./threejs-utils-D1gtvxiA.mjs";
5
+ import { D as u, g as d } from "./common-utils-zPOllvAT.mjs";
6
+ import { A as f, G as p, J as m, K as h, O as g, V as _, X as v, Y as y, Z as b, _ as x, _t as S, b as C, bt as w, gt as T, ht as E, k as D, m as O, mt as k, o as A, p as j, pt as M, q as N, s as P, t as F, v as I, y as L, z as R } from "./roomle-sdk-C0YpFZdj.mjs";
7
+ import { t as z } from "./configurator-DCynrn7X.mjs";
8
+ import { t as B } from "./planner-D8UVNfkJ.mjs";
9
+ import { n as V, t as H } from "./glb-viewer-BhiCqjpE.mjs";
10
+ import { t as U } from "./api-DOHbOr7K.mjs";
11
+ export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, c as CORE_FLOOR_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, z as Configurator, m as FloorPlanElementViewModel, H as GlbViewer, O as HI_CONTEXT_ACTION, A as HI_GROUP_OPERATION, P as HI_TOOL_COMMAND, M as HttpResponseError, N as MeasurementLinePlanElementViewModel, g as PLAN_ELEMENT_CHANGE_TYPES, b as PlanElementViewModel, v as PlanObjectViewModel, B as Planner, k as RapiAccess, E as RapiInvalidIdError, T as RapiOfflineError, U as RoomDesignerApi, R as RoomleConfigurator, V as RoomleGLBViewer, w as RoomleLightSource, j as RoomlePlanner, F as RoomleSdk, y as StaticPlanObjectViewModel, p as WallPlanElementViewModel, x as createExtObj, _ as createExtObjId, d as download, S as getCatalogIdFromConfigurationHash, h as isDeletedInvisibleWall, I as isExtObjId, L as isExternalObject, D as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, f as isSafari, u as md5Hash, C as removeExtObjIdPrefix };
@@ -1,9 +1,9 @@
1
1
 
2
2
  import { Ar as e, Ci as t, Cr as n, Ei as r, En as i, Ft as a, Gn as o, Hi as s, J as c, Ji as l, Kn as u, Mr as d, Nr as f, On as p, Qt as m, S as h, Si as g, Ti as _, V as v, Vr as y, Xi as b, Xt as x, Y as S, Yr as C, _i as w, bi as T, ct as ee, di as te, f as ne, g as re, gi as E, hr as ie, ht as D, in as ae, kr as oe, ln as se, mr as ce, q as le, qt as ue, rt as de, sn as fe, t as pe, vi as me, w as he, wi as O, wr as ge, wt as _e, xi as ve, yi as ye } from "./three.core-BpdpLVZy.mjs";
3
- import { h as be, t as xe } from "./shading-settings-mnQRn2LO.mjs";
3
+ import { h as be, t as xe } from "./shading-settings-CpXZmOnx.mjs";
4
4
  import { n as Se, r as Ce, t as we } from "./decorate-CooD7C6J.mjs";
5
5
  import { t as Te } from "./layer-UUQwIXS6.mjs";
6
- import { _ as Ee } from "./common-utils-DZiN8bjs.mjs";
6
+ import { _ as Ee } from "./common-utils-zPOllvAT.mjs";
7
7
  import { a as De, n as Oe, o as ke, r as Ae, t as je } from "./roomle-renderer-hDktY-wA.mjs";
8
8
  import { $f as Me, Af as Ne, Am as k, At as A, Bm as Pe, Bp as Fe, Bu as Ie, Cm as Le, Dt as Re, Ed as ze, Ei as Be, Eo as Ve, Fa as He, Ff as Ue, Fo as We, G as Ge, Gf as Ke, Hm as qe, Hs as Je, Ht as Ye, Id as Xe, Ka as Ze, Ln as Qe, Md as $e, Mp as et, Nm as tt, Of as nt, Pn as rt, Pt as it, Pu as at, Qf as ot, Ra as st, Rc as j, Rt as ct, Td as lt, Tm as ut, Ts as dt, Uc as M, Uf as ft, Uo as pt, Us as mt, Vp as ht, Vs as gt, Wc as _t, Wr as vt, Ws as yt, Wt as bt, Xi as xt, Xt as St, Yu as Ct, Z as N, Zd as wt, _a as Tt, _d as Et, _f as P, _u as Dt, ad as Ot, af as kt, al as At, as as F, ba as jt, bd as Mt, br as Nt, bs as Pt, cf as Ft, es as I, gf as It, gm as Lt, gr as L, hd as Rt, ho as zt, ia as Bt, id as Vt, im as R, io as Ht, it as z, jf as Ut, jm as B, jp as Wt, km as V, ln as Gt, ma as Kt, mo as qt, nt as Jt, ol as Yt, om as H, pa as Xt, pf as Zt, po as Qt, qa as U, qf as W, qi as $t, ro as en, sd as tn, sm as nn, ss as rn, st as an, su as on, ua as sn, uo as G, v as cn, vr as ln, vs as un, vt as dn, wo as fn, xi as pn, xs as K, xu as mn, ya as hn, yn as q, zm as gn, zu as _n } from "./three.tsl-CqdA7sWg.mjs";
9
9
  import { $ as vn, U as yn, X as bn, a as xn, b as Sn, nt as Cn, q as wn } from "./three.webgpu-Dl_Is_pA.mjs";
@@ -4310,4 +4310,4 @@ we([Ce, Se("design:type", Object)], la.prototype, "_domHelper", void 0), we([Ce,
4310
4310
  //#endregion
4311
4311
  export { la as RoomleWebGPURenderer };
4312
4312
 
4313
- //# sourceMappingURL=roomle-webgpu-renderer-CWoN5YzU.mjs.map
4313
+ //# sourceMappingURL=roomle-webgpu-renderer-DZ9LaZfc.mjs.map