-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): Update a preview url for zoom level changes. #2699
Conversation
@@ -176,7 +176,7 @@ export class CommandImport extends CommandLineAction { | |||
let msg = ' - Zoom level updated.'; | |||
if (layer.minZoom !== existing.minZoom) msg += ` min zoom ${existing.minZoom} -> ${layer.minZoom}`; | |||
if (layer.maxZoom !== existing.maxZoom) msg += ` max zoom ${existing.maxZoom} -> ${layer.maxZoom}`; | |||
change.push(`${msg}\n`); | |||
change.push(`${msg} -- [Aerial]((${PublicUrlBase}?config=${this.config.value}&debug))\n`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this url should be added to the next if statements? we are going to need both NZTM and Webmercator links?
What happens if the zoom changes and the layer id changes? going to get a bunch of links?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, we shouldn't end up with too many links. I have update this only have a default aerial preview link if only zoom level change and layer id not change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
if (layer[3857] && layer[3857] !== existing[3857]) { | ||
if (layer[3857]) { | ||
const urls = await this.prepareUrl(layer[3857], mem, GoogleTms); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need brackets here.
No description provided.