Skip to content

Commit

Permalink
[VER]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Oct 16, 2024
1 parent 3fa8c42 commit 2673508
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -19883,6 +19883,7 @@ ol.control.WMSCapabilities = class olcontrolWMSCapabilities extends ol.control.B
}
}.bind(this))
}
this._optional = optional;
// Get request params
var request = this.getRequestParam(options)
var opt = []
Expand Down Expand Up @@ -20126,6 +20127,7 @@ ol.control.WMSCapabilities = class olcontrolWMSCapabilities extends ol.control.B
'VERSION': parent.version || '1.3.0'
}
}
Object.keys(this._optional).forEach(o => source_opt.params[o] = this._optional[o])
// Resolution to zoom
var view = new ol.View({
projection: this.getMap().getView().getProjection()
Expand Down Expand Up @@ -20229,8 +20231,10 @@ ol.control.WMSCapabilities = class olcontrolWMSCapabilities extends ol.control.B
title: this._elements.formTitle.value
}
}
if (this._elements.formMap.value)
Object.keys(this._optional).forEach(o => options.source.params[o] = this._optional[o])
if (this._elements.formMap.value) {
options.source.params.MAP = this._elements.formMap.value
}
return options
}
/** Fill dialog form
Expand Down Expand Up @@ -20407,6 +20411,7 @@ ol.control.WMTSCapabilities = class olcontrolWMTSCapabilities extends ol.control
* @returns {boolean}
*/
isSupportedSet(tm) {
if (/^PM_.*/.test(tm.TileMatrixSet)) return true;
return this.supportedSets.indexOf(tm.TileMatrixSet) >= 0;
}
/** Return a WMTS options for the given capabilities
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ol-ext",
"version": "4.0.23",
"version": "4.0.24",
"description": "A set of cool extensions for OpenLayers (ol) in node modules structure",
"main": "dist/ol-ext.js",
"style": "dist/ol-ext.css",
Expand Down
1 change: 0 additions & 1 deletion src/control/WMTSCapabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ var ol_control_WMTSCapabilities = class olcontrolWMTSCapabilities extends ol_con
* @returns {boolean}
*/
isSupportedSet(tm) {
console.log(tm)
if (/^PM_.*/.test(tm.TileMatrixSet)) return true;
return this.supportedSets.indexOf(tm.TileMatrixSet) >= 0;
}
Expand Down

0 comments on commit 2673508

Please sign in to comment.