Is there a way in Leaflet or a Leaflet plugin that lets you mask an ImageLayer from a GeoJSON layer? I know that a backend can mask the images for you then return the masked image to Leaflet but I am hoping there might be a way? Maybe clear the opacity of the image if its outside the bounds of the GeoJSON layer? I just have to check before I develop the backend to this instead.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.