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

Allow customizing which class gets used for LayersControl #1092

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

someonewithpc
Copy link

My company wants to use images inside the LayersControl, so this is intended to allow customizing the underlying L.Control class that gets instantiated for the <LayersControl> provided by this library. Used as

const MyLayersControl = CustomizableLayersControl(class extends L.Control.Layers {
  // ....
  // You'll likely want to override at least `_initLayout` and `_update`
});

See the added test for an example

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

1 participant