-
Notifications
You must be signed in to change notification settings - Fork 19
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
Highest compatible version #6
Comments
The 1.0dev branch should work with 1.x versions. Haven't tested it with 1.3, though. Let me give it a try. |
Hm, also the combination leaflet v. 1.0.3 and tilefilter 1.0dev doesen't work. I get the error "Cannot read property 'cssText' tilefilter of undefined"... Leaflet 0.7 and tilefilter master branch works fine |
Updated the 1.0dev branch. Do you still get this issue? |
Yes, still the same error (Leaflet 1.0.3 + tilefilter 1.0dev): leaflet-tilefilter-v1.js:903 Uncaught TypeError: Cannot read property 'cssText' of undefined |
Weird. Let me take another look. It seems like the |
I pushed an update to 1.0dev that should at the very least prevent this error from occurring. Still unsure what could be causing this. Any chance you could share a sample of your code? |
Thanks for your effort! Now i tried with leaflet v1.0 and tilefilter 1, and i don't get any error anymore. I'm using map data from the swiss government (https://api3.geo.admin.ch/services/sdiservices.html). This is how i initialize the map: ` var url = 'https://wmts20.geo.admin.ch/1.0.0/ch.swisstopo.vec25-gebaeude/default/current/3857/{z}/{x}/{y}.jpeg';
` Working map with leaflet 0.7 and tilefilter can be seen here: http://regionale2025.ch.inn.host.ch/cms/projekte/#map |
I pushed a fix that I think will solve your issue. The code wasn't respecting the var tilelayer = new L.tileLayer('https://wmts20.geo.admin.ch/1.0.0/ch.swisstopo.vec25-gebaeude/default/20090401/3857/{z}/{x}/{y}.png', {
minZoom: 13,
maxZoom: 15,
cssFilter: L.ImageFilters.GenerateCSSFilter(['contrast(160%)', 'saturate(0%)', 'brightness(94%)']),
detectRetina: true
}); |
Great, it works now! (Although only with the simplified way of creating a filter) Thank you very much, i really appreciate your filter plugin. We are happy to use that swiss map instead of google maps and couldn't have used it without tilefilter (beacuase all layers have awful colors). |
Hi,
What is the highest compatible leaflet version that works with your filter plugin? 0.7 seems fine, 1.3 doesn't work.
Thanks
The text was updated successfully, but these errors were encountered: