Skip to content

Commit

Permalink
Add non-adaptive globe
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Nov 4, 2024
1 parent d009e1d commit 90fdb88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### ✨ Features and improvements
- Rename adaptive globe from `globe` to `globe-to-mercator` ([#878](https://github.com/maplibre/maplibre-style-spec/pull/878))
- Add non-adaptive `globe` ([#878](https://github.com/maplibre/maplibre-style-spec/pull/878))
- _...Add new stuff here..._

### 🐞 Bug fixes
Expand Down
3 changes: 3 additions & 0 deletions src/reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -4577,6 +4577,9 @@
"mercator": {
"doc": "Web Mercator projection."
},
"globe": {
"doc": "Spherical projection."
},
"globe-to-mercator": {
"doc": "Spherical projection with zoom transition to Web Mercator projection."
}
Expand Down
2 changes: 1 addition & 1 deletion src/validate/validate_projection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Validate projection', () => {
test('Should return errors according to spec violations', () => {
const errors = validateProjection({validateSpec, value: {type: 1 as any}, styleSpec: v8, style: {} as any});
expect(errors).toHaveLength(1);
expect(errors[0].message).toBe('type: expected one of [mercator, globe-to-mercator], 1 found');
expect(errors[0].message).toBe('type: expected one of [mercator, globe, globe-to-mercator], 1 found');
});

test('Should pass if everything is according to spec', () => {
Expand Down

0 comments on commit 90fdb88

Please sign in to comment.