File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -202,21 +202,16 @@ function convertOpts(opts) {
202
202
function convertSourceOpts ( opts ) {
203
203
var sourceType = opts . sourcetype ;
204
204
var source = opts . source ;
205
- var sourceOpts = {
206
- type : sourceType
207
- } ;
205
+ var sourceOpts = { type : sourceType } ;
208
206
var field ;
207
+
209
208
if ( sourceType === 'geojson' ) {
210
209
field = 'data' ;
211
210
} else if ( sourceType === 'vector' ) {
212
211
field = typeof source === 'string' ? 'url' : 'tiles' ;
213
212
} else if ( sourceType === 'raster' ) {
214
213
field = 'tiles' ;
215
214
sourceOpts . tileSize = 256 ;
216
- for ( var index = 0 ; index < source . length ; index ++ ) {
217
- var url = source [ index ] ;
218
- source [ index ] = decodeURIComponent ( url ) ;
219
- }
220
215
}
221
216
222
217
sourceOpts [ field ] = source ;
You can’t perform that action at this time.
0 commit comments