[OpenLayers-Users] blurry tiles
Andreas Hocevar
andreas.hocevar at gmail.com
Tue May 5 02:30:06 PDT 2020
Using `zDirection: -1` is not always a good idea. Especially not if the
tiles are already upscaled on the server.
You can look at the two maps below. Both use the Mapbox Satellite tileset.
The first rendered in mapbox-gl, the second inOpenLayers (without a
zDirection set). For me, they look and behave exactly the same:
https://api.mapbox.com/styles/v1/mapbox/satellite-v9.html?title=true&access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4M29iazA2Z2gycXA4N2pmbDZmangifQ.-g_vE53SD2WrJ6tFX7QHmA#17.4/47.078636/15.426918
https://r55zn.csb.app/#/center/15.42692,47.07864/zoom/17.4
Andreas.
On Tue, May 5, 2020 at 9:21 AM Toni Hernandez Valles <toni.hernandez at udg.edu>
wrote:
> Hello,
>
> Me too. I added the zDirection:-1 to the layer source, and the issue
> still persists. :-(
>
>
>
>
> On Mon, 2020-05-04 at 15:48 -0600, Richard Greenwood wrote:
> > I'm seeing something similar with Mapbox satellite tiles. I
> > added zDirection: -1 to my source definition but it didn't have any
> > effect.
> >
> > resolution 0.6237836388319881
> >
> > resolution 0.5518893502310329
> >
> >
> > On Mon, May 4, 2020 at 2:14 PM Andreas Hocevar <
> > andreas.hocevar at gmail.com> wrote:
> > > By default, OpenLayers applies up- and downscaling to the tiles. To
> > > avoid upscaling, configure the source with
> > >
> > > zDirection: -1
> > >
> > > Andreas.
> > >
> > > On Mon, May 4, 2020 at 8:47 PM Toni Hernandez Valles <
> > > toni.hernandez at udg.edu> wrote:
> > > > Helo everyone,
> > > >
> > > > I am using a vector tile from mapbox and I am getting bluring
> > > > tiles
> > > > with no apparent reason. Not for me, at least
> > > >
> > > > I have checked tiles directly to mapbox and the quality is
> > > > perfect,
> > > > but, when using tiles with OpenLayers the map quality gets lower.
> > > >
> > > > In this link (https://mapscloud.udg.edu/blurry_tiles.png) you can
> > > > see
> > > > the quality of the map image (on the left) and the quality of a
> > > > single
> > > > tile. Check the costline and the name "Roses" to see the
> > > > difference.
> > > >
> > > >
> > > > I have tried both tile sizes (256 and 512) with the same result.
> > > >
> > > > This is the code for the layer for size 256.
> > > >
> > > > var mapbox = new TileLayer({
> > > > source: new SourceXYZ({
> > > > url: '
> > > >
>
> https://api.mapbox.com/styles/v1/mapesbasesigte/ck9olcn8017xc1it6mhv6myje/tiles/256/{z}/{x}/{y}?access_token=mytoken
> '
> > > > ,
> > > > })
> > > > })
> > > >
> > > > And the code for the map.
> > > >
> > > > map = new Map({
> > > > layers: [ mapbox ],
> > > > target: 'map',
> > > > view: new View({
> > > > center: [0, 0],
> > > > zoom: 2,
> > > > projection: 'EPSG:3857',
> > > > }),
> > > > controls: defaultControls({attribution:
> > > > false}).extend([attribution]),
> > > > });
> > > >
> > > > Am I doing something wrong?
> > > >
> > > > Thanks you!!!
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at lists.osgeo.org
> > > > https://lists.osgeo.org/mailman/listinfo/openlayers-users
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at lists.osgeo.org
> > > https://lists.osgeo.org/mailman/listinfo/openlayers-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20200505/8201a1b9/attachment.html>
More information about the Users
mailing list