Skip to content

Zooming with raster tiles overlay #9048

Open

Description

@nijs9

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?

Activity

  1. kkaefer commented on Dec 2, 2019

    @kkaefer
    Member

    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?

  2. rrprrp commented on Dec 4, 2019

    @rrprrp

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

  3. rrprrp commented on Dec 4, 2019

    @rrprrp

    Duplicate of #1695

  4. kkaefer commented on Dec 4, 2019

    @kkaefer
    Member

    Leaving this ticket open because #1695 is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions