Skip to content

Commit e0d639e

Browse files
committed
Add screenshot tests for topographic-v2 maps.
1 parent c9f0400 commit e0d639e

1 file changed

Lines changed: 66 additions & 36 deletions

File tree

src/tiles.ts

Lines changed: 66 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -47,74 +47,74 @@ export const DefaultTestTiles: TestTile[] = [
4747
tileSet: 'aerial',
4848
},
4949
{
50-
name: 'topographic-3857-z8',
50+
name: 'topographic-v2-3857-z8',
5151
tileMatrix: TileMatrixIdentifier.Google,
5252
location: { lat: -39.2169833, lng: 176.4774344, z: 8 },
53-
tileSet: 'topographic',
54-
style: 'topographic',
53+
tileSet: 'topographic-v2',
54+
style: 'topographic-v2',
5555
},
5656
{
57-
name: 'topolite-3857-z8',
57+
name: 'topolite-v2-3857-z8',
5858
tileMatrix: TileMatrixIdentifier.Google,
5959
location: { lat: -39.2169833, lng: 176.4774344, z: 8 },
60-
tileSet: 'topographic',
61-
style: 'topolite',
60+
tileSet: 'topographic-v2',
61+
style: 'topolite-v2',
6262
},
6363
{
64-
name: 'topographic-3857-z14',
64+
name: 'topographic-v2-3857-z14',
6565
tileMatrix: TileMatrixIdentifier.Google,
6666
location: { lat: -41.8899962, lng: 174.0492437, z: 14 },
67-
tileSet: 'topographic',
68-
style: 'topographic',
67+
tileSet: 'topographic-v2',
68+
style: 'topographic-v2',
6969
},
7070
{
71-
name: 'topographic-3857-ngauranga-z15',
71+
name: 'topographic-v2-3857-ngauranga-z15',
7272
tileMatrix: TileMatrixIdentifier.Google,
7373
location: { lat: -41.2454458, lng: 174.8101136, z: 15 },
74-
tileSet: 'topographic',
75-
style: 'topographic',
74+
tileSet: 'topographic-v2',
75+
style: 'topographic-v2',
7676
},
7777
{
78-
name: 'topographic-3857-auckland-airport-z13',
78+
name: 'topographic-v2-3857-auckland-airport-z13',
7979
tileMatrix: TileMatrixIdentifier.Google,
8080
location: { lat: -37.000845, lng: 174.8064383, z: 13 },
81-
tileSet: 'topographic',
82-
style: 'topographic',
81+
tileSet: 'topographic-v2',
82+
style: 'topographic-v2',
8383
},
8484
{
85-
name: 'topographic-3857-otaki-south-z13',
85+
name: 'topographic-v2-3857-otaki-south-z13',
8686
tileMatrix: TileMatrixIdentifier.Google,
8787
location: { lat: -40.7727954, lng: 175.1504838, z: 13 },
88-
tileSet: 'topographic',
89-
style: 'topographic',
88+
tileSet: 'topographic-v2',
89+
style: 'topographic-v2',
9090
},
9191
{
92-
name: 'topographic-3857-christchurch-north-urban-z17',
92+
name: 'topographic-v2-3857-christchurch-north-urban-z17',
9393
tileMatrix: TileMatrixIdentifier.Google,
9494
location: { lat: -43.4567506, lng: 172.6109426, z: 17 },
95-
tileSet: 'topographic',
96-
style: 'topographic',
95+
tileSet: 'topographic-v2',
96+
style: 'topographic-v2',
9797
},
9898
{
99-
name: 'topographic-3857-mount-cook-village-z12',
99+
name: 'topographic-v2-3857-mount-cook-village-z12',
100100
tileMatrix: TileMatrixIdentifier.Google,
101101
location: { lat: -43.717227, lng: 170.0844837, z: 12 },
102-
tileSet: 'topographic',
103-
style: 'topographic',
102+
tileSet: 'topographic-v2',
103+
style: 'topographic-v2',
104104
},
105105
{
106-
name: 'topolite-3857-ngauranga-z15',
106+
name: 'topolite-v2-3857-ngauranga-z15',
107107
tileMatrix: TileMatrixIdentifier.Google,
108108
location: { lat: -41.2454458, lng: 174.8101136, z: 15 },
109-
tileSet: 'topographic',
110-
style: 'topolite',
109+
tileSet: 'topographic-v2',
110+
style: 'topolite-v2',
111111
},
112112
{
113-
name: 'topolite-3857-z17',
113+
name: 'topolite-v2-3857-z17',
114114
tileMatrix: TileMatrixIdentifier.Google,
115115
location: { lat: -43.8063936, lng: 172.9679876, z: 17 },
116-
tileSet: 'topographic',
117-
style: 'topolite',
116+
tileSet: 'topographic-v2',
117+
style: 'topolite-v2',
118118
},
119119
{
120120
name: 'aerial-3857-terrain-hillshade-z6',
@@ -142,20 +142,20 @@ export const DefaultTestTiles: TestTile[] = [
142142
terrain: 'LINZ-Terrain',
143143
},
144144
{
145-
name: 'topographic-3857-terrain-hillshade-z12',
145+
name: 'topographic-v2-3857-terrain-hillshade-z12',
146146
tileMatrix: TileMatrixIdentifier.Google,
147147
location: { lat: -42.4146988, lng: 174.1766669, z: 5 },
148-
tileSet: 'topographic',
149-
style: 'topographic',
148+
tileSet: 'topographic-v2',
149+
style: 'topographic-v2',
150150
terrain: 'LINZ-Terrain',
151151
hillshade: 'LINZ-Terrain',
152152
},
153153
{
154-
name: 'topolite-3857-hillshade-z4',
154+
name: 'topolite-v2-3857-hillshade-z4',
155155
tileMatrix: TileMatrixIdentifier.Google,
156156
location: { lat: -41.6092133, lng: 173.0748696, z: 4 },
157-
tileSet: 'topographic',
158-
style: 'topolite',
157+
tileSet: 'topographic-v2',
158+
style: 'topolite-v2',
159159
hillshade: 'LINZ-Terrain',
160160
},
161161
{
@@ -182,4 +182,34 @@ export const DefaultTestTiles: TestTile[] = [
182182
tileSet: 'topo-raster',
183183
style: 'topo-raster',
184184
},
185+
186+
// TODO: We will keep support for these tilesets for 90 days, please remove the tests after deprecating
187+
{
188+
name: 'topographic-3857-z8',
189+
tileMatrix: TileMatrixIdentifier.Google,
190+
location: { lat: -39.2169833, lng: 176.4774344, z: 8 },
191+
tileSet: 'topographic',
192+
style: 'topographic',
193+
},
194+
{
195+
name: 'topolite-3857-z8',
196+
tileMatrix: TileMatrixIdentifier.Google,
197+
location: { lat: -39.2169833, lng: 176.4774344, z: 8 },
198+
tileSet: 'topographic',
199+
style: 'topolite',
200+
},
201+
{
202+
name: 'topographic-3857-mount-cook-village-z12',
203+
tileMatrix: TileMatrixIdentifier.Google,
204+
location: { lat: -43.717227, lng: 170.0844837, z: 12 },
205+
tileSet: 'topographic',
206+
style: 'topographic',
207+
},
208+
{
209+
name: 'topolite-3857-ngauranga-z15',
210+
tileMatrix: TileMatrixIdentifier.Google,
211+
location: { lat: -41.2454458, lng: 174.8101136, z: 15 },
212+
tileSet: 'topographic',
213+
style: 'topolite',
214+
},
185215
];

0 commit comments

Comments
 (0)