Skip to content

[maps] globe projection#212437

Merged
nreese merged 26 commits intoelastic:mainfrom
nreese:globe
Mar 4, 2025
Merged

[maps] globe projection#212437
nreese merged 26 commits intoelastic:mainfrom
nreese:globe

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Feb 25, 2025

Screenshot 2025-02-25 at 11 35 32 AM

PR does the following

  • Updates maplibre to 5.1.1. Maplibre 5.0 introduced the globe projection
  • Updates sample data maps to use new globe projection
  • Existing maps will use existing "mercator" projection
  • Adds globe projection to newly created maps
  • Adds projection setting, allowing users to switch between classic "mercator" and new "globeInterpolate" projection
    Screenshot 2025-02-25 at 11 35 41 AM

@nreese
Copy link
Contributor Author

nreese commented Feb 25, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 25, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 25, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 25, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 26, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 26, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 26, 2025

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Feb 26, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 26, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Feb 26, 2025

/ci

@nreese nreese marked this pull request as ready for review February 26, 2025 23:33
@nreese nreese requested review from a team as code owners February 26, 2025 23:33
@nreese nreese added release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Feb 26, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
@kbn/mapbox-gl 1 0 -1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
maps 2.9MB 3.0MB +155.2KB
visTypeVega 1.9MB 2.0MB +154.3KB
total +309.6KB
Unknown metric groups

API count

id before after diff
@kbn/mapbox-gl 592 587 -5

miscellaneous assets size

id before after diff
maps 886.7KB 923.4KB +36.7KB
visTypeVega 499.4KB 536.1KB +36.7KB
total +73.5KB

History

@nickpeihl nickpeihl self-requested a review March 3, 2025 20:15
Copy link
Contributor

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

lgtm! Code review and tested multiple layer types. The source/destination maps look amazing.

And it looks like embedded maps can even use the projection: 'globeInterpolation' setting. (I hacked in a change to test this in Lens choropleth charts 😄 )

Mar-03-2025.15-50-36.mp4

Copy link
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Amazing! Love it!

@nreese nreese merged commit 037e8f5 into elastic:main Mar 4, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/13644234330

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- Update renovate.json and remove unnecessary deps (#212214)
- [scout] enable eslint plugin playwright (#210666)

Manual backport

To create the backport manually run:

node scripts/backport --pr 212437

Questions ?

Please refer to the Backport tool documentation

@nreese
Copy link
Contributor Author

nreese commented Mar 4, 2025

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

nreese added a commit to nreese/kibana that referenced this pull request Mar 4, 2025
<img width="600" alt="Screenshot 2025-02-25 at 11 35 32 AM"
src="https://github.com/user-attachments/assets/2567e20c-1223-4001-9866-edbe8c534350"
/>

PR does the following
* Updates maplibre to 5.1.1. Maplibre 5.0 introduced the globe
projection
* Updates sample data maps to use new globe projection
* Existing maps will use existing "mercator" projection
* Adds globe projection to newly created maps
* Adds `projection` setting, allowing users to switch between classic
"mercator" and new "globeInterpolate" projection
<img width="400" alt="Screenshot 2025-02-25 at 11 35 41 AM"
src="https://github.com/user-attachments/assets/5c55003b-dbe9-4adc-835c-0a2911c81074"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 037e8f5)

# Conflicts:
#	x-pack/platform/plugins/shared/maps/public/classes/sources/ems_tms_source/ems_tms_source.tsx
#	yarn.lock
nreese added a commit that referenced this pull request Mar 4, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[maps] globe projection
(#212437)](#212437)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-03-04T01:31:05Z","message":"[maps]
globe projection (#212437)\n\n<img width=\"600\" alt=\"Screenshot
2025-02-25 at 11 35
32 AM\"\nsrc=\"https://github.com/user-attachments/assets/2567e20c-1223-4001-9866-edbe8c534350\"\n/>\n\nPR
does the following\n* Updates maplibre to 5.1.1. Maplibre 5.0 introduced
the globe\nprojection\n* Updates sample data maps to use new globe
projection\n* Existing maps will use existing \"mercator\" projection\n*
Adds globe projection to newly created maps\n* Adds `projection`
setting, allowing users to switch between classic\n\"mercator\" and new
\"globeInterpolate\" projection\n<img width=\"400\" alt=\"Screenshot
2025-02-25 at 11 35
41 AM\"\nsrc=\"https://github.com/user-attachments/assets/5c55003b-dbe9-4adc-835c-0a2911c81074\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"037e8f58e0af20b006243ee1f28b4d1e5414ab8d","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:Presentation","Feature:Maps","backport:version","v9.1.0","v8.19.0"],"title":"[maps]
globe
projection","number":212437,"url":"https://github.com/elastic/kibana/pull/212437","mergeCommit":{"message":"[maps]
globe projection (#212437)\n\n<img width=\"600\" alt=\"Screenshot
2025-02-25 at 11 35
32 AM\"\nsrc=\"https://github.com/user-attachments/assets/2567e20c-1223-4001-9866-edbe8c534350\"\n/>\n\nPR
does the following\n* Updates maplibre to 5.1.1. Maplibre 5.0 introduced
the globe\nprojection\n* Updates sample data maps to use new globe
projection\n* Existing maps will use existing \"mercator\" projection\n*
Adds globe projection to newly created maps\n* Adds `projection`
setting, allowing users to switch between classic\n\"mercator\" and new
\"globeInterpolate\" projection\n<img width=\"400\" alt=\"Screenshot
2025-02-25 at 11 35
41 AM\"\nsrc=\"https://github.com/user-attachments/assets/5c55003b-dbe9-4adc-835c-0a2911c81074\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"037e8f58e0af20b006243ee1f28b4d1e5414ab8d"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212437","number":212437,"mergeCommit":{"message":"[maps]
globe projection (#212437)\n\n<img width=\"600\" alt=\"Screenshot
2025-02-25 at 11 35
32 AM\"\nsrc=\"https://github.com/user-attachments/assets/2567e20c-1223-4001-9866-edbe8c534350\"\n/>\n\nPR
does the following\n* Updates maplibre to 5.1.1. Maplibre 5.0 introduced
the globe\nprojection\n* Updates sample data maps to use new globe
projection\n* Existing maps will use existing \"mercator\" projection\n*
Adds globe projection to newly created maps\n* Adds `projection`
setting, allowing users to switch between classic\n\"mercator\" and new
\"globeInterpolate\" projection\n<img width=\"400\" alt=\"Screenshot
2025-02-25 at 11 35
41 AM\"\nsrc=\"https://github.com/user-attachments/assets/5c55003b-dbe9-4adc-835c-0a2911c81074\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"037e8f58e0af20b006243ee1f28b4d1e5414ab8d"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@nreese nreese mentioned this pull request Mar 4, 2025
1 task
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
<img width="600" alt="Screenshot 2025-02-25 at 11 35 32 AM"
src="https://github.com/user-attachments/assets/2567e20c-1223-4001-9866-edbe8c534350"
/>

PR does the following
* Updates maplibre to 5.1.1. Maplibre 5.0 introduced the globe
projection
* Updates sample data maps to use new globe projection
* Existing maps will use existing "mercator" projection
* Adds globe projection to newly created maps
* Adds `projection` setting, allowing users to switch between classic
"mercator" and new "globeInterpolate" projection
<img width="400" alt="Screenshot 2025-02-25 at 11 35 41 AM"
src="https://github.com/user-attachments/assets/5c55003b-dbe9-4adc-835c-0a2911c81074"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Maps release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants