mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.23k stars 2.23k forks source link

Zooming with raster tiles overlay #9048

Open nijs9 opened 4 years ago

nijs9 commented 4 years ago

mapbox-gl-js version: 1.5

browser: Chrome

Steps to Trigger Behavior

When using a raster tile overlay, tile images are scaled in zoom ranges between two integers (if you zoom-out from level 10 to 9 for example, tiles from zoomlevel 10 are visible until you reach zoomlevel 9). Is there any option available to zoom in steps of 1, so if you scroll your mouse for zooming, factor 1 is used to zoom in/out? For vector tiles this isn't a problem, but for raster tiles it is desirable to zoom in steps of 1. Is this adjustable or is it a bug when using raster tiles?

kkaefer commented 4 years ago

tile images are scaled in zoom ranges between two integers (if you zoom-out from level 10 to 9 for example, tiles from zoomlevel 10 are visible until you reach zoomlevel 9).

This isn't entirely correct; Mapbox GL JS will use z10 tiles from z >= 9.5 and z < 10.5.

Is there any option available to zoom in steps of 1, so if you scroll your mouse for zooming, factor 1 is used to zoom in/out?

I'm not entirely certain what you mean with this. Do you want to Mapbox GL to snap to the next integer zoom level, e.g. the behavior that Leaflet has?

rrprrp commented 4 years ago

same problem, because most zoom levels are in an blur state when operates. especially when there is text on tile, user experience is terrible

rrprrp commented 4 years ago

Duplicate of #1695

kkaefer commented 4 years ago

Leaving this ticket open because https://github.com/mapbox/mapbox-gl-js/issues/1695 is closed.