[Geoserver-devel] [JIRA] (GEOS-10657) Layer preview display with gwc borders

Elari Roop created an issue

GeoServer / ImprovementGEOS-10657

Layer preview display with gwc borders

Issue Type:

ImprovementImprovement

Affects Versions:

2.20.1

Assignee:

Unassigned

Components:

GWC, WMS

Created:

19/Sep/22 8:26 AM

Priority:

MediumMedium

Reporter:

Elari Roop

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

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
    });

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207-sha1:7afd384)

Atlassian logo