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

Add possibility to pass custom options to search action #1192

Merged
merged 1 commit into from
Oct 24, 2016

Conversation

manisandro
Copy link
Contributor

To implement a coordinate search which can search in the currently specified coordinate system, the search handler needs to know the current CRS.

@simboss simboss added the ready label Oct 24, 2016
@@ -38,7 +38,8 @@ let SearchBar = React.createClass({
blurResetDelay: React.PropTypes.number,
typeAhead: React.PropTypes.bool,
searchText: React.PropTypes.string,
style: React.PropTypes.object
style: React.PropTypes.object,
displaycrs: React.PropTypes.string
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you using this in a custom search action? Probably we could just introduce a generic searchOptions object (where you can put crs and other stuff if you need them) to be passed through to the action. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep makes sense, done.

@manisandro manisandro changed the title Pass selected display CRS to search action Add possibility to pass custom options to search action Oct 24, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.9% when pulling faaaab5 on sourcepole:crs_search_action into eeb7fd5 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 80.807% when pulling faaaab5 on sourcepole:crs_search_action into eeb7fd5 on geosolutions-it:master.

@mbarto mbarto merged commit 3c17884 into geosolutions-it:master Oct 24, 2016
@mbarto mbarto removed the ready label Oct 24, 2016
@manisandro manisandro deleted the crs_search_action branch October 24, 2016 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants