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

Add queryTerrainElevation method #2264

Closed
wants to merge 16 commits into from

Conversation

manhcuongincusar1
Copy link
Contributor

@manhcuongincusar1 manhcuongincusar1 commented Mar 13, 2023

Fixes #1654

Launch Checklist

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Write tests for all new functionality.
  • Add an entry to CHANGELOG.md under the ## main section.

@manhcuongincusar1
Copy link
Contributor Author

manhcuongincusar1 commented Mar 13, 2023

@HarelM HarelM changed the title Fix 1654 Add queryTerrainElevation method Mar 13, 2023
src/ui/camera.ts Outdated Show resolved Hide resolved
@HarelM
Copy link
Collaborator

HarelM commented Mar 13, 2023

Thanks for taking the time to do this!
Please add some tests, changelog and make sure to check the tickboxes of the template.

@manhcuongincusar1
Copy link
Contributor Author

Hi @HarelM do I need to tick all of check boxes?

@manhcuongincusar1
Copy link
Contributor Author

Hi @HarelM! How to make sure that my code does not include backports from Mapbox projects?

.gitignore Outdated Show resolved Hide resolved
src/ui/camera.test.ts Outdated Show resolved Hide resolved
src/ui/camera.test.ts Outdated Show resolved Hide resolved
src/ui/camera.ts Outdated Show resolved Hide resolved
@HarelM
Copy link
Collaborator

HarelM commented Mar 14, 2023

See my comments, if you haven't looked at the mapbox code in order to implement this then you didn't backported it.

@manhcuongincusar1
Copy link
Contributor Author

Actually, Mapbox has queryTerrainElevation but the implementation is different

cuong nguyen and others added 6 commits March 15, 2023 09:22
…e#2241)

* shouldPausePlacement short circuits when _forceFullPlacement

* Update CHANGELOG.md

* Update src/style/pauseable_placement.ts

Co-authored-by: David Schlosnagle <[email protected]>

---------

Co-authored-by: Harel M <[email protected]>
dependabot bot and others added 2 commits March 16, 2023 10:08
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.31.1 to 1.31.2.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.31.1...v1.31.2)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Unit test coverage

* rename upload step

* use my favorite test reporters

text reporter provides output in ci log
html-spa reporter provides friendly and interactive output

* upload coverage even if unit tests fail
@manhcuongincusar1
Copy link
Contributor Author

There are a small conflict in CHANGELOG.md, can you help me with resolving it @HarelM ?

@HarelM
Copy link
Collaborator

HarelM commented Mar 16, 2023

Seems like this PR contains files from different PRs.
You'll need to fix that either using git commands or opening a different PR...

@manhcuongincusar1
Copy link
Contributor Author

manhcuongincusar1 commented Mar 16, 2023 via email

@HarelM
Copy link
Collaborator

HarelM commented Mar 16, 2023

I suggest to open a different branch from current main and do the changes on it again if you can't solve this otherwise...

@manhcuongincusar1
Copy link
Contributor Author

Okay @HarelM

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

Successfully merging this pull request may close these issues.

bad position of 3D model when 3D terrain is enabled
5 participants