Skip to content

Fix #3523 add coordinated editor in search bar#3524

Merged
tdipisa merged 4 commits intogeosolutions-it:masterfrom
MV88:coordinate_search
Feb 14, 2019
Merged

Fix #3523 add coordinated editor in search bar#3524
tdipisa merged 4 commits intogeosolutions-it:masterfrom
MV88:coordinate_search

Conversation

@MV88
Copy link
Copy Markdown
Contributor

@MV88 MV88 commented Feb 13, 2019

Description

This pr will add coordinate editor (decimal or aeronautical) in the search bar

image
image

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
you cannot zoom to a specific point with the search bar in the ma viewer

What is the new behavior?
you can configure the search bar to show a coordinate editor and use it to zoom into a specific point
zoom level is configurable, for more details see the issue

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:
It will also add support for overlay vector layers in the additionallayers state

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 14, 2019

Coverage Status

Coverage increased (+26.7%) to 80.789% when pulling 34b057b on MV88:coordinate_search into 54348a9 on geosolutions-it:master.

@tdipisa tdipisa requested review from allyoucanmap and removed request for allyoucanmap and offtherailz February 14, 2019 09:34
const UPDATE_ADDITIONAL_LAYER = 'ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER';
const UPDATE_OPTIONS_BY_OWNER = 'ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER';
const REMOVE_ADDITIONAL_LAYER = 'ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER';
const REMOVE_ALL_ADDITIONAL_LAYER = 'ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYER';
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.

REMOVE_ALL_ADDITIONAL_LAYERS

* @memberof actions.additionallayers
* @return {object} of type `REMOVE_ALL_ADDITIONAL_LAYER`
*/
const removeAllAdditionalLayer = () => ({
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.

removeAllAdditionalLayers

/**
This component can render an input field in two different formats: 'decimal' or 'aeronautical'
*/
class CoordinateEntry extends React.Component {
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.

This is not annotations related, I would move it elsewhere

}} = {}) => {
const renderButtons = () => buttons.map(
({ visible = true, ...props }, index) => visible
? (isFunction(props.el) && <props.el key={props.key || index} {...props} /> || <ToolbarButton key={props.key || index} {...btnDefaultProps} {...props} />)
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.

isFunction won't catch any possible component type. Do you need el in the ToolbarButton use case? If not, you can simply check if props.el is defined here.

@tdipisa tdipisa merged commit 3d9f8d6 into geosolutions-it:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address and coordinate search

4 participants