Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
5de14c3574 | |||
b05a81c0fe | |||
1fd91613a9 | |||
e5c3111094 | |||
a99835c0c5 |
2 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@ export default class Constants {
|
|||
tagsVisibleAt: 25,
|
||||
mapCompleteHelpUnlock: 50,
|
||||
tagsVisibleAndWikiLinked: 30,
|
||||
themeGeneratorReadOnlyUnlock: 50,
|
||||
themeGeneratorFullUnlock: 500,
|
||||
themeGeneratorReadOnlyUnlock: 1,
|
||||
themeGeneratorFullUnlock: 1,
|
||||
addNewPointWithUnreadMessagesUnlock: 500,
|
||||
minZoomLevelToAddNewPoints: (Constants.isRetina() ? 18 : 19),
|
||||
|
||||
|
|
|
@ -43,8 +43,8 @@ export default class CustomGeneratorPanel extends UIElement {
|
|||
const es = new UIEventSource(layout);
|
||||
const encoded = es.map(config => LZString.compressToBase64(Utils.MinifyJSON(JSON.stringify(config, null, 0))));
|
||||
encoded.addCallback(encoded => LocalStorageSource.Get("last-custom-theme"))
|
||||
const liveUrl = encoded.map(encoded => `./index.html?userlayout=${es.data.id}#${encoded}`)
|
||||
const testUrl = encoded.map(encoded => `./index.html?test=true&userlayout=${es.data.id}#${encoded}`)
|
||||
const liveUrl = encoded.map(encoded => `https://mapcomplete.osm.be/index.html?userlayout=${es.data.id}#${encoded}`)
|
||||
const testUrl = encoded.map(encoded => `https://mapcomplete.osm.be/index.html?test=true&userlayout=${es.data.id}#${encoded}`)
|
||||
const iframe = testUrl.map(url => `<iframe src='${url}' width='100%' height='99%' style="box-sizing: border-box" title='Theme Preview'></iframe>`);
|
||||
const currentSetting = new UIEventSource<SingleSetting<any>>(undefined)
|
||||
const generalSettings = new GeneralSettings(es, currentSetting);
|
||||
|
|
Loading…
Add table
Reference in a new issue