south africa imagery

This commit is contained in:
vcoppe committed 2026-12-04 18:58:06 +01:00
1 parent 2365195bcb
commit 3fcf2134e7
5 files changed
+27 -1

No files matched your search

@@ -288,6 +288,24 @@ describe('planTile', () => {
});
});
it('takes South Africa from its agency, without Lesotho', async () => {
const { tiles } = savedTiles();
// Cape Town, and its coast with the fallback at sea
assert.deepEqual(await plan(tile(18.425, -33.93, 16), tiles), {
parts: ['ZA:full'],
fallback: false,
});
assert.deepEqual(await plan(tile(18.38, -33.915, 14), tiles), {
parts: ['ZA:partial'],
fallback: true,
});
// Maseru, in Lesotho, at the border
assert.deepEqual(await plan(tile(27.48, -29.31, 16), tiles), {
parts: [],
fallback: true,
});
});
it('takes the states of the United States with the same imagery as one', async () => {
const { tiles } = savedTiles();
// Kansas City, in Kansas and Missouri, both from the NAIP
@@ -293,6 +293,14 @@ const sources: ImagerySource[] = [
minzoom: 14,
maxzoom: 19,
},
{
id: 'ZA',
attribution:
'State Copyright © <a href="https://ngi.dlrrd.gov.za/" target="_blank">Chief Directorate: National Geo-spatial Information</a>',
// from the server of OpenStreetMap in South Africa
url: xyz('https://aerial.openstreetmap.org.za/ngi-aerial/{z}/{x}/{y}.jpg'),
maxzoom: 19,
},
// Germany, by state: Baden-Württemberg is left to the fallback, its services often give blank
// tiles
{
@@ -1 +1 @@
{"zoom":10,"tiles":[305738,306754,306755,306756,306757,306758,306759,306760,306761,306762,306763,306764,306765,306766,306767,306768,307778,307779,307780,307781,307782,307783,307784,307785,307786,307787,307788,307789,307790,307791,307792,308802,308803,308804,308805,308806,308807,308808,308809,308810,308811,308812,308813,308814,308815,308816,309822,309823,309824,309825,309826,309827,309828,309829,309830,309831,309832,309833,309834,309835,309836,309837,309838,309839,309840,310846,310847,310848,310849,310850,310851,310852,310853,310854,310855,310856,310857,310858,310859,310860,310861,310862,310863,310864,311870,311871,311872,311873,311874,311875,311876,311877,311878,311879,311880,311881,311882,311883,311884,311885,311886,311887,311888,312894,312895,312896,312897,312898,312899,312900,312901,312902,312903,312904,312905,312906,312907,312908,312909,312910,312911,312912,313917,313918,313919,313920,313921,313922,313923,313924,313925,313926,313927,313928,313929,313930,313931,313932,313933,313934,313935,313936,314942,314943,314944,314945,314946,314947,314948,314949,314950,314951,314952,314953,314954,314955,314956,314957,314958,314959,314960,315966,315967,315968,315969,315970,315971,315972,315973,315974,315975,315976,315977,315978,315979,315980,315981,315982,315983,315984,316951,316952,316953,316954,316955,316956,316957,316958,316990,316994,316995,316996,316997,316998,316999,317000,317001,317002,317003,317004,317005,317006,317007,317008,317975,317976,317977,317978,317979,317980,317981,317982,318018,318019,318020,318021,318022,318023,318024,318025,318026,318027,318028,318029,318030,318031,318032,318999,319000,319001,319002,319003,319004,319005,319006,319007,319042,319043,319044,319045,319046,319047,319048,319049,319050,319051,319052,319053,319054,319055,319056,320023,320024,320025,320026,320027,320028,320029,320030,320031,321046,321047,321048,321049,321050,321051,321052,321053,321054,321055,322070,322071,322072,322073,322074,322075,322076,322077,322078,322079,323094,323095,323096,323097,323098,323099,323100,323101,323102,323103,323104,323105,324118,324119,324120,324121,324122,324123,324124,324125,324126,324127,325142,325143,325144,325145,325146,325147,325148,325149,325150,325151,325153,326166,326167,326168,326169,326170,326171,326172,326173,326174,326175,326176,326177,326178,326179,327190,327191,327192,327193,327194,327195,327196,327197,327198,327199,327200,327201,327202,327203,328214,328215,328216,328217,328218,328219,328220,328221,328222,328223,328224,328225,328226,328227,328228,329238,329239,329240,329241,329242,329243,329244,329245,329246,329247,329248,329249,329250,329251,329252,330262,330263,330264,330265,330266,330267,330268,330269,330270,330271,330272,330273,330274,330275,330281,330282,330283,331286,331287,331288,331289,331290,331291,331292,331293,331294,331295,331296,331297,331298,331299,331305,331306,331307,332310,332311,332312,332313,332314,332315,332316,332317,332318,332319,332320,332321,332322,332323,332328,332329,332330,332331,332332,332333,332334,332335,332336,332337,332338,332339,332340,332341,332342,332343,332344,332345,332346,332347,332348,332349,332350,332351,332352,332353,332354,332355,332356,333335,333336,333337,333338,333339,333340,333341,333342,333343,333344,333345,333346,333349,333350,333351,333352,333353,333354,333355,333356,333357,333358,333359,333360,333361,333362,333363,333364,333365,333366,333367,333368,333369,333370,333371,333372,333373,333374,333375,333376,333377,333378,333379,333380,334359,334360,334361,334362,334363,334364,334365,334366,334367,334368,334369,334370,334371,334372,334373,334374,334375,334376,334377,334378,334379,334380,334381,334382,334383,334384,334385,334386,334387,334388,334389,334390,334391,334392,334393,334394,334395,334396,334397,334398,334399,334400,334401,334402,334403,334404,335382,335383,335384,335385,335386,335387,335388,335389,335390,335391,335392,335393,335394,335395,335396,335397,335398,335399,335400,335401,335402,335403,335404,335405,335406,335407,335408,335409,335410,335411,335412,335413,335414,335415,335416,335417,335418,335419,335420,335421,335422,335423,335424,335425,335426,335427,335428,336407,336408,336409,336410,336411,336412,336413,336414,336415,336416,336417,336418,336419,336420,336421,336422,336423,336424,336425,336426,336427,336428,336429,336430,336431,336432,336433,336434,336435,336436,336437,336438,336439,336440,336441,336442,336443,336444,336445,336446,336447,336448,336449,336450,336451,336452,337427,337428,337429,337430,337431,337432,337433,337434,337435,337436,337437,337438,337439,337440,337441,337442,337443,337444,337445,337446,337447,337448,337449,337450,337451,337452,337453,337454,337455,337456,337457,337458,337459,337460,337461,337462,337463,337464,337465,337466,337467,337468,337469,337470,337471,337472,337473,337474,337475,337476,338450,338451,338452,338453,338454,338455,338456,338457,338458,338459,338460,338461,338462,338463,338464,338465,338466,338467,338468,338469,338470,338471,338472,338473,338474,338475,338476,338477,338478,338479,33Line truncated
{"zoom":10,"tiles":[305738,306754,306755,306756,306757,306758,306759,306760,306761,306762,306763,306764,306765,306766,306767,306768,307778,307779,307780,307781,307782,307783,307784,307785,307786,307787,307788,307789,307790,307791,307792,308802,308803,308804,308805,308806,308807,308808,308809,308810,308811,308812,308813,308814,308815,308816,309822,309823,309824,309825,309826,309827,309828,309829,309830,309831,309832,309833,309834,309835,309836,309837,309838,309839,309840,310846,310847,310848,310849,310850,310851,310852,310853,310854,310855,310856,310857,310858,310859,310860,310861,310862,310863,310864,311870,311871,311872,311873,311874,311875,311876,311877,311878,311879,311880,311881,311882,311883,311884,311885,311886,311887,311888,312894,312895,312896,312897,312898,312899,312900,312901,312902,312903,312904,312905,312906,312907,312908,312909,312910,312911,312912,313917,313918,313919,313920,313921,313922,313923,313924,313925,313926,313927,313928,313929,313930,313931,313932,313933,313934,313935,313936,314942,314943,314944,314945,314946,314947,314948,314949,314950,314951,314952,314953,314954,314955,314956,314957,314958,314959,314960,315966,315967,315968,315969,315970,315971,315972,315973,315974,315975,315976,315977,315978,315979,315980,315981,315982,315983,315984,316951,316952,316953,316954,316955,316956,316957,316958,316990,316994,316995,316996,316997,316998,316999,317000,317001,317002,317003,317004,317005,317006,317007,317008,317975,317976,317977,317978,317979,317980,317981,317982,318018,318019,318020,318021,318022,318023,318024,318025,318026,318027,318028,318029,318030,318031,318032,318999,319000,319001,319002,319003,319004,319005,319006,319007,319042,319043,319044,319045,319046,319047,319048,319049,319050,319051,319052,319053,319054,319055,319056,320023,320024,320025,320026,320027,320028,320029,320030,320031,321046,321047,321048,321049,321050,321051,321052,321053,321054,321055,322070,322071,322072,322073,322074,322075,322076,322077,322078,322079,323094,323095,323096,323097,323098,323099,323100,323101,323102,323103,323104,323105,324118,324119,324120,324121,324122,324123,324124,324125,324126,324127,325142,325143,325144,325145,325146,325147,325148,325149,325150,325151,325153,326166,326167,326168,326169,326170,326171,326172,326173,326174,326175,326176,326177,326178,326179,327190,327191,327192,327193,327194,327195,327196,327197,327198,327199,327200,327201,327202,327203,328214,328215,328216,328217,328218,328219,328220,328221,328222,328223,328224,328225,328226,328227,328228,329238,329239,329240,329241,329242,329243,329244,329245,329246,329247,329248,329249,329250,329251,329252,330262,330263,330264,330265,330266,330267,330268,330269,330270,330271,330272,330273,330274,330275,330281,330282,330283,331286,331287,331288,331289,331290,331291,331292,331293,331294,331295,331296,331297,331298,331299,331305,331306,331307,332310,332311,332312,332313,332314,332315,332316,332317,332318,332319,332320,332321,332322,332323,332328,332329,332330,332331,332332,332333,332334,332335,332336,332337,332338,332339,332340,332341,332342,332343,332344,332345,332346,332347,332348,332349,332350,332351,332352,332353,332354,332355,332356,333335,333336,333337,333338,333339,333340,333341,333342,333343,333344,333345,333346,333349,333350,333351,333352,333353,333354,333355,333356,333357,333358,333359,333360,333361,333362,333363,333364,333365,333366,333367,333368,333369,333370,333371,333372,333373,333374,333375,333376,333377,333378,333379,333380,334359,334360,334361,334362,334363,334364,334365,334366,334367,334368,334369,334370,334371,334372,334373,334374,334375,334376,334377,334378,334379,334380,334381,334382,334383,334384,334385,334386,334387,334388,334389,334390,334391,334392,334393,334394,334395,334396,334397,334398,334399,334400,334401,334402,334403,334404,335382,335383,335384,335385,335386,335387,335388,335389,335390,335391,335392,335393,335394,335395,335396,335397,335398,335399,335400,335401,335402,335403,335404,335405,335406,335407,335408,335409,335410,335411,335412,335413,335414,335415,335416,335417,335418,335419,335420,335421,335422,335423,335424,335425,335426,335427,335428,336407,336408,336409,336410,336411,336412,336413,336414,336415,336416,336417,336418,336419,336420,336421,336422,336423,336424,336425,336426,336427,336428,336429,336430,336431,336432,336433,336434,336435,336436,336437,336438,336439,336440,336441,336442,336443,336444,336445,336446,336447,336448,336449,336450,336451,336452,337427,337428,337429,337430,337431,337432,337433,337434,337435,337436,337437,337438,337439,337440,337441,337442,337443,337444,337445,337446,337447,337448,337449,337450,337451,337452,337453,337454,337455,337456,337457,337458,337459,337460,337461,337462,337463,337464,337465,337466,337467,337468,337469,337470,337471,337472,337473,337474,337475,337476,338450,338451,338452,338453,338454,338455,338456,338457,338458,338459,338460,338461,338462,338463,338464,338465,338466,338467,338468,338469,338470,338471,338472,338473,338474,338475,338476,338477,338478,338479,33Line truncated