Skip to content

awikile_h

Bankn8II©$A edited this page Dec 4, 2024 · 9 revisions

https://github.com/aibolem/Leaflet.DistortableImage/wiki/

This wiki is still growing, feel free to participate!

Existing pages so far:

var imageBounds=[

https://www.wrld3d.com/wrld.js/v0.1.1335/docs/leaflet/L.ImageOverlay/

useEffect(() => {
      if (map && layer) {
        layer.addTo(map);
        layer.setOpacity(0.7);
      }
    }, [layer]);

https://github.com/publiclab/Leaflet.DistortableImage/issues/1391

function imageStyle(){

        return{ opacity:0.5,}   
                }       
var imageBounds=[
 [-22.0,22.5],
 [-26.18,25.452]
 ]
var imageLayer=L.imageOverlay(imageUrl,imageBounds).addTo(map);
//imageLayer.setOpacity( 0.5);

OR

L.imageOverlay(imageUrl, imageBounds, {opacity: 0.5}).addTo(map);

Clone this wiki locally