mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Calculate nearest streets only when needed
This commit is contained in:
@@ -82,7 +82,10 @@ iD.ui.preset.address = function(field, context) {
|
||||
.on('change', change);
|
||||
|
||||
street
|
||||
.call(d3.combobox().data(getStreets()));
|
||||
.call(d3.combobox()
|
||||
.fetcher(function(value, __, callback) {
|
||||
callback(getStreets());
|
||||
}));
|
||||
}
|
||||
|
||||
function change() {
|
||||
|
||||
Reference in New Issue
Block a user