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

Style Spec for sky and fog #298

Merged
merged 3 commits into from
Jan 7, 2024
Merged

Style Spec for sky and fog #298

merged 3 commits into from
Jan 7, 2024

Conversation

acalcutt
Copy link
Contributor

@acalcutt acalcutt commented Aug 13, 2023

This is a attempt at bringing in the style spec code from maplibre/maplibre-gl-js#1713 into this new style-spec package. This is needed to implement sky and fog in maplibre-gl-js. Most of this code what pulled from the previous pr by @prozessor13 , but I've made a few tweaks where I saw it was needed.

I am mainly submitting this because I would like to see sky implemented and this seems like a good first step. This goes with maplibre/maplibre-gl-js#2974 , which I think still needs some work.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 33.33% and project coverage change: -0.26% ⚠️

Comparison is base (141ca39) 77.83% compared to head (cfbcab2) 77.57%.
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
- Coverage   77.83%   77.57%   -0.26%     
==========================================
  Files         100      101       +1     
  Lines        4105     4129      +24     
  Branches     1176     1180       +4     
==========================================
+ Hits         3195     3203       +8     
- Misses        910      926      +16     
Files Changed Coverage Δ
src/validate/validate_sky.ts 20.00% <20.00%> (ø)
src/validate/validate.ts 100.00% <100.00%> (ø)
src/validate_style.min.ts 95.12% <100.00%> (+0.25%) ⬆️
src/validate_style.ts 94.11% <100.00%> (+0.36%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acalcutt acalcutt marked this pull request as ready for review August 13, 2023 15:40
@HarelM
Copy link
Collaborator

HarelM commented Aug 13, 2023

Can you please link to this PR in the following issue, and preferably comment on the suggestion there:
#163

@acalcutt
Copy link
Contributor Author

acalcutt commented Aug 22, 2023

Thinking about how best to test this. Do we have the ability to create a pre-release style spec package? There seems to be a lot of references to this package in maplibre-gl-js, I'm wondering if maybe making a pre-release with these changes would be easier than making my own package like I am trying now, since we could just change the version of style spec in package.json a lot easier.

@HarelM
Copy link
Collaborator

HarelM commented Aug 22, 2023

@drwestco I think you were able to do that, can you share your experience in a manual or a readme of some sort?

@HarelM HarelM changed the base branch from main to sky-spec January 7, 2024 14:44
@HarelM
Copy link
Collaborator

HarelM commented Jan 7, 2024

I'm merging this into a local branch, I'll continue to work on it and create a PR that addresses my review comments.

@HarelM HarelM merged commit c158082 into maplibre:sky-spec Jan 7, 2024
@HarelM HarelM mentioned this pull request Jan 7, 2024
8 tasks
HarelM added a commit that referenced this pull request Jan 8, 2024
* Style Spec for sky and fog (#298)

* Copy style-spec pieces from maplibre/maplibre-gl-js#1713

* add missing SkySpecification

* fix lint error

* Add tests, improve documentation, add to the style-spec docs

* Fix lint

* Update changelog

---------

Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
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.

3 participants