Fix loading no-go areas
5b52abc1 broke importing no-go areas, in particular after choosing a file
and clicking on "Load" nothing would happen.
This is due to renaming the `<input>`'s `<id>` which is still referenced
in `NogoAreas.js` by its old name.
Undoing the rename resolves the issue.
Test Plan:
- Open "Load no-go areas" dialog.
- Click on "Browse" and select GeoJSON file (e.g. as referenced in #161).
- Click on "Load".
- The no-go areas should be added to the map.
This commit is contained in:
parent
f31c379369
commit
ef37b65c75
1 changed files with 4 additions and 7 deletions
11
index.html
11
index.html
|
|
@ -727,10 +727,7 @@
|
||||||
</div>
|
</div>
|
||||||
<p data-i18n="modal.or">or</p>
|
<p data-i18n="modal.or">or</p>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label
|
<label class="col-form-label col-sm-3" for="nogoFile" data-i18n="loadNogos.file"
|
||||||
class="col-form-label col-sm-3"
|
|
||||||
for="loadNogosFile"
|
|
||||||
data-i18n="loadNogos.file"
|
|
||||||
>File (.geojson)</label
|
>File (.geojson)</label
|
||||||
>
|
>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
|
|
@ -738,12 +735,12 @@
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept=".geojson"
|
accept=".geojson"
|
||||||
name="loadNogosFile"
|
name="nogoFile"
|
||||||
id="loadNogosFile"
|
id="nogoFile"
|
||||||
class="custom-file-input"
|
class="custom-file-input"
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
for="loadNogosFile"
|
for="nogoFile"
|
||||||
class="custom-file-label"
|
class="custom-file-label"
|
||||||
data-i18n="[data-browse]trackasroute.browse"
|
data-i18n="[data-browse]trackasroute.browse"
|
||||||
style="
|
style="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue