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:[email protected]]
Sent: 18 April 2016 11:56
To: [email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users