Fix nogo area loading via URL (#405)
This commit is contained in:
parent
8fff1d15cd
commit
7abd8d61dc
1 changed files with 1 additions and 3 deletions
|
|
@ -189,9 +189,7 @@ BR.NogoAreas = L.Control.extend({
|
||||||
$('#nogoJSON').val(undefined);
|
$('#nogoJSON').val(undefined);
|
||||||
} else if (nogoURL) {
|
} else if (nogoURL) {
|
||||||
// TODO: Handle {{bbox}}
|
// TODO: Handle {{bbox}}
|
||||||
geoJSONPromise = fetch(nogoURL).then(function (response) {
|
geoJSONPromise = fetch(nogoURL).then((response) => response.json());
|
||||||
response.json();
|
|
||||||
});
|
|
||||||
} else if (nogoFile) {
|
} else if (nogoFile) {
|
||||||
geoJSONPromise = new Promise(function (resolve, reject) {
|
geoJSONPromise = new Promise(function (resolve, reject) {
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue