Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
how to dynamical opacity on geoTiff in Openlayers

I am trying to set opacity to my geoTiff controled by the user with a slider on the map. Tried taking slider id and setting opacity but it doesn't work.

<label>Opacidad PGA <input id="sliderRaster" class="opacity" type="range" /> </label>

Javascript

function example(){
.
.
.
$("#sliderRaster").slider({
        min: 0,
        max: 100,
        value: 100,
        slide: function(event, e) {
            tiffRaster.setOpacity(e.value / 100);
        },
        disabled: false
    });
    tiffRaster = new ol.layer.Image({
        title: 'PGA(gal)',
        // extent: [-180, -90, -180, 90],
        source: new ol.source.ImageWMS({
            url: 'http://fadasml.ncva13bn.pe:8080/geoserver/fadasml/wms',
            params: {
                'LAYERS': 'fadasml:' + f
            },
            ratio: 1,
            serverType: 'geoserver'
        })
    });
    

    map.addLayer(tiffRaster);
.
.
.
}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!