Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behaviour on SetZoom #1902

Open
streepje8 opened this issue Mar 1, 2023 · 1 comment
Open

Unexpected behaviour on SetZoom #1902

streepje8 opened this issue Mar 1, 2023 · 1 comment

Comments

@streepje8
Copy link

Note: If this is a bug or support ticket, please provide the following information:

  • Unity version: 2021.3.11f1

    • Scripting Runtime Version: I think the same as the api level, but the setting seems to be gone from my project settings (unity removed it?)
    • Scripting Backend: Mono
    • Api Compatibility Level: .NET Standard 2.1
  • Mapbox SDK version: 2.0.1

  • The platform you're building to: The bug occurs in the unity editor. My build target is Android.

  • A description of what you're trying to do: Setting the zoom on a map

  • Steps to recreate the bug if appropriate:
    I used the following code, expecting the map zoom to change. This however, crashed the unity engine (probebly because an infinite loop occured somewhere).
    image

  • Links to your logs are also helpful: There is no special logs.

Adding this line to the SetZoom function fixed the issue. Although I'm not familiar with the mapbox codebase at all, so I have no idea what other code could be impacted by this.
image

@smahalgavaiya
Copy link

try using UpdateMap(Vector2d latLon, float zoom) function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants