Skip to content

[Maps] add fit to bounds button#28801

Merged
thomasneirynck merged 29 commits intoelastic:masterfrom
thomasneirynck:maps/add_fittobounds
Jan 25, 2019
Merged

[Maps] add fit to bounds button#28801
thomasneirynck merged 29 commits intoelastic:masterfrom
thomasneirynck:maps/add_fittobounds

Conversation

@thomasneirynck
Copy link
Copy Markdown
Contributor

@thomasneirynck thomasneirynck commented Jan 15, 2019

Closes #28524

This also refactors the es-search-sources, consolidating shared code, and rename abstract class names for clarity.


in progress, this is just an outline

@thomasneirynck thomasneirynck added WIP Work in progress v7.0.0 Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v6.7.0 labels Jan 15, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-gis

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Comment thread x-pack/plugins/gis/public/store/map.js Outdated
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@cchaos
Copy link
Copy Markdown
Contributor

cchaos commented Jan 24, 2019

Here is a PR4U: thomasneirynck#3

Also, I still consistently get the base layer name not showing up on new maps and the Longitude decimal being way too long.

As well as the toggle visibility button doesn't seem to work

@thomasneirynck
Copy link
Copy Markdown
Contributor Author

thomasneirynck commented Jan 24, 2019

sweet, thx @cchaos

the visibility is fixed with #29275

the missing base-layer name, not 100% sure, looking into it

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@nreese
Copy link
Copy Markdown
Contributor

nreese commented Jan 25, 2019

Zoom visibility tooltip overlaps action panel. Maybe the tooltip needs to go up or something

screen shot 2019-01-24 at 6 45 32 pm

Comment thread x-pack/plugins/gis/public/components/layer_panel/view.js Outdated
Comment thread x-pack/plugins/gis/public/components/map/mb/view.js Outdated
import _ from 'lodash';
import { connect } from 'react-redux';
import { TOCEntry } from './toc_entry';
import { TOCEntry } from './view';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are you renaming this to view? It is a lot more difficult in the debugger and IDE when every file is called view. Why not name the view files so there is less name collision?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

consistency with namings for our other components that use an index file

Copy link
Copy Markdown
Contributor

@nreese nreese Jan 25, 2019

Choose a reason for hiding this comment

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

But why not go the other way, and rename all view.js files to aNameThatActuallyMeansSomething.js? Seems like reverting to view.js goes backwards

},
},
{
name: 'Change visibility',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The toggle visibility text should be dynamic
this.props.layer.isVisible() ? 'hide layer' : 'show layer'

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
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.

lgtm with green CI
code review, tested changes in chrome

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@thomasneirynck thomasneirynck merged commit 15b14b0 into elastic:master Jan 25, 2019
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Jan 25, 2019
@cchaos
Copy link
Copy Markdown
Contributor

cchaos commented Jan 25, 2019

Just one more thing. When the layer is hidden (via the Show/Hide layer button) can you change the layer icon to be the eyeClosed icon? That way it's more obvious to the user that the layer is completely hidden versus just hidden from zoom level.

@cchaos
Copy link
Copy Markdown
Contributor

cchaos commented Jan 25, 2019

OH nm, looks like you merged already.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@thomasneirynck
Copy link
Copy Markdown
Contributor Author

@cchaos too eager... yeah, I can change that to eye-closed..

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

Labels

Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v6.7.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants