Dialog fix for impending new C++ feature - reset scratch lon/lat before executing 'nearest'.
This commit is contained in:
parent
e5c87ff77a
commit
98f75bed75
1 changed files with 5 additions and 0 deletions
|
@ -376,6 +376,11 @@
|
|||
<script>
|
||||
copySearchArgs();
|
||||
scratch.getNode("max-results", 1).setIntValue(10);
|
||||
|
||||
# ensure scratch pos is invalid, so we use current GPS
|
||||
# position as the search origin
|
||||
scratch.getNode("longitude-deg", 1).setDoubleValue(-9999);
|
||||
scratch.getNode("latitude-deg", 1).setDoubleValue(-9999);
|
||||
cmd.setValue("nearest")
|
||||
</script>
|
||||
</binding>
|
||||
|
|
Loading…
Add table
Reference in a new issue