OL3 gwc background layer does not align to gridset, works in OL2 The 2019 Stack Overflow...
A poker game description that does not feel gimmicky
Is three citations per paragraph excessive for undergraduate research paper?
For what reasons would an animal species NOT cross a *horizontal* land bridge?
Geography at the pixel level
What is the most effective way of iterating a std::vector and why?
Are spiders unable to hurt humans, especially very small spiders?
Is there a symbol for a right arrow with a square in the middle?
Pokemon Turn Based battle (Python)
Where to refill my bottle in India?
Am I thawing this London Broil safely?
Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?
Origin of "cooter" meaning "vagina"
How technical should a Scrum Master be to effectively remove impediments?
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
Deal with toxic manager when you can't quit
What is the closest word meaning "respect for time / mindful"
Have you ever entered Singapore using a different passport or name?
How are circuits which use complex ICs normally simulated?
Does the shape of a die affect the probability of a number being rolled?
Resizing object distorts it (Illustrator CC 2018)
Delete all lines which don't have n characters before delimiter
If a Druid sees an animal’s corpse, can they wild shape into that animal?
Can a flute soloist sit?
Why do UK politicians seemingly ignore opinion polls on Brexit?
OL3 gwc background layer does not align to gridset, works in OL2
The 2019 Stack Overflow Developer Survey Results Are InEPSG:4038 Gridset does not work with caching on GeoServer 2.2Optimize OpenLayers2/ Geoserver 2.5 with GeoWebCache - reprojection necessary?Zoom to the extent of the WMS layer in GeoServer by OpenLayers 3?OpenLayers3 with google map local tiles serverGeoWebCache won't seed when using a user defined gridset using geoserver 2.8.2GeoWebCache Miss: request does not align to grid(s) 'EPSG27700'Tiles shown at wrong location OpenLayers 3GeoServer caching request not aligned to grid(s)OpenLayers 4 - get resolutionsGeowebcache pre-seed creates white and black tiles
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm using GeoServer 2.10.1 and its built-in GeoWebCache and am trying to use a cached background layer in a custom gridset with a local epsg to work in a simple Ol3 app:
proj4.defs("EPSG:3010","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +axis=neu +no_defs");
var projection = new ol.proj.Projection({
code: 'EPSG:3010',
extent: [-2138120,3880750,2396422,8973750] //Matches GWC gridset
});
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {'LAYERS': 'basemap', 'tiled': true, 'version':'1.1.1'}
});
var wmsLayer = new ol.layer.Tile({
source: wmsSource
});
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection
});
var map = new ol.Map({
layers: [wmsLayer],
target: 'map',
view: view
});
This produces a map with a fuzzy, "zoomed out" look at every zoom level (but the tiles returned actually look good and view.getResolution reports the correct resolution). GWC says "does not align to gridset" for every getMap.
If I let OL calculate the zoom levels the base map looks fine.
If I use
url: 'http...geoserver/gwc/service/wms'
instead I get http 400 bad request on the getMap requests.
The base layer is used as a background map in an ol2 app defined in the same way, i.e extent and a series of resolutions, and it works well.
What is required in OL3 to make use of a cached background layer?
geoserver openlayers geowebcache
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm using GeoServer 2.10.1 and its built-in GeoWebCache and am trying to use a cached background layer in a custom gridset with a local epsg to work in a simple Ol3 app:
proj4.defs("EPSG:3010","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +axis=neu +no_defs");
var projection = new ol.proj.Projection({
code: 'EPSG:3010',
extent: [-2138120,3880750,2396422,8973750] //Matches GWC gridset
});
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {'LAYERS': 'basemap', 'tiled': true, 'version':'1.1.1'}
});
var wmsLayer = new ol.layer.Tile({
source: wmsSource
});
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection
});
var map = new ol.Map({
layers: [wmsLayer],
target: 'map',
view: view
});
This produces a map with a fuzzy, "zoomed out" look at every zoom level (but the tiles returned actually look good and view.getResolution reports the correct resolution). GWC says "does not align to gridset" for every getMap.
If I let OL calculate the zoom levels the base map looks fine.
If I use
url: 'http...geoserver/gwc/service/wms'
instead I get http 400 bad request on the getMap requests.
The base layer is used as a background map in an ol2 app defined in the same way, i.e extent and a series of resolutions, and it works well.
What is required in OL3 to make use of a cached background layer?
geoserver openlayers geowebcache
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You need to useol.layer.Tile
if you want to get the tiles out of the GeoWebCache --> openlayers.org/en/latest/apidoc/ol.layer.Tile.html. And you also need to create a cached layer within geoserver
– pavlos
Sep 20 '17 at 14:28
Hello, thanks for your reply. The layer is an ol.layer.Tile as per the code above : ) It's also cached for this gridset in GeoServer.
– David I
Sep 20 '17 at 15:22
Have you made a custom gridset with geowebcache? You need to do ut within geowebcache.xml
– pavlos
Sep 20 '17 at 17:35
add a comment |
I'm using GeoServer 2.10.1 and its built-in GeoWebCache and am trying to use a cached background layer in a custom gridset with a local epsg to work in a simple Ol3 app:
proj4.defs("EPSG:3010","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +axis=neu +no_defs");
var projection = new ol.proj.Projection({
code: 'EPSG:3010',
extent: [-2138120,3880750,2396422,8973750] //Matches GWC gridset
});
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {'LAYERS': 'basemap', 'tiled': true, 'version':'1.1.1'}
});
var wmsLayer = new ol.layer.Tile({
source: wmsSource
});
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection
});
var map = new ol.Map({
layers: [wmsLayer],
target: 'map',
view: view
});
This produces a map with a fuzzy, "zoomed out" look at every zoom level (but the tiles returned actually look good and view.getResolution reports the correct resolution). GWC says "does not align to gridset" for every getMap.
If I let OL calculate the zoom levels the base map looks fine.
If I use
url: 'http...geoserver/gwc/service/wms'
instead I get http 400 bad request on the getMap requests.
The base layer is used as a background map in an ol2 app defined in the same way, i.e extent and a series of resolutions, and it works well.
What is required in OL3 to make use of a cached background layer?
geoserver openlayers geowebcache
I'm using GeoServer 2.10.1 and its built-in GeoWebCache and am trying to use a cached background layer in a custom gridset with a local epsg to work in a simple Ol3 app:
proj4.defs("EPSG:3010","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +axis=neu +no_defs");
var projection = new ol.proj.Projection({
code: 'EPSG:3010',
extent: [-2138120,3880750,2396422,8973750] //Matches GWC gridset
});
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {'LAYERS': 'basemap', 'tiled': true, 'version':'1.1.1'}
});
var wmsLayer = new ol.layer.Tile({
source: wmsSource
});
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection
});
var map = new ol.Map({
layers: [wmsLayer],
target: 'map',
view: view
});
This produces a map with a fuzzy, "zoomed out" look at every zoom level (but the tiles returned actually look good and view.getResolution reports the correct resolution). GWC says "does not align to gridset" for every getMap.
If I let OL calculate the zoom levels the base map looks fine.
If I use
url: 'http...geoserver/gwc/service/wms'
instead I get http 400 bad request on the getMap requests.
The base layer is used as a background map in an ol2 app defined in the same way, i.e extent and a series of resolutions, and it works well.
What is required in OL3 to make use of a cached background layer?
geoserver openlayers geowebcache
geoserver openlayers geowebcache
edited Sep 20 '17 at 12:52
PolyGeo♦
53.9k1781246
53.9k1781246
asked Sep 20 '17 at 11:14
David IDavid I
437
437
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You need to useol.layer.Tile
if you want to get the tiles out of the GeoWebCache --> openlayers.org/en/latest/apidoc/ol.layer.Tile.html. And you also need to create a cached layer within geoserver
– pavlos
Sep 20 '17 at 14:28
Hello, thanks for your reply. The layer is an ol.layer.Tile as per the code above : ) It's also cached for this gridset in GeoServer.
– David I
Sep 20 '17 at 15:22
Have you made a custom gridset with geowebcache? You need to do ut within geowebcache.xml
– pavlos
Sep 20 '17 at 17:35
add a comment |
You need to useol.layer.Tile
if you want to get the tiles out of the GeoWebCache --> openlayers.org/en/latest/apidoc/ol.layer.Tile.html. And you also need to create a cached layer within geoserver
– pavlos
Sep 20 '17 at 14:28
Hello, thanks for your reply. The layer is an ol.layer.Tile as per the code above : ) It's also cached for this gridset in GeoServer.
– David I
Sep 20 '17 at 15:22
Have you made a custom gridset with geowebcache? You need to do ut within geowebcache.xml
– pavlos
Sep 20 '17 at 17:35
You need to use
ol.layer.Tile
if you want to get the tiles out of the GeoWebCache --> openlayers.org/en/latest/apidoc/ol.layer.Tile.html. And you also need to create a cached layer within geoserver– pavlos
Sep 20 '17 at 14:28
You need to use
ol.layer.Tile
if you want to get the tiles out of the GeoWebCache --> openlayers.org/en/latest/apidoc/ol.layer.Tile.html. And you also need to create a cached layer within geoserver– pavlos
Sep 20 '17 at 14:28
Hello, thanks for your reply. The layer is an ol.layer.Tile as per the code above : ) It's also cached for this gridset in GeoServer.
– David I
Sep 20 '17 at 15:22
Hello, thanks for your reply. The layer is an ol.layer.Tile as per the code above : ) It's also cached for this gridset in GeoServer.
– David I
Sep 20 '17 at 15:22
Have you made a custom gridset with geowebcache? You need to do ut within geowebcache.xml
– pavlos
Sep 20 '17 at 17:35
Have you made a custom gridset with geowebcache? You need to do ut within geowebcache.xml
– pavlos
Sep 20 '17 at 17:35
add a comment |
1 Answer
1
active
oldest
votes
There are a few things you need to try.
Make sure you have configured correctly your tilegrid within the geowebcache.xml and your use the same resolutions in the ol3 side
Within the
view
config add min , max resoutions. Like so
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..],
//Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection,
maxResolution : ......,
minResolution : 4200
});
Within your tile layer config , consider the tilegrid config which you are missing and the SRS definition. I think the matrix ids is crucial.
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {
'LAYERS': 'basemap',
'tiled': true,
'version':'1.1.1'
'SRS':'EPSG:3010',
},
tileGrid : new ol.tilegrid.WMTS({
origin : [....,...],//x,y as configured within geowebcache.xml
tileSize : [256,256],//the tile size (usually 256x256)
resolutions : [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //put the array of your resolutions
maxExtent : [-2138120,3880750,2396422,8973750],//just the extent
matrixIds : [.......]//now you need to calculate the matrixids.
}),
});
In order to calculate the matrix ids you need to create a helper function. Like so
function calcMatrixIDs() {
var res = [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..];
var retArr = new Array(res.length);
for (var z = 0; z < res.length; z++) {
retArr[z] = 'MY_GRID:' + z;//replace with name you use within the geowebcache.xml
}
return retArr;
};
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f256021%2fol3-gwc-background-layer-does-not-align-to-gridset-works-in-ol2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are a few things you need to try.
Make sure you have configured correctly your tilegrid within the geowebcache.xml and your use the same resolutions in the ol3 side
Within the
view
config add min , max resoutions. Like so
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..],
//Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection,
maxResolution : ......,
minResolution : 4200
});
Within your tile layer config , consider the tilegrid config which you are missing and the SRS definition. I think the matrix ids is crucial.
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {
'LAYERS': 'basemap',
'tiled': true,
'version':'1.1.1'
'SRS':'EPSG:3010',
},
tileGrid : new ol.tilegrid.WMTS({
origin : [....,...],//x,y as configured within geowebcache.xml
tileSize : [256,256],//the tile size (usually 256x256)
resolutions : [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //put the array of your resolutions
maxExtent : [-2138120,3880750,2396422,8973750],//just the extent
matrixIds : [.......]//now you need to calculate the matrixids.
}),
});
In order to calculate the matrix ids you need to create a helper function. Like so
function calcMatrixIDs() {
var res = [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..];
var retArr = new Array(res.length);
for (var z = 0; z < res.length; z++) {
retArr[z] = 'MY_GRID:' + z;//replace with name you use within the geowebcache.xml
}
return retArr;
};
add a comment |
There are a few things you need to try.
Make sure you have configured correctly your tilegrid within the geowebcache.xml and your use the same resolutions in the ol3 side
Within the
view
config add min , max resoutions. Like so
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..],
//Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection,
maxResolution : ......,
minResolution : 4200
});
Within your tile layer config , consider the tilegrid config which you are missing and the SRS definition. I think the matrix ids is crucial.
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {
'LAYERS': 'basemap',
'tiled': true,
'version':'1.1.1'
'SRS':'EPSG:3010',
},
tileGrid : new ol.tilegrid.WMTS({
origin : [....,...],//x,y as configured within geowebcache.xml
tileSize : [256,256],//the tile size (usually 256x256)
resolutions : [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //put the array of your resolutions
maxExtent : [-2138120,3880750,2396422,8973750],//just the extent
matrixIds : [.......]//now you need to calculate the matrixids.
}),
});
In order to calculate the matrix ids you need to create a helper function. Like so
function calcMatrixIDs() {
var res = [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..];
var retArr = new Array(res.length);
for (var z = 0; z < res.length; z++) {
retArr[z] = 'MY_GRID:' + z;//replace with name you use within the geowebcache.xml
}
return retArr;
};
add a comment |
There are a few things you need to try.
Make sure you have configured correctly your tilegrid within the geowebcache.xml and your use the same resolutions in the ol3 side
Within the
view
config add min , max resoutions. Like so
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..],
//Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection,
maxResolution : ......,
minResolution : 4200
});
Within your tile layer config , consider the tilegrid config which you are missing and the SRS definition. I think the matrix ids is crucial.
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {
'LAYERS': 'basemap',
'tiled': true,
'version':'1.1.1'
'SRS':'EPSG:3010',
},
tileGrid : new ol.tilegrid.WMTS({
origin : [....,...],//x,y as configured within geowebcache.xml
tileSize : [256,256],//the tile size (usually 256x256)
resolutions : [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //put the array of your resolutions
maxExtent : [-2138120,3880750,2396422,8973750],//just the extent
matrixIds : [.......]//now you need to calculate the matrixids.
}),
});
In order to calculate the matrix ids you need to create a helper function. Like so
function calcMatrixIDs() {
var res = [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..];
var retArr = new Array(res.length);
for (var z = 0; z < res.length; z++) {
retArr[z] = 'MY_GRID:' + z;//replace with name you use within the geowebcache.xml
}
return retArr;
};
There are a few things you need to try.
Make sure you have configured correctly your tilegrid within the geowebcache.xml and your use the same resolutions in the ol3 side
Within the
view
config add min , max resoutions. Like so
var view = new ol.View({
resolutions: [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..],
//Matching GWC gridset
center: [151423.169, 6908747.899],
extent: [-2138120,3880750,2396422,8973750],
zoom: 1,
projection: projection,
maxResolution : ......,
minResolution : 4200
});
Within your tile layer config , consider the tilegrid config which you are missing and the SRS definition. I think the matrix ids is crucial.
var wmsSource = new ol.source.TileWMS({
url: 'http.../geoserver/wms',
projection: 'EPSG:3010',
params: {
'LAYERS': 'basemap',
'tiled': true,
'version':'1.1.1'
'SRS':'EPSG:3010',
},
tileGrid : new ol.tilegrid.WMTS({
origin : [....,...],//x,y as configured within geowebcache.xml
tileSize : [256,256],//the tile size (usually 256x256)
resolutions : [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..], //put the array of your resolutions
maxExtent : [-2138120,3880750,2396422,8973750],//just the extent
matrixIds : [.......]//now you need to calculate the matrixids.
}),
});
In order to calculate the matrix ids you need to create a helper function. Like so
function calcMatrixIDs() {
var res = [4200,1399.9999999999998,560,140,55.9999999999999,27.99999999999996..];
var retArr = new Array(res.length);
for (var z = 0; z < res.length; z++) {
retArr[z] = 'MY_GRID:' + z;//replace with name you use within the geowebcache.xml
}
return retArr;
};
answered Sep 21 '17 at 7:18
pavlospavlos
3,023814
3,023814
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f256021%2fol3-gwc-background-layer-does-not-align-to-gridset-works-in-ol2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You need to use
ol.layer.Tile
if you want to get the tiles out of the GeoWebCache --> openlayers.org/en/latest/apidoc/ol.layer.Tile.html. And you also need to create a cached layer within geoserver– pavlos
Sep 20 '17 at 14:28
Hello, thanks for your reply. The layer is an ol.layer.Tile as per the code above : ) It's also cached for this gridset in GeoServer.
– David I
Sep 20 '17 at 15:22
Have you made a custom gridset with geowebcache? You need to do ut within geowebcache.xml
– pavlos
Sep 20 '17 at 17:35