jmapcloud-ng-core-types 1.0.46 → 1.0.47

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/index.ts CHANGED
@@ -510,7 +510,8 @@ export interface JMapState {
510
510
  isTerrainActive: boolean
511
511
  isScaleControlVisible: boolean
512
512
  isMapRotationControlVisible: boolean
513
- isInfoControlVisible: boolean
513
+ isTerrainControlVisible: boolean
514
+ isMapInfoControlVisible: boolean
514
515
  isInfoControlExpanded: boolean
515
516
  defaultZoomOptions: JZoomOptions
516
517
  containerWidth: number
@@ -720,6 +721,7 @@ export interface JMapService {
720
721
  isTerrainAvailable(): boolean
721
722
  isTerrainActive(): boolean
722
723
  setTerrainActive(active: boolean): void
724
+ isTerrainControlVisible(): boolean
723
725
  setSelectionStyle(layerId: JId, style: JLayerSetStyleParams): void
724
726
  resetSelectionStyle(layerId: JId): void
725
727
  setScaleControlVisibility(isVisible: boolean, position?: JMAP_POSITIONS): void
@@ -732,6 +734,7 @@ export interface JMapService {
732
734
  setMapRotationControlVisibility(isVisible: boolean): void
733
735
  isMapInfoControlVisible(): boolean
734
736
  setMapInfoControlVisibility(isVisible: boolean): void
737
+ setTerrainControlVisibility(isVisible: boolean): void
735
738
  isMapInfoControlExpanded(): boolean
736
739
  setMapInfoControlExpansion(isExpanded: boolean): void
737
740
  getMaplibreSupportedJMapLayerIds(): JId[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -402,9 +402,9 @@ declare interface JCoreMapOptions {
402
402
  navigationHistoryControlVisible?: boolean
403
403
 
404
404
  /**
405
- * By default the scale control panel it is not visible.
405
+ * By default the scale control panel is visible.
406
406
  *
407
- * But if ***scaleControlVisible*** is true, it will be displayed on the map.
407
+ * But if ***scaleControlVisible*** is false, it will be hidden on the map.
408
408
  *
409
409
  * ```html
410
410
  * <html>
@@ -414,7 +414,7 @@ declare interface JCoreMapOptions {
414
414
  * window.JMAP_OPTIONS = {
415
415
  * ...
416
416
  * map: {
417
- * scaleControlVisible: true,
417
+ * scaleControlVisible: false,
418
418
  * }
419
419
  * }
420
420
  * </script>
@@ -425,6 +425,54 @@ declare interface JCoreMapOptions {
425
425
  */
426
426
  scaleControlVisible?: boolean
427
427
 
428
+ /**
429
+ * By default the Map Info control is visible.
430
+ *
431
+ * But if ***mapInfoControlVisible*** is false, it will be hidden on the map.
432
+ *
433
+ * ```html
434
+ * <html>
435
+ * ...
436
+ * <body>
437
+ * <script type="text/javascript">
438
+ * window.JMAP_OPTIONS = {
439
+ * ...
440
+ * map: {
441
+ * mapInfoControlVisible: false,
442
+ * }
443
+ * }
444
+ * </script>
445
+ * ...
446
+ * </body>
447
+ * </html>
448
+ * ```
449
+ */
450
+ mapInfoControlVisible?: boolean
451
+
452
+ /**
453
+ * By default the Terrain control is visible.
454
+ *
455
+ * But if ***terrainControlVisible*** is false, it will be hidden on the map.
456
+ *
457
+ * ```html
458
+ * <html>
459
+ * ...
460
+ * <body>
461
+ * <script type="text/javascript">
462
+ * window.JMAP_OPTIONS = {
463
+ * ...
464
+ * map: {
465
+ * terrainControlVisible: false,
466
+ * }
467
+ * }
468
+ * </script>
469
+ * ...
470
+ * </body>
471
+ * </html>
472
+ * ```
473
+ */
474
+ terrainControlVisible?: boolean
475
+
428
476
  /**
429
477
  * You can choose the position of the scale control on the map.
430
478
  *