@@ -127,7 +127,7 @@ describe('leaflet_TiandituTileLayer', () => {
127
127
expect ( layer . options . key ) . toBe ( '123456' ) ;
128
128
expect ( layer . _url ) . toBe ( 'https://t{s}.tianditu.gov.cn/cia_w/wmts?tk=123456' ) ;
129
129
expect ( layer . getTileUrl ( coords ) ) . toBe (
130
- 'https://t0.tianditu.gov.cn/cia_w/wmts?tk=123456& service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0'
130
+ 'https://t0.tianditu.gov.cn/cia_w/wmts?service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0&tk=123456 '
131
131
) ;
132
132
} ) ;
133
133
@@ -139,12 +139,12 @@ describe('leaflet_TiandituTileLayer', () => {
139
139
key : '123456'
140
140
} ) . addTo ( map ) ;
141
141
expect ( layer . getTileUrl ( coords ) ) . toBe (
142
- 'https://t0.tianditu.gov.cn/cia_w/wmts?tk=123456& service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0'
142
+ 'https://t0.tianditu.gov.cn/cia_w/wmts?service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0&tk=123456 '
143
143
) ;
144
144
layer . remove ( ) ;
145
145
layer . addTo ( map ) ;
146
146
expect ( layer . getTileUrl ( coords ) ) . toBe (
147
- 'https://t0.tianditu.gov.cn/cia_w/wmts?tk=123456& service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0'
147
+ 'https://t0.tianditu.gov.cn/cia_w/wmts?service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0&tk=123456 '
148
148
) ;
149
149
} ) ;
150
150
it ( 'initialize_noWrap_false' , ( ) => {
@@ -156,7 +156,7 @@ describe('leaflet_TiandituTileLayer', () => {
156
156
key : '123456'
157
157
} ) . addTo ( map ) ;
158
158
expect ( layer . getTileUrl ( coords ) ) . toBe (
159
- 'https://t0.tianditu.gov.cn/cia_w/wmts?tk=123456& service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0'
159
+ 'https://t0.tianditu.gov.cn/cia_w/wmts?service=WMTS&request=GetTile&version=1.0.0&style=default&tilematrixSet=w&format=tiles&width=256&height=256&layer=cia&tilematrix=2&tilerow=0&tilecol=0&tk=123456 '
160
160
) ;
161
161
expect ( document . querySelectorAll ( '.leaflet-tile' ) . length ) . toBeGreaterThan ( 4 ) ;
162
162
} ) ;
0 commit comments