Skip to content
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

[Maps] Add global fit to data #64702

Merged
merged 7 commits into from May 5, 2020

Conversation

thomasneirynck
Copy link
Contributor

closes #29991

Adds a global fit button to the toolbar.

@thomasneirynck thomasneirynck added release_note:enhancement WIP Work in progress [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.8.0 labels Apr 28, 2020
@thomasneirynck thomasneirynck requested a review from a team as a code owner April 28, 2020 21:18
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

Nice work getting something ready in time for 7.8

The styling on the fit to bounds button is not quite right. I looks like it has a shadow on it and is slightly different in appearance from the buttons. Also the icon is not great.

Screen Shot 2020-04-28 at 3 40 38 PM

Outside of the scope of this PR, there should some UI feedback when layers are fitting to bounds. I think fit to bounds should use data request construct so layer TOC can show loading symbol when layers are fitting to bounds

@thomasneirynck thomasneirynck requested a review from a team as a code owner May 4, 2020 03:57
Copy link
Contributor

@miukimiu miukimiu left a comment

Choose a reason for hiding this comment

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

I tested locally and it seems good to me. I just added a comment.

@miukimiu
Copy link
Contributor

miukimiu commented May 4, 2020

I agree with @nreese that the icon is not great. But I think is consistent with this "fit to data":

Screenshot 2020-05-04 at 16 02 12

If you agree I can think of a better icon to these "fit to data" actions.

@thomasneirynck thomasneirynck requested a review from jsanz May 4, 2020 16:24
@nreese
Copy link
Contributor

nreese commented May 4, 2020

+1 on expand icon instead of the search icon

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

I would recommend using the expand icon here as well in layer actions menu. I think the search icon is not very intuitive.

lgtm
code review, tested in chrome

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@thomasneirynck thomasneirynck merged commit 602d102 into elastic:master May 5, 2020
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request May 5, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 5, 2020
* master: (133 commits)
  Cleanup Typescript index pattern field editor / Expression functions for bucket agg (elastic#65254)
  Removes legacy infra plugin and moves saved objects registration to NP (elastic#64848)
  Added support for docLinks plugin in Connectors forms and missing save capabilities for modal dialog (elastic#64986)
  [SIEM] Removes prebuilt rules number dependency (elastic#65128)
  [Maps] add categorical palettes with 20 and 30 categories (elastic#64701)
  [CI] Slack alerts - Elasticsearch snapshot failures (elastic#64724)
  [Uptime] Console errors in case index missing (elastic#65115)
  [SIEM][CASE] Dynamic fields mapping based on connector (elastic#64412)
  [test/functional] Tsfy page objects (elastic#64887)
  [Maps] [Telemetry] Track geo_point and geo_shape index patterns separately (elastic#65195)
  [Maps] Add global fit to data (elastic#64702)
  Visualize: Reload on ui state change and fix ui state for tsvb (elastic#63699)
  [SIEM] [Cases] External service selection per case (elastic#64775)
  [Uptime] Set ML anomaly look-back to 2w (from 24h) / Add spinner (elastic#65055)
  [Metrics UI] Remove APM Hard Dependency (elastic#64952)
  [Ingest] Datastream list: add icons and dashboard links (elastic#65048)
  disable plugins. they could access ES via SO repository (elastic#65242)
  Feature fleet enrollment instructions (elastic#65176)
  [SIEM] Adds 'Configure connector' Cypress test (elastic#64807)
  [TSVB] Fix std deviation band mode (elastic#64413)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:enhancement v7.8.0 v8.0.0 WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] Global fit data to bounds option
6 participants