mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
fixed small errors.
This commit is contained in:
@@ -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
@@ -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: []};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user