Skip to content

Commit

Permalink
Merge pull request streetcomplete#321 from Teester/quest_priority
Browse files Browse the repository at this point in the history
Display quests on the map in order of importance
  • Loading branch information
westnordost authored Jun 13, 2017
2 parents 6501ee5 + cca1bcf commit 22599d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/assets/streetcomplete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ layers:
draw:
quest-icons:
interactive: true
priority: 0
priority: function() { return feature.importance }
size: 64px
sprite: function() { return feature.kind }
sprite_default: quest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ public void addQuests(Iterable quests, QuestGroup group)
geoJson.append(MARKER_QUEST_ID);
geoJson.append("\":\"");
geoJson.append(quest.getId());
geoJson.append("\",\"");
geoJson.append("importance");
geoJson.append("\":\"");
geoJson.append(quest.getType().importance());
geoJson.append("\"}}");
}
geoJson.append("]}");
Expand Down

0 comments on commit 22599d3

Please sign in to comment.