Move pdf-export GUI into index
This commit is contained in:
parent
b912343805
commit
c5170e61bf
3 changed files with 8 additions and 7 deletions
|
@ -3,6 +3,7 @@ import AllThemesGui from "./UI/AllThemesGui"
|
|||
import { QueryParameters } from "./Logic/Web/QueryParameters"
|
||||
import StatisticsGUI from "./UI/StatisticsGUI"
|
||||
import { FixedUiElement } from "./UI/Base/FixedUiElement"
|
||||
import {PdfExportGui} from "./UI/BigComponents/PdfExportGui";
|
||||
|
||||
const layout = QueryParameters.GetQueryParameter("layout", undefined).data ?? ""
|
||||
const customLayout = QueryParameters.GetQueryParameter("userlayout", undefined).data ?? ""
|
||||
|
@ -42,6 +43,12 @@ if (mode.data === "statistics") {
|
|||
console.log("Statistics mode!")
|
||||
new FixedUiElement("").AttachTo("centermessage")
|
||||
new StatisticsGUI().SetClass("w-full h-full pointer-events-auto").AttachTo("topleft-tools")
|
||||
} else if(mode.data === "pdf"){
|
||||
new FixedUiElement("").AttachTo("centermessage")
|
||||
const div = document.createElement("div")
|
||||
div.id = "extra_div_for_maps"
|
||||
new PdfExportGui(div.id).AttachTo("topleft-tools")
|
||||
document.getElementById("topleft-tools").appendChild(div)
|
||||
} else {
|
||||
new AllThemesGui().setup()
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
"add_images": "Voeg foto's toe met een paar klikken",
|
||||
"attributes": "Attributen worden getoond op begrijpbare wijze",
|
||||
"edit": "Foute of verouderde gegevens? Aanpassen kan hier",
|
||||
"question": "Is een attribuut nog niet gekend? MapComplete toont een vraag",
|
||||
"question": "Is een attribuut nog niet gekend?\nMapComplete toont een vraag",
|
||||
"see_images": "Toont afbeeldingen van eerdere bijdragers, Wikipedia, Mapillary, ...",
|
||||
"wikipedia": "Gelinkte Wikipedia-artikelen worden getoond"
|
||||
},
|
||||
|
|
6
test.ts
6
test.ts
|
@ -1,6 +0,0 @@
|
|||
import MinimapImplementation from "./UI/Base/MinimapImplementation";
|
||||
import {PdfExportGui} from "./UI/BigComponents/PdfExportGui";
|
||||
|
||||
MinimapImplementation.initialize()
|
||||
|
||||
new PdfExportGui("extradiv").AttachTo("maindiv")
|
Loading…
Reference in a new issue