Small fixes
This commit is contained in:
parent
fb13485983
commit
dd8f5e549e
5 changed files with 9 additions and 4 deletions
|
@ -14,7 +14,7 @@ export class GhostBike extends LayerDefinition {
|
|||
" in the form of a white bicycle placed permanently near the accident location.";
|
||||
|
||||
this.minzoom = 1;
|
||||
|
||||
this.icon = "./assets/bike.svg"
|
||||
this.presets = [
|
||||
{
|
||||
title: "Ghost bike",
|
||||
|
|
|
@ -39,7 +39,8 @@ export class CustomLayersPanel extends UIElement {
|
|||
if(layout.name === CustomLayout.NAME){
|
||||
continue;
|
||||
}
|
||||
if (layout.hideFromOverview && State.state.osmConnection.userDetails.data.name !== "Pieter Vander Vennet") {
|
||||
if (layout.hideFromOverview &&
|
||||
State.state.osmConnection.userDetails.data.name !== "Pieter Vander Vennet") {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ export class OsmConnection {
|
|||
const iframeMode = window !== window.top;
|
||||
|
||||
|
||||
if (pwaStandAloneMode || iframeMode) {
|
||||
if ( iframeMode) {
|
||||
// In standalone mode, we DON'T use single page login, as 'redirecting' opens a new window anyway...
|
||||
// Same for an iframe...
|
||||
this.auth = new osmAuth({
|
||||
|
|
|
@ -96,7 +96,7 @@ export class ShareScreen extends UIElement {
|
|||
this._iframeCode = new VariableUiElement(
|
||||
url.map((url) => {
|
||||
return `<span class='literal-code iframe-code-block'>
|
||||
<iframe src="${url}" title="${layout.name} with MapComplete"></iframe>
|
||||
<iframe src="${url}" style="width:100%;height:100%" title="${layout.name} with MapComplete"></iframe>
|
||||
</span>`
|
||||
})
|
||||
);
|
||||
|
|
4
preferences.ts
Normal file
4
preferences.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import {OsmConnection} from "./Logic/Osm/OsmConnection";
|
||||
|
||||
|
||||
const connection = new OsmConnection(false, undefined);
|
Loading…
Reference in a new issue