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 ability to modify the leaflet-control-container #52

Closed
michaelryancaputo opened this issue Jul 25, 2015 · 3 comments
Closed

Add ability to modify the leaflet-control-container #52

michaelryancaputo opened this issue Jul 25, 2015 · 3 comments

Comments

@michaelryancaputo
Copy link

Leaflet automatically adds leaflet-top leaflet-left to the +/- buttons. I can't seem to figure out how to control the class' here.

@PaulLeCam
Copy link
Owner

If this is default Leaflet behavior, it's Leaflet's documentation you should refer to.

@michaelryancaputo
Copy link
Author

Thanks, I am familiar with the Leaflet API, however, I don't quite understand how I can access getLeafletElement() to modify it.

@PaulLeCam
Copy link
Owner

You only need to add a ref to the <Map /> component to access it from its parent, as you would for any other React component.
You can check this example that accesses the Map's leafletElement.

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

2 participants