jmapcloud-ng-core-types 2.0.10-qa.10 → 2.0.10-qa.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "2.0.10-qa.10",
3
+ "version": "2.0.10-qa.12",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "types": "ambient.d.ts",
package/public/core.d.ts CHANGED
@@ -5897,18 +5897,17 @@ export namespace JMap {
5897
5897
  /**
5898
5898
  * **JMap.Project.getBase64ImageThumbnail**
5899
5899
  *
5900
- * Returns loaded JMap project base64 image thumbnail.
5900
+ * Returns the active JMap project's base64 image preview.
5901
5901
  *
5902
- * When JMap Cloud NG Core lib is started, it doesn't load projects thumbnails, but you can load it
5903
- * by setting the startup option "loadAllProjectThumbnails" as true.
5904
- *
5905
- * If no thumbnail has been loaded it returns an empty string.
5902
+ * Project preview thumbnails are not available on the JMap Cloud server yet, so this
5903
+ * currently returns an empty string for most projects. It will return the real project
5904
+ * preview once the server provides one.
5906
5905
  *
5907
5906
  * @throws If no project is loaded
5908
5907
  * @example
5909
5908
  * ```ts
5910
- * // returns the project initial extent if exists
5911
- * JMap.Project.getInitialExtent()
5909
+ * // returns the project base64 image thumbnail if loaded
5910
+ * JMap.Project.getBase64ImageThumbnail()
5912
5911
  * ```
5913
5912
  */
5914
5913
  function getBase64ImageThumbnail(): string
@@ -5975,31 +5974,13 @@ export namespace JMap {
5975
5974
  /**
5976
5975
  * **JMap.Project.loadAllProjectThumbnails**
5977
5976
  *
5978
- * Load all project thumbnails in the data store.
5977
+ * Project preview thumbnails are not available on the JMap Cloud server, so this is a no-op
5978
+ * that resolves immediately. Kept for API compatibility with on-premise JMap Server.
5979
5979
  *
5980
- * Default width is 348 and height 190.
5980
+ * The `params` argument is ignored.
5981
5981
  *
5982
- * Image is a base 64 formatted string.
5983
- *
5984
- * @throws if params are not correct
5985
- * @param params width (0 < width < 1280) and height (0 < height < 720) for the thumbnails
5986
- * @example
5987
- * ```ts
5988
- * // Will load all projects thumbnail images
5989
- * JMap.Project
5990
- * .loadAllProjectThumbnails({
5991
- * width: 200,
5992
- * height: 200
5993
- * })
5994
- * .then(() => console.info("All project images has been loaded"))
5995
- * .catch(error => console.error("Cannot load project images"))
5996
- *
5997
- * // Then you can get current project thumnail like that
5998
- * const thumbnail = JMap.Project.getBase64ImageThumbnail()
5999
- *
6000
- * // Or you can get the project id=3 thumbnail like this
6001
- * const otherThumbnail = JMap.Project.getById(3).base64ImageThumbnail
6002
- * ```
5982
+ * @deprecated Project thumbnails are not available on JMap Cloud; this is a no-op.
5983
+ * @param params ignored on JMap Cloud
6003
5984
  */
6004
5985
  function loadAllProjectThumbnails(params?: JProjectLoadThumbnailsParams): Promise<void>
6005
5986
  /**
@@ -123,37 +123,12 @@ export interface JCoreOptions {
123
123
  */
124
124
  onProjectsChange?(params: JProjectAllEventParams): void
125
125
  /**
126
- * By default, project thumbnails are not loaded because they are only needed
127
- * when the integration displays project choices.
126
+ * Project preview thumbnails are not available on the JMap Cloud server, so this option has
127
+ * no effect. The `base64ImageThumbnail` property of a project is always "" (empty string).
128
128
  *
129
- * To load project thumbnails asynchronously, set `loadProjectThumbnails` to true.
129
+ * Kept for API compatibility with on-premise JMap Server.
130
130
  *
131
- * NG will load project thumbnails into the `base64ImageThumbnail` property.
132
- *
133
- * The thumbnail is stored as a base64 string image, that you can use to set an img src attribute directly.
134
- *
135
- * For a project object, if thumbnail is not loaded, default value of its property "base64ImageThumbnail" is "" (empty string).
136
- *
137
- * ```html
138
- * <html>
139
- * ...
140
- * <body>
141
- * <script type="text/javascript">
142
- * window.JMAP_OPTIONS = {
143
- * ...
144
- * loadProjectThumbnails: true
145
- * }
146
- * </script>
147
- * ...
148
- * </body>
149
- * </html>
150
- * ```
151
- *
152
- * Then you will be able to get a project and use its thumbnail :
153
- * ```javascript
154
- * JMap.Project.getBase64ImageThumbnail() // return loaded project image, "" if no image loaded
155
- * JMap.Project.getById(3).base64ImageThumbnail // return project id=3 image, "" if no image loaded
156
- * ```
131
+ * @deprecated Project thumbnails are not available on JMap Cloud; this option has no effect.
157
132
  */
158
133
  loadProjectThumbnails?: boolean
159
134
  /**