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

Custom icons no longer support color status indicators #339

Open
TurtIeSocks opened this issue Jul 12, 2023 · 0 comments
Open

Custom icons no longer support color status indicators #339

TurtIeSocks opened this issue Jul 12, 2023 · 0 comments

Comments

@TurtIeSocks
Copy link

Latest version of this lib no longer supports changing the color of the custom icon when the status is updated.

For example:

L.control.locate({
      position: 'bottomright',
      icon: 'fas fa-crosshairs',
      keepCurrentZoomLevel: true,
      setView: 'untilPan',
    })

When the location is found / following, the locate icon stays the same color, it doesn't shift to blue or orange. Likely introduced here: #296

Any solution for using custom icons and still having the color status changes?

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

No branches or pull requests

1 participant