OL3 gwc background layer does not align to gridset, works in OL2 Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?EPSG: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
What is the topology associated with the algebras for the ultrafilter monad?
Is it a good idea to use CNN to classify 1D signal?
What would you call this weird metallic apparatus that allows you to lift people?
Time to Settle Down!
How to write this math term? with cases it isn't working
Why is it faster to reheat something than it is to cook it?
Dating a Former Employee
An adverb for when you're not exaggerating
Illegal assignment from sObject to Id
Most bit efficient text communication method?
What's the meaning of "fortified infraction restraint"?
How to write the following sign?
Can anything be seen from the center of the Boötes void? How dark would it be?
How to install press fit bottom bracket into new frame
Significance of Cersei's obsession with elephants?
AppleTVs create a chatty alternate WiFi network
Why does the remaining Rebel fleet at the end of Rogue One seem dramatically larger than the one in A New Hope?
How could we fake a moon landing now?
Crossing US/Canada Border for less than 24 hours
Why weren't discrete x86 CPUs ever used in game hardware?
Is a ledger board required if the side of my house is wood?
How do living politicians protect their readily obtainable signatures from misuse?
What does it mean that physics no longer uses mechanical models to describe phenomena?
Do wooden building fires get hotter than 600°C?
OL3 gwc background layer does not align to gridset, works in OL2
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?EPSG: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
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
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♦
54k1782246
54k1782246
asked Sep 20 '17 at 11:14
David IDavid I
437
437
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 sovar 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 sovar 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 sovar 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 sovar 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 sovar 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