Skip to content

Commit 0c99017

Browse files
committed
do not decode raster source URL
1 parent 7dcc506 commit 0c99017

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/plots/mapbox/layers.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -202,21 +202,16 @@ function convertOpts(opts) {
202202
function 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;

0 commit comments

Comments
 (0)