Skip to content

Commit

Permalink
feat(WMS): call GetCapabilities during layer preprocessing
Browse files Browse the repository at this point in the history
WMS provider call get capabilities and set or check the following information:
- projection
- extent
- format

BREAKING CHANGE:

WMS layer will now query getCapabilities. If you want to disable this
behaviour (because you already provide all the informations in the json
object), you need to set layer.disableGetCap to true.
  • Loading branch information
autra committed Mar 7, 2018
1 parent b38aa7b commit 6df47f8
Show file tree
Hide file tree
Showing 10 changed files with 2,033 additions and 39 deletions.
2 changes: 2 additions & 0 deletions examples/planar_vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ view.addLayer({
networkOptions: { crossOrigin: 'anonymous' },
type: 'color',
protocol: 'wms',
disableGetCap: true, // their getCap is too slow
version: '1.3.0',
id: 'wms_imagery',
name: 'Ortho2009_vue_ensemble_16cm_CC46',
Expand All @@ -41,6 +42,7 @@ view.addLayer({
url: 'https://download.data.grandlyon.com/wms/grandlyon',
type: 'elevation',
protocol: 'wms',
disableGetCap: true, // their getCap is too slow
networkOptions: { crossOrigin: 'anonymous' },
version: '1.3.0',
id: 'wms_elevation',
Expand Down
1 change: 1 addition & 0 deletions examples/wfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ view.addLayer({
networkOptions: { crossOrigin: 'anonymous' },
type: 'color',
protocol: 'wms',
disableGetCap: true, // their getCap call is too slow
version: '1.3.0',
id: 'wms_imagery',
name: 'Ortho2009_vue_ensemble_16cm_CC46',
Expand Down
Loading

0 comments on commit 6df47f8

Please sign in to comment.