Skip to content

Conversation

@kindsun
Copy link
Contributor

@kindsun kindsun commented Apr 7, 2020

Resolves #62856. The x-pack TileMap plugin exists primarily as a license-check. Users with a license that permits usage of x-pack also get map tiles beyond zoom level 10 for legacy maps (Coordinate, Region and Vega). This license check is initially triggered in the plugin via uiExports > visTypeEnhancers and then executes an update to service_settings through angular.

The issue appears to be with the usage of visTypeEnhancers though it's not immediately clear where that issue lies. I could investigate this further but a couple facts:

  • This plugin is the only plugin using visTypeEnhancers. We may want to create a follow-up issue to just remove that code
  • This fix is being applied to version 7.7+, but versions 7.8+ will handle licensing differently (without this code) as part of Migrate legacy maps service to NP & update refs #60942

The simplest fix is to use hacks rather than visTypeEnhancers, which works as expected:

Basic license showing calls w/ license injected:

Screenshot_20200407_172349

OSS show calls w/o license injected:

Screenshot_20200407_164418

It's not entirely clear why one would use hacks vs. visTypeEnhancers but this use case appears to fit the general "hack guidelines" and I don't see the point of leveraging a separate type for this single, simple use case. With that said, I'm definitely open to pushback here.

I also noticed an issue which can also be seen on master where the map appears blank on OSS past zoom level 10. This may have been resolved by #60942 since I didn't see the same behavior there. If not, we may want to create a separate issue for it.

@kindsun kindsun added Feature:Coordinate Map Feature:Region Map Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.7.0 v7.8.0 labels Apr 7, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@kindsun kindsun requested a review from thomasneirynck April 7, 2020 23:28
@kindsun kindsun added the release_note:skip Skip the PR/issue when compiling release notes label Apr 7, 2020
@kindsun kindsun requested a review from timroes April 8, 2020 00:00
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

thanks for taking this on. tested and verified this works. nice work cleaning up this dangling issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Coordinate Map Feature:Region Map release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.7.0 v7.8.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Region and coordinate maps can no longer zoom beyond level 10 with default distribution

4 participants