@@ -32,7 +32,7 @@ const optionalProperties = {
32
32
'use_native_zoom_levels' : { type : 'boolean' , nullable : true , default : null } ,
33
33
'hide_numeric_scale_value' : { type : 'boolean' , default : false } ,
34
34
'hideGroupCheckbox' : { type : 'boolean' , default : false } ,
35
- 'wms_single_request_for_all_layers' : { type :'string ' , default : false }
35
+ 'wms_single_request_for_all_layers' : { type :'boolean ' , default : false }
36
36
} ;
37
37
38
38
/**
@@ -44,26 +44,26 @@ export class OptionsConfig extends BaseObjectConfig {
44
44
45
45
/**
46
46
* Create an options config instance based on a config object
47
- * @param {object } cfg - the lizmap config object for options
48
- * @param {number[] } cfg.bbox - the project and web services max extent
49
- * @param {number[] } cfg.initialExtent - the map extent at the loading page
50
- * @param {number[] } cfg.mapScales - the map scales
51
- * @param {number } cfg.minScale - the map's min scale
52
- * @param {number } cfg.maxScale - the map's max scale
53
- * @param {object } cfg.projection - the web map projection
54
- * @param {number } cfg.pointTolerance - the point tolerance for QGIS Server WMS GetFeatureInfo request
55
- * @param {number } cfg.lineTolerance - the line tolerance for QGIS Server WMS GetFeatureInfo request
56
- * @param {number } cfg.polygonTolerance - the polygon tolerance for QGIS Server WMS GetFeatureInfo request
57
- * @param {string } cfg.popupLocation - the popup location in the User interface: dock, bottom-dock, right-dock, mini-dock, map
58
- * @param {string } cfg.datavizLocation - the popup location in the User interface: dock, bottom-dock, right-dock
59
- * @param {boolean } [cfg.hideProject] - is the project hidden in user interface ? Only services are available.
60
- * @param {number } [cfg.wmsMaxHeight] - the image max height for WMS GetMap request
61
- * @param {number } [cfg.wmsMaxWidth] - the image max width for WMS GetMap request
62
- * @param {boolean } [cfg.fixed_scale_overview_map] - does the Overview map have fixed scale ?
63
- * @param {boolean } [cfg.use_native_zoom_levels] - does the map use native zoom levels ?
64
- * @param {boolean } [cfg.hide_numeric_scale_value] - does the scale line hide numeric scale value ?
65
- * @param {boolean } [cfg.hideGroupCheckbox] - are groups checkbox hidden ?
66
- * @param {string } [cfg.wms_single_request_for_all_layers] - are layers loaded as single WMS image ?
47
+ * @param {object } cfg - the lizmap config object for options
48
+ * @param {number[] } cfg.bbox - the project and web services max extent
49
+ * @param {number[] } cfg.initialExtent - the map extent at the loading page
50
+ * @param {number[] } cfg.mapScales - the map scales
51
+ * @param {number } cfg.minScale - the map's min scale
52
+ * @param {number } cfg.maxScale - the map's max scale
53
+ * @param {object } cfg.projection - the web map projection
54
+ * @param {number } cfg.pointTolerance - the point tolerance for QGIS Server WMS GetFeatureInfo request
55
+ * @param {number } cfg.lineTolerance - the line tolerance for QGIS Server WMS GetFeatureInfo request
56
+ * @param {number } cfg.polygonTolerance - the polygon tolerance for QGIS Server WMS GetFeatureInfo request
57
+ * @param {string } cfg.popupLocation - the popup location in the User interface: dock, bottom-dock, right-dock, mini-dock, map
58
+ * @param {string } cfg.datavizLocation - the popup location in the User interface: dock, bottom-dock, right-dock
59
+ * @param {boolean } [cfg.hideProject] - is the project hidden in user interface ? Only services are available.
60
+ * @param {number } [cfg.wmsMaxHeight] - the image max height for WMS GetMap request
61
+ * @param {number } [cfg.wmsMaxWidth] - the image max width for WMS GetMap request
62
+ * @param {boolean } [cfg.fixed_scale_overview_map] - does the Overview map have fixed scale ?
63
+ * @param {boolean } [cfg.use_native_zoom_levels] - does the map use native zoom levels ?
64
+ * @param {boolean } [cfg.hide_numeric_scale_value] - does the scale line hide numeric scale value ?
65
+ * @param {boolean } [cfg.hideGroupCheckbox] - are groups checkbox hidden ?
66
+ * @param {boolean } [cfg.wms_single_request_for_all_layers] - are layers loaded as single WMS image ?
67
67
*/
68
68
constructor ( cfg ) {
69
69
if ( ! cfg || typeof cfg !== "object" ) {
@@ -239,7 +239,7 @@ export class OptionsConfig extends BaseObjectConfig {
239
239
240
240
/**
241
241
* The layers are loaded as a single WMS image
242
- * @type {string }
242
+ * @type {boolean }
243
243
*/
244
244
get wms_single_request_for_all_layers ( ) {
245
245
return this . _wms_single_request_for_all_layers ;
0 commit comments