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

Fgb highlight fix #101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

trafficonese
Copy link
Contributor

@trafficonese trafficonese commented Nov 28, 2024

  • This PR fixes issues with highlighting behavior (mouseout) in addFgb by correctly restoring the original style using a deep copy of the style object (with structuredClone and { ...style }). Previously, only the color property was partially supported, and its behavior was incorrect. See FGB attach by group, highlightOptions, label as function #85 for an example app.

  • Introduced the function updateStyleFromProperties to update the highlighted style, if the relevant function argument is NULL and the data has a property with this name (e.g.: color, weight, etc..).

  • Added some explanation to the @details section, outlining how to use direct styling arguments and feature-based styling from data properties. Addresses addFgb color depend on a variable? #87

I also simplified some map$dependencies calls and added Roxygen: list(markdown = TRUE) do the Description. This helps with rendering the docs correctly.

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.

1 participant