Small fixes

This commit is contained in:
Pieter Vander Vennet 2020-07-31 21:54:30 +02:00
parent fb13485983
commit dd8f5e549e
5 changed files with 9 additions and 4 deletions

View file

@ -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",

View file

@ -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
}

View file

@ -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({

View file

@ -96,7 +96,7 @@ export class ShareScreen extends UIElement {
this._iframeCode = new VariableUiElement(
url.map((url) => {
return `<span class='literal-code iframe-code-block'>
&lt;iframe src="${url}" title="${layout.name} with MapComplete"&gt;&lt;/iframe&gt
&lt;iframe src="${url}" style="width:100%;height:100%" title="${layout.name} with MapComplete"&gt;&lt;/iframe&gt
</span>`
})
);

4
preferences.ts Normal file
View file

@ -0,0 +1,4 @@
import {OsmConnection} from "./Logic/Osm/OsmConnection";
const connection = new OsmConnection(false, undefined);