More work on cyclestreet layout, add loading of layers depending on zoom level
This commit is contained in:
parent
3576a4b1e1
commit
9a5b35b9f3
17 changed files with 109 additions and 59 deletions
|
@ -34,7 +34,7 @@ export class MoreScreen extends UIElement {
|
|||
|
||||
const currentLocation = State.state.locationControl.data;
|
||||
let linkText =
|
||||
`./${layout.name}.html?z=${currentLocation.zoom}&lat=${currentLocation.lat}&lon=${currentLocation.lon}`
|
||||
`./${layout.name.toLowerCase()}.html?z=${currentLocation.zoom}&lat=${currentLocation.lat}&lon=${currentLocation.lon}`
|
||||
|
||||
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
|
||||
linkText = `./index.html?layout=${layout.name}&z=${currentLocation.zoom}&lat=${currentLocation.lat}&lon=${currentLocation.lon}`
|
||||
|
@ -80,16 +80,16 @@ export class MoreScreen extends UIElement {
|
|||
|
||||
|
||||
for (const k in AllKnownLayouts.allSets) {
|
||||
|
||||
|
||||
const layout : Layout = AllKnownLayouts.allSets[k];
|
||||
if (k === PersonalLayout.NAME) {
|
||||
if (State.state.osmConnection.userDetails.data.csCount < State.userJourney.customLayoutUnlock) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
els.push(this.createLinkButton(AllKnownLayouts.allSets[k]));
|
||||
if(layout.name !== k){
|
||||
continue; // This layout was added multiple time due to an uppercase
|
||||
}
|
||||
els.push(this.createLinkButton(layout));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -239,7 +239,12 @@ export default class Translations {
|
|||
fr: 'Est-ce que la pompe à un manomètre integré?',
|
||||
gl: 'Ten a bomba de ar un indicador de presión ou un manómetro?'
|
||||
}),
|
||||
yes: new T({en: 'There is a manometer', nl: 'Er is een luchtdrukmeter', fr: 'Il y a un manomètre'}),
|
||||
yes: new T({
|
||||
en: 'There is a manometer',
|
||||
nl: 'Er is een luchtdrukmeter',
|
||||
fr: 'Il y a un manomètre',
|
||||
gl: 'Hai manómetro'
|
||||
}),
|
||||
no: new T({
|
||||
en: 'There is no manometer',
|
||||
nl: 'Er is geen luchtdrukmeter',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue