-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kibana maps shows MVT borders if the geometry border style is greater than 1 #150187
Comments
Pinging @elastic/kibana-presentation (Team:Presentation) |
Ran an investigation to find buffer value for various border sizes that did not show lines. Below are the results. The function buffer 4 buffer 7 buffer 10 buffer 14 buffer 17 buffer 20 buffer 25 buffer 28 |
…le is greater than 1 (#150497) Fixes #150187 PR passes buffer to kibana MVT route which passes buffer to Elasticsearch vector tile API. Buffer is set based on line width style property. <img width="600" alt="Screen Shot 2023-02-07 at 2 43 15 PM" src="https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…le is greater than 1 (#150497) Fixes #150187 PR passes buffer to kibana MVT route which passes buffer to Elasticsearch vector tile API. Buffer is set based on line width style property. <img width="600" alt="Screen Shot 2023-02-07 at 2 43 15 PM" src="https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit f439bdc)
…er style is greater than 1 (#150497) (#150758) # Backport This will backport the following commits from `main` to `8.7`: - [[Maps] fixes Kibana maps shows MVT borders if the geometry border style is greater than 1 (#150497)](#150497) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-02-09T18:07:54Z","message":"[Maps] fixes Kibana maps shows MVT borders if the geometry border style is greater than 1 (#150497)\n\nFixes https://github.com/elastic/kibana/issues/150187\r\n\r\nPR passes buffer to kibana MVT route which passes buffer to\r\nElasticsearch vector tile API. Buffer is set based on line width style\r\nproperty.\r\n\r\n<img width=\"600\" alt=\"Screen Shot 2023-02-07 at 2 43 15 PM\"\r\nsrc=\"https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"f439bdc2b3fe7caa20ff5375460cc9659c6a76db","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","auto-backport","Feature:Maps","v8.7.0","v8.8.0"],"number":150497,"url":"https://github.com/elastic/kibana/pull/150497","mergeCommit":{"message":"[Maps] fixes Kibana maps shows MVT borders if the geometry border style is greater than 1 (#150497)\n\nFixes https://github.com/elastic/kibana/issues/150187\r\n\r\nPR passes buffer to kibana MVT route which passes buffer to\r\nElasticsearch vector tile API. Buffer is set based on line width style\r\nproperty.\r\n\r\n<img width=\"600\" alt=\"Screen Shot 2023-02-07 at 2 43 15 PM\"\r\nsrc=\"https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"f439bdc2b3fe7caa20ff5375460cc9659c6a76db"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150497","number":150497,"mergeCommit":{"message":"[Maps] fixes Kibana maps shows MVT borders if the geometry border style is greater than 1 (#150497)\n\nFixes https://github.com/elastic/kibana/issues/150187\r\n\r\nPR passes buffer to kibana MVT route which passes buffer to\r\nElasticsearch vector tile API. Buffer is set based on line width style\r\nproperty.\r\n\r\n<img width=\"600\" alt=\"Screen Shot 2023-02-07 at 2 43 15 PM\"\r\nsrc=\"https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"f439bdc2b3fe7caa20ff5375460cc9659c6a76db"}}]}] BACKPORT--> Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
While testing kibana and ES for 8.7.0 release, I noticed that when adding document layer with polygon geometries and I set the layer style border width to a value greater than 1, the border got thicker as expected, but also the borders of the vector tiles became visible. This would seem to indicate that the vector tile buffer is being overridden. The buffer should default to 5 pixels, allowing us to increase the border quite a bit before it becomes visible.
I used the inspector to look at the MVT query, and this made be think of two fields that could affect this:
4096
which is the default, so does not really need to be sent5
, but perhaps it should be sent, based on the border thicknessCould it be that since the vector tiles are much smaller than 4096 pixels, they are being scaled down, and therefor the 5 pixel buffer is too small a fraction of the 4096 to be enough for the increased border? I think either reduce the extent, or increase the buffer.
The text was updated successfully, but these errors were encountered: