-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
fix map zoom settings #17367
fix map zoom settings #17367
Conversation
💚 Build Succeeded |
if (tilemapsConfig.deprecated.isOverridden) {//use tilemap.* settings from yml | ||
const tmsService = _.cloneDeep(tmsOptionsFromConfig); | ||
tmsService.url = tilemapsConfig.deprecated.config.url; | ||
tmsService.id = 'Tilemap layer in yml'; | ||
tmsService.id = 'TMS in config/kibana.yml'; |
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.
made this a bit more descriptive
return allServices; | ||
|
||
const servicesFromManifest = await this._loadTMSServices(); | ||
return allServices.concat(servicesFromManifest); |
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.
merges both services (config/yml config as well as EMS-manifest config)
@@ -167,12 +170,10 @@ export function BaseMapsVisualizationProvider(serviceSettings) { | |||
} | |||
|
|||
async _setTmsLayer(tmsLayer) { | |||
if (tmsLayer.maxZoom < this._kibanaMap.getMaxZoomLevel()) { |
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.
this was the bug. This check only worked in the wrong direction. ie. being in a current config with more zoom levels, and having to snap back because the new config has fewer zoom levels. But it should work the other way around as well. If you have more zoom levels, it should enable these too.
💚 Build Succeeded |
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.
lgtm
I am sorry to comment on a closed ticket, but are you sure that the problem with the higher zoom-levels was solved? |
@kingigi thank you, can confirm. Looking into it |
@kingigi sorry, made a mistake, was looking at wrong release. Please ensure you have the layer selected: e.g.: And make sure the kibana.yml is configured.
|
@thomasneirynck : Check. |
@kingigi you will have to resave your visualization. The max-zoom setting is saved with the saved-object in the .kibana index. Can you recreate the visualization and let me know if it persists? thx |
Hi @thomasneirynck, |
Does a couple of things: