Skip to content

Commit d57e8a3

Browse files
author
hisham waleed karam
committed
fix syntax test
1 parent f419fab commit d57e8a3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/plots/mapbox/layers.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,16 @@ function convertSourceOpts(opts) {
206206
type: sourceType
207207
};
208208
var field;
209-
if (sourceType === 'geojson') {
209+
if(sourceType === 'geojson') {
210210
field = 'data';
211-
} else if (sourceType === 'vector') {
211+
} else if(sourceType === 'vector') {
212212
field = typeof source === 'string' ? 'url' : 'tiles';
213-
} else if (sourceType === 'raster') {
213+
} else if(sourceType === 'raster') {
214214
field = 'tiles';
215-
sourceOpts['tileSize'] = 256;
216-
for (let index = 0; index < source.length; index++) {
217-
const url = source[index];
215+
sourceOpts.tileSize = 256;
216+
for(var index = 0; index < source.length; index++) {
217+
var url = source[index];
218218
source[index] = decodeURIComponent(url);
219-
220219
}
221220
}
222221

@@ -229,6 +228,6 @@ module.exports = function createMapboxLayer(mapbox, index, opts) {
229228
var mapboxLayer = new MapboxLayer(mapbox, index);
230229

231230
mapboxLayer.update(opts);
232-
231+
233232
return mapboxLayer;
234233
};

0 commit comments

Comments
 (0)