Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda