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) {
202202function convertSourceOpts ( opts ) {
203203 var sourceType = opts . sourcetype ;
204204 var source = opts . source ;
205- var sourceOpts = {
206- type : sourceType
207- } ;
205+ var sourceOpts = { type : sourceType } ;
208206 var field ;
207+
209208 if ( sourceType === 'geojson' ) {
210209 field = 'data' ;
211210 } else if ( sourceType === 'vector' ) {
212211 field = typeof source === 'string' ? 'url' : 'tiles' ;
213212 } else if ( sourceType === 'raster' ) {
214213 field = 'tiles' ;
215214 sourceOpts . tileSize = 256 ;
216- for ( var index = 0 ; index < source . length ; index ++ ) {
217- var url = source [ index ] ;
218- source [ index ] = decodeURIComponent ( url ) ;
219- }
220215 }
221216
222217 sourceOpts [ field ] = source ;
You can’t perform that action at this time.
0 commit comments