-
Notifications
You must be signed in to change notification settings - Fork 880
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
How to use with leaflet-grayscale? #143
Comments
Hi, please refer to the creating custom components section of the documentation. |
Ok thanks, will fiddle around with it. |
Hey @josdejong, saw your issue when I was looking for tips on how to do the same thing. I got a custom component working with leaflet-bing, might help you http://www.stefangordon.com/display-bing-tiles-in-react-leaflet/ |
Thanks @stefangordon, good to know. I solved it by applying a simple css grayscale transform using a regular, colored tile set: .leaflet-tile-pane {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
} |
Thanks or writing react-leaflet, works like a charm!
I was trying to use
leaflet-grayscale
withinreact-leaflet
, but I have no clue how to translateL.titleLayer.grayscale(url, options)
to an equivalent React syntax.Any ideas?
The text was updated successfully, but these errors were encountered: