Skip to content

Conversation

jperelli
Copy link
Owner

I saw this code on a fork and am opening this PR.

notes to my future self on the code

@@ -43,6 +43,10 @@ program
"Url of a tileserver",
"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
)
.option(
"-sub, --tileSubdomains <string>",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add one char option

Comment on lines +133 to +150
{{#if tileSubdomains }}
L.tileLayer(
'{{{tileserverUrl}}}',
{
subdomains: {{{tileSubdomains}}},
maxZoom: maxZoom,
fadeAnimation: false
}
).addTo(map);
{{else}}
L.tileLayer(
'{{{tileserverUrl}}}',
{
maxZoom: maxZoom,
fadeAnimation: false
}
).addTo(map);
{{/if}}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this if only in the subdomains part of the code

Suggested change
{{#if tileSubdomains }}
L.tileLayer(
'{{{tileserverUrl}}}',
{
subdomains: {{{tileSubdomains}}},
maxZoom: maxZoom,
fadeAnimation: false
}
).addTo(map);
{{else}}
L.tileLayer(
'{{{tileserverUrl}}}',
{
maxZoom: maxZoom,
fadeAnimation: false
}
).addTo(map);
{{/if}}
L.tileLayer(
'{{{tileserverUrl}}}',
{
{{#if tileSubdomains }}
subdomains: {{{tileSubdomains}}},
{{/if}}
maxZoom: maxZoom,
fadeAnimation: false
}
).addTo(map);

@jperelli jperelli force-pushed the master branch 8 times, most recently from 2092cc6 to b831ced Compare July 15, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant