Skip to content

Commit da10b5e

Browse files
committed
globe
1 parent 7b1e9ae commit da10b5e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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: 'sphere'
610+
type: 'globe'
611611
}
612612
} as StyleSpecification)).toEqual([
613-
{command: 'setProjection', args: [{type: 'sphere'}]},
613+
{command: 'setProjection', args: [{type: 'globe'}]},
614614
]);
615615
});
616616
});

src/reference/v8.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4577,10 +4577,10 @@
45774577
"web-mercator": {
45784578
"doc": "Web Mercator projection."
45794579
},
4580-
"spherical": {
4580+
"globe": {
45814581
"doc": "\"Static Globe\". Spherical projection."
45824582
},
4583-
"spherical-to-web-mercator": {
4583+
"globe-to-web-mercator": {
45844584
"doc": "\"Adaptive Globe\". Transition from a Spherical projection to a Web Mercator projection on zoom."
45854585
}
45864586
}

src/validate/validate_projection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ 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 [web-mercator, spherical, spherical-to-web-mercator], 1 found');
29+
expect(errors[0].message).toBe('type: expected one of [web-mercator, globe, globe-to-web-mercator], 1 found');
3030
});
3131

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

0 commit comments

Comments
 (0)