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

Move terrain object to map (part of elevation freeze fix) #1628

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

HarelM
Copy link
Member

@HarelM HarelM commented Sep 8, 2022

@prozessor13 I've done the coding part of moving the object.
Please review.
I think it's OK, but I touched a lot of files...

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2022

Bundle size report:

Size Change: +1 B
Total Size Before: 204 kB
Total Size After: 204 kB

Output file Before After Change
maplibre-gl.js 195 kB 195 kB +1 B
maplibre-gl.css 9.03 kB 9.03 kB 0 B
ℹ️ View Details No major changes

@prozessor13
Copy link
Collaborator

Thank you @HarelM . Great! But until wednesdey i am not in front of a computer, i will review asap next week.

@HarelM
Copy link
Member Author

HarelM commented Sep 8, 2022

You can do it from the phone :-) the change here is only the moving of the object, fairly simple.

Copy link
Member

@birkskyum birkskyum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I believe this line in src/style/validate_style.ts also should be updated.

export const validateTerrain = validateStyle.terrain;

@HarelM
Copy link
Member Author

HarelM commented Sep 8, 2022

Nope, this is the terrain validation as part of the style spec.

@HarelM HarelM merged commit 7cfe2a5 into freeze-elevation-configurable Sep 8, 2022
@HarelM HarelM deleted the freeze-ele-move-terrain branch September 8, 2022 17:09
HarelM added a commit that referenced this pull request Sep 8, 2022
* add freezeElevation logic to AnimationOptions

* flyTo and easeTo  calculates camera-height in respect of target height in terrain

* fix recalculation of _elevationStart during easing

* fix tests

* fix reviewing comments

* Move terrain object to map (#1628)

Co-authored-by: HarelM <harel.mazor@gmail.com>
cns-solutions-admin pushed a commit to CNS-Solutions/maplibre-gl-js that referenced this pull request Sep 21, 2022
* add freezeElevation logic to AnimationOptions

* flyTo and easeTo  calculates camera-height in respect of target height in terrain

* fix recalculation of _elevationStart during easing

* fix tests

* fix reviewing comments

* Move terrain object to map (maplibre#1628)

Co-authored-by: HarelM <harel.mazor@gmail.com>
@klokan klokan added this to the 3.0.0 milestone Dec 10, 2022
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.

None yet

4 participants