fixed small errors.

This commit is contained in:
vershwal
2018-06-11 18:08:53 +05:30
parent 570bb62197
commit 2b02a44eea
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -173,9 +173,9 @@ export function rendererBackground(context) {
var mvt = context.layers().layer('mvt');
if (mvt && mvt.enabled() && mvt.hasMvt()) {
// Include a string like '.mvt data file' or '.geojson data file'
var match = mvt.getSrc().match(/(pbf|mvt|(?:geo)?json)$/i);
var extension = match ? ('.' + match[0].toLowerCase() + ' ') : '';
imageryUsed.push(extension + 'data file');
var matchmvt = mvt.getSrc().match(/(pbf|mvt|(?:geo)?json)$/i);
var extensionmvt = matchmvt ? ('.' + matchmvt[0].toLowerCase() + ' ') : '';
imageryUsed.push(extensionmvt + 'data file');
}
var mapillary_images = context.layers().layer('mapillary-images');
+1 -1
View File
@@ -132,7 +132,7 @@ export function svgMvt(projection, context, dispatch) {
var tile = new vt.VectorTile(new Protobuf(x));
var layers = Object.keys(tile.layers);
if (!Array.isArray(layers))
layers = [layers]
layers = [layers];
var collection = {type: 'FeatureCollection', features: []};