You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Daniel - Thanks for awesome leaflet/georaster work. I am trying to explore adding canvas filters to georaster url image. Not sure where to start. Do you have any comment? Any response appreciated! Jeff
Far below is the javascript for display of single band geotif, with url, with defined hexcolors.
Hi, @zmcfire . Just wanted to say I saw this and think it's an awesome suggestion. I haven't done context filters before, so will have to read up. Perhaps an interim step could be exposing the canvas through a pre- or post-processing hook. Also open to PRs if it's something you'd like to take on. Have a great day!
Hi Daniel - Right now I am just using hrml5 css filter on the custom map pane which has some affect. I’ll dig in to better understand the relationship of the georaster resolution and resample values with the css filter. Thanks for responding! Jeff On Mar 4, 2023, at 8:21 AM, Daniel J. Dufour ***@***.***> wrote:
Hi, @zmcfire . Just wanted to say I saw this and think it's an awesome suggestion. I haven't done context filters before, so will have to read up. Perhaps an interim step could be exposing the canvas through a pre- or post-processing hook. Also open to PRs if it's something you'd like to take on. Have a great day!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
Hi Daniel - Thanks for awesome leaflet/georaster work. I am trying to explore adding canvas filters to georaster url image. Not sure where to start. Do you have any comment? Any response appreciated! Jeff
Far below is the javascript for display of single band geotif, with url, with defined hexcolors.
Something like:
<style type="text/css"> .myclass { filter: blur(5px); } </style>L.tileLayer(url, {className: 'myclass'});
Or Something like:
const canvas = document.getElementById("canvas");
const ctx = canvas.getContext("2d");
ctx.filter = "blur(4px)";
ctx.font = "48px serif";
ctx.fillText("Hello world", 50, 100);
Below this is working without filter:
// Add raster
console.log("Start raster");
map.createPane('gust');
map.getPane('gust').style.zIndex = 300;
map.getPane('gust').style.pointerEvents = 'none';
let gust1 = "http://localhost:1337/raster.tif";
}
});
});
});
console.log("END Raster");
The text was updated successfully, but these errors were encountered: