Commit f7fd5171 authored by Adrien Pavie's avatar Adrien Pavie
Browse files

Support of ; separated mapillary values

parent 3cbeb1cf
...@@ -294,8 +294,13 @@ Feature.prototype._detail = function(osmKey, d) { ...@@ -294,8 +294,13 @@ Feature.prototype._detail = function(osmKey, d) {
Feature.prototype._mapillaryKeys = function() { Feature.prototype._mapillaryKeys = function() {
var result = []; var result = [];
for(var k in this._feature.tags) { for(var k in this._feature.tags) {
if(k.indexOf("mapillary") == 0 && this._feature.tags[k].match(/[a-zA-Z0-9_\-]{22}/)) { if(k.indexOf("mapillary") == 0) {
result.push(this._feature.tags[k]); var mp = this._feature.tags[k].split(';');
for(var mpid = 0; mpid < mp.length; mpid++) {
if(mp[mpid].match(/[a-zA-Z0-9_\-]{22}/)) {
result.push(mp[mpid]);
}
}
} }
} }
return result; return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment