Skip to content

Commit

Permalink
Merge pull request #6617 from ahocevar/cache-geoserver
Browse files Browse the repository at this point in the history
Use GeoServer/GWC caching when possible
  • Loading branch information
ahocevar committed Mar 22, 2017
2 parents f4bf92a + 2dcecb9 commit 615f133
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/epsg-4326.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ var layers = [
source: new ol.source.TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR'
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
'TILED': true
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion examples/getfeatureinfo-tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ goog.require('ol.source.TileWMS');

var wmsSource = new ol.source.TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {'LAYERS': 'ne:ne'},
params: {'LAYERS': 'ne:ne', 'TILED': true},
serverType: 'geoserver',
crossOrigin: 'anonymous'
});
Expand Down
5 changes: 3 additions & 2 deletions examples/reprojection.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ layers['wms4326'] = new ol.layer.Tile({
url: 'https://ahocevar.com/geoserver/wms',
crossOrigin: '',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR'
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
'TILED': true
},
projection: 'EPSG:4326'
})
Expand Down Expand Up @@ -133,7 +134,7 @@ layers['states'] = new ol.layer.Tile({
source: new ol.source.TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
crossOrigin: '',
params: {'LAYERS': 'topp:states', 'TILED': true},
params: {'LAYERS': 'topp:states'},
serverType: 'geoserver',
tileGrid: new ol.tilegrid.TileGrid({
extent: [-13884991, 2870341, -7455066, 6338219],
Expand Down
6 changes: 4 additions & 2 deletions examples/tissot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ var map4326 = new ol.Map({
source: new ol.source.TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR'
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
'TILED': true
}
})
}),
Expand All @@ -42,7 +43,8 @@ var map3857 = new ol.Map({
source: new ol.source.TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR'
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
'TILED': true
}
})
}),
Expand Down

0 comments on commit 615f133

Please sign in to comment.