mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Tag changeset with Osmose issue closed counts
This seems more useful than tagging with a list of joined coordinates which quickly becomes truncated due to tag value length. Adds a tag per issue type similar to iDs own validation.
This commit is contained in:
@@ -150,9 +150,9 @@ export function uiCommit(context) {
|
||||
}
|
||||
}
|
||||
if (services.osmose) {
|
||||
var osmoseClosed = services.osmose.getClosedIDs();
|
||||
if (osmoseClosed.length) {
|
||||
tags['closed:osmose'] = osmoseClosed.join(';').substr(0, 255);
|
||||
var osmoseClosed = services.osmose.getClosedCounts();
|
||||
for (var issueType in osmoseClosed) {
|
||||
tags['closed:osmose:' + issueType] = osmoseClosed[issueType].toString().substr(0, 255);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user