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

Added found_style attribute for SearchControl #640

Merged
merged 3 commits into from
Jul 3, 2020

Conversation

sackh
Copy link
Contributor

@sackh sackh commented Jul 1, 2020

Signed-off-by: Kharude, Sachin [email protected]

Hi @martinRenou,

Added found_style attribute for SearchControl, now the user can specify his own style for the searched feature.
Please review.

…yle if provided else the default style

Signed-off-by: Kharude, Sachin <[email protected]>
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

js/src/controls/SearchControl.js Outdated Show resolved Hide resolved
@@ -18,6 +18,7 @@ export class LeafletSearchControlModel extends control.LeafletControlModel {
auto_collapse: false,
zoom:10,
animate_location:false,
found_style: {},
Copy link
Member

Choose a reason for hiding this comment

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

The default value JavaScript side does not match the one Python side (this makes a difference when using embedded widgets)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@martinRenou
Copy link
Member

Thanks a lot!

@martinRenou martinRenou merged commit f784a8a into jupyter-widgets:master Jul 3, 2020
@martinRenou martinRenou deleted the found_style branch July 3, 2020 14:45
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.

2 participants