-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Maps] add fit to bounds button #28801
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
Changes from all commits
0a7fb90
64e0f86
04fb07f
3383d0d
3d9ecd2
73a1747
05c7ba0
7ebcbb3
c5eea52
df66b1e
3f9a0d3
1e70874
a218805
4a90d74
776d395
ab57327
05e4669
ec4d050
c12bb4e
cc6ff14
f252dc8
5100de5
f69365b
82978c8
5016435
d7bed68
b63fe4f
7baf4c7
4c5366a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,9 +6,9 @@ | |
|
|
||
| import _ from 'lodash'; | ||
| import { connect } from 'react-redux'; | ||
| import { TOCEntry } from './toc_entry'; | ||
| import { TOCEntry } from './view'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you renaming this to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. consistency with namings for our other components that use an index file
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But why not go the other way, and rename all |
||
| import { updateFlyout, FLYOUT_STATE } from '../../../../../store/ui'; | ||
| import { setSelectedLayer, toggleLayerVisible } from '../../../../../actions/store_actions'; | ||
| import { fitToLayerExtent, setSelectedLayer, toggleLayerVisible } from '../../../../../actions/store_actions'; | ||
|
|
||
| function mapStateToProps(state = {}) { | ||
| return { | ||
|
|
@@ -22,7 +22,12 @@ function mapDispatchToProps(dispatch) { | |
| dispatch(setSelectedLayer(layerId)); | ||
| dispatch(updateFlyout(FLYOUT_STATE.LAYER_PANEL)); | ||
| }, | ||
| toggleVisible: layerId => dispatch(toggleLayerVisible(layerId)) | ||
| toggleVisible: layerId => { | ||
| dispatch(toggleLayerVisible(layerId)); | ||
| }, | ||
| fitToBounds: (layerId) => { | ||
| dispatch(fitToLayerExtent(layerId)); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| @import './map_listing'; | ||
| @import './visibility_toggle'; |
Uh oh!
There was an error while loading. Please reload this page.