Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Limit Viewport #3602

@tobrun

Description

@tobrun

I have been hearing about the feature that developers want to limit the viewport for the end-user.

Sample use-case:

Create a tourist application for NYC, users are restricted to:

  • move the map in NYC area
  • only allowed to zoom between 8 - 14 level
  • tilt is limited to only 20 degrees.
API:

This will result in exposing a similar API as the old raster API:

  • setScrollableAreaLimit() // definition ready
  • setMinZoom() // implemented
  • setMaxZoom() // implemented
  • setMinTilt()
  • setMaxTilt()

iOS is currently thinking about implementing #2457, which will work similar to the rotation snap-back animation we currently have at very low zoom levels.

Metadata

Metadata

Assignees

Labels

AndroidMapbox Maps SDK for AndroidGL JS parityFor feature parity with Mapbox GL JSfeature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions