Elari Roop ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ac187d2e5-59a8-4591-abd1-b3c19cdc15c2
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZmRkNThkYThiNDNhNDUxODgwOTlkMjgwMjBhMjFhOTUiLCJwIjoiaiJ9
 ) / Improvement ( 
https://osgeo-org.atlassian.net/browse/GEOS-10657?atlOrigin=eyJpIjoiZmRkNThkYThiNDNhNDUxODgwOTlkMjgwMjBhMjFhOTUiLCJwIjoiaiJ9
 ) GEOS-10657 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10657?atlOrigin=eyJpIjoiZmRkNThkYThiNDNhNDUxODgwOTlkMjgwMjBhMjFhOTUiLCJwIjoiaiJ9
 ) Layer preview display with gwc borders ( 
https://osgeo-org.atlassian.net/browse/GEOS-10657?atlOrigin=eyJpIjoiZmRkNThkYThiNDNhNDUxODgwOTlkMjgwMjBhMjFhOTUiLCJwIjoiaiJ9
 )

Issue Type: Improvement Affects Versions: 2.20.1 Assignee: Unassigned 
Components: GWC, WMS Created: 19/Sep/22 8:26 AM Priority: Medium Reporter: 
Elari Roop ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ac187d2e5-59a8-4591-abd1-b3c19cdc15c2
 )

With integrated gwc enabled, layer preview does not never seem to hit the gwc 
cache.

https://github.com/geoserver/geoserver/blob/main/src/wms/src/main/resources/org/geoserver/wms/map/OpenLayers3MapTemplate.ftl
 ( 
https://github.com/geoserver/geoserver/blob/main/src/wms/src/main/resources/org/geoserver/wms/map/OpenLayers3MapTemplate.ftl
 )

This could be achieved with adding tilegrid under ol.layer.Tile

tileGrid: tileGrid
const startResolution = ol.extent.getWidth(projection.getExtent()) / 256;
const resolutions = new Array(22);
     for (let i = 0, ii = resolutions.length; i < ii; ++i) {
                  resolutions[i] = startResolution / Math.pow(2, i);
                  console.log(resolutions[i]);
          }

const tileGrid = new ol.tilegrid.TileGrid({
     extent: bounds,
     resolutions: resolutions
   });

( 
https://osgeo-org.atlassian.net/browse/GEOS-10657#add-comment?atlOrigin=eyJpIjoiZmRkNThkYThiNDNhNDUxODgwOTlkMjgwMjBhMjFhOTUiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10657#add-comment?atlOrigin=eyJpIjoiZmRkNThkYThiNDNhNDUxODgwOTlkMjgwMjBhMjFhOTUiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- 
sha1:7afd384 )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to