forked from MapComplete/MapComplete
Update to the import viewers
This commit is contained in:
parent
fa179af601
commit
f09134c3be
26 changed files with 303 additions and 413 deletions
26
test.ts
26
test.ts
|
@ -1,24 +1,4 @@
|
|||
import {Utils} from "./Utils";
|
||||
import {FixedUiElement} from "./UI/Base/FixedUiElement";
|
||||
import Loading from "./UI/Base/Loading";
|
||||
|
||||
const features = []
|
||||
for (let lat = 49; lat < 52; lat+=0.05) {
|
||||
for (let lon = 2.5; lon < 6.5; lon+=0.025) {
|
||||
features.push({
|
||||
type:"Feature",
|
||||
properties: {},
|
||||
geometry:{
|
||||
type:"Point",
|
||||
coordinates: [lon, lat]
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const geojson = {
|
||||
type:"FeatureCollection",
|
||||
features
|
||||
}
|
||||
|
||||
Utils.offerContentsAsDownloadableFile(JSON.stringify(geojson, null, " "), "raster.geojson",{
|
||||
mimetype:"application/geo+json"
|
||||
})
|
||||
new Loading(new FixedUiElement("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")).AttachTo("maindiv")
|
Loading…
Add table
Add a link
Reference in a new issue