Skip to content

Ability to disable pitch/tilt after map creation #5012

Closed

Description

@DanielGibbsNZ

I can create a map with pitch/tilt disabled using the pitchWithRotate option, but if I later want to disable it there is no (documented) way to do so. Would it be possible to add this feature?

I've found a partial hack to do this, but it only disables pitch via dragging, not via keyboard shortcuts:

map.dragRotate._pitchWithRotate = false;

Activity

  1. mollymerp commented on Jul 20, 2017

    @mollymerp
    Contributor

    Hi @DanielGibbsNZ – thanks for using Mapbox. We do have an open issue for standardizing our setters/getters and constructor options #4029

    Closing this issue to centralize discussion over there, but feel free to submit a PR for this issue specifically if you'd like!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions