This is in the gwc layer/layer-group file. You can do it via the UI on the layer group page or on the Tile caching tab on the layer page. The link below describes the settings
http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options ________________________________________ From: tommaso [tommas...@googlemail.com] Sent: 18 April 2016 12:42 To: geoserver-users@lists.sourceforge.net; Kirk, Victor (GB) Subject: Re: [Geoserver-users] Geoserver / Geowebcache on retina display Hello Kirk, did you add this option in geowebcache.xml? Thanks, Tommaso On Mon, 18 Apr 2016 13:13:20 +0200, Kirk, Victor (GB) <victor.k...@cubic.com> wrote: > As well as adding a gridset for 512x512 images you also need to add a > DPI parmamter on the gridset, thid is what I use: > > > <parameterFilters> > <stringParameterFilter> > <key>FORMAT_OPTIONS</key> > <defaultValue>dpi:90</defaultValue> > <normalize> > <locale></locale> > </normalize> > <values> > <string>dpi:90</string> > <string>dpi:180</string> > </values> > </stringParameterFilter> > </parameterFilters> > > Note, I also found I had to use EPSG:3857 instead of 900913, gwc seems > to get confused sometimes and claim there was no gridset defined when > the request uses 3857 for anything but the build in on. > > > -----Original Message----- > From: tommaso [mailto:tommas...@googlemail.com] > Sent: 18 April 2016 11:56 > To: geoserver-users@lists.sourceforge.net > Subject: [Geoserver-users] Geoserver / Geowebcache on retina display > > Hello, I build a map with Geoserver/Openlayers. I use the tiled layers > wich metatile = 14 and gutter = 100. > If my map is requested from a device with retina display (ipad air, > macbook...), the metatiling option seems to be ignored: on every tile is > rendered a label. The result is, that all labels are repeated several > time. > The problem is, that openlayers request tiles with dimension 512x512 > instead of 256x256, while in the gridSet the dimensions are 256x256. > Openlayers simply double the sizes if on retina display. I could force > openlayers to use always 256x256, but the tile would be probably blurred. > > I tried to configure another gridset with same resolutions and dimensions > 512x512 and I added this gridset to my layer, so that the layer have now > 2 gridsets with same resolutions and different tiles sizes. > Unfortunately does not not work. > > The question is: can I say openlayers to use another gridset if on > retina display? > There is maybe another solution? > > Regards Tommaso > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications > Manager Applications Manager provides deep performance insights into > multiple tiers of your business applications. It resolves application > problems quickly and reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users