Skip to content

Commit 5788145

Browse files
authored
Revert "Rename adaptive globe to globe-to-mercator (#878)" (#889)
This reverts commit d009e1d.
1 parent d009e1d commit 5788145

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## main
22

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

76
### 🐞 Bug fixes

src/diff.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,10 @@ describe('diff', () => {
607607
} as StyleSpecification,
608608
{
609609
projection: {
610-
type: 'globe-to-mercator'
610+
type: 'globe'
611611
}
612612
} as StyleSpecification)).toEqual([
613-
{command: 'setProjection', args: [{type: 'globe-to-mercator'}]},
613+
{command: 'setProjection', args: [{type: 'globe'}]},
614614
]);
615615
});
616616
});

src/reference/v8.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"type": "projection",
130130
"doc": "The projection configuration. **Note:** this definition is still experimental and is under development in maplibre-gl-js.",
131131
"example": {
132-
"type": "globe-to-mercator"
132+
"type": "globe"
133133
}
134134
},
135135
"terrain": {
@@ -4538,7 +4538,7 @@
45384538
]
45394539
},
45404540
"transition": true,
4541-
"doc": "How to blend the atmosphere. Where 1 is visible atmosphere and 0 is hidden. It is best to interpolate this expression when using globe-to-mercator projection."
4541+
"doc": "How to blend the atmosphere. Where 1 is visible atmosphere and 0 is hidden. It is best to interpolate this expression when using globe projection."
45424542
}
45434543
},
45444544
"terrain": {
@@ -4575,10 +4575,10 @@
45754575
"default": "mercator",
45764576
"values": {
45774577
"mercator": {
4578-
"doc": "Web Mercator projection."
4578+
"doc": "The Mercator projection."
45794579
},
4580-
"globe-to-mercator": {
4581-
"doc": "Spherical projection with zoom transition to Web Mercator projection."
4580+
"globe": {
4581+
"doc": "The globe projection."
45824582
}
45834583
}
45844584
}

src/validate/validate_projection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ describe('Validate projection', () => {
2626
test('Should return errors according to spec violations', () => {
2727
const errors = validateProjection({validateSpec, value: {type: 1 as any}, styleSpec: v8, style: {} as any});
2828
expect(errors).toHaveLength(1);
29-
expect(errors[0].message).toBe('type: expected one of [mercator, globe-to-mercator], 1 found');
29+
expect(errors[0].message).toBe('type: expected one of [mercator, globe], 1 found');
3030
});
3131

3232
test('Should pass if everything is according to spec', () => {
33-
let errors = validateProjection({validateSpec, value: {type: 'globe-to-mercator'}, styleSpec: v8, style: {} as any});
33+
let errors = validateProjection({validateSpec, value: {type: 'globe'}, styleSpec: v8, style: {} as any});
3434
expect(errors).toHaveLength(0);
3535
errors = validateProjection({validateSpec, value: {type: 'mercator'}, styleSpec: v8, style: {} as any});
3636
expect(errors).toHaveLength(0);

0 commit comments

Comments
 (0)