forked from MapComplete/MapComplete
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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue