Questions tagged [opacity]

The condition of lacking transparency or translucence; opaqueness.

Filter by
Sorted by
Tagged with
3 votes
2 answers
64 views

QGIS - symbol transparency not working when using string-defined fill colour

I want to fill and outline polygons by using a field that contains HEX codes as a string, e.g. #99d594, as well as set the fill opacity to 25%. I'm able to set the colours with the right field through ...
user avatar
  • 33
2 votes
0 answers
99 views

QGIS: Legend patches do not honor opacity [closed]

Background: At 3.22.3 I have a slope raster (32-bit floating point, single-band tif) derived from a DTM. I display this using a discrete interpolation, with three value ranges: 0-20, 20-40, and 40-90 ...
user avatar
  • 7,069
5 votes
1 answer
105 views

Applying conditional label opacity in QGIS

I'm working with QGIS 3.16 Hannover. I've got one layer with all Spanish provinces (provincias) and, on top of it, several layers with the regions (AND, ARA, AST...). Each province pertains to one ...
user avatar
  • 2,315
0 votes
0 answers
99 views

Set fill transparency at 0% but keep line at 100% PyQGIS

I am trying to make the color of my buffer totally transparent, but I want to keep the stroke fully colored. I tried the following : color1 = QtGui.QColor('#f3a6b2') #or whatever, as it will be ...
user avatar
  • 83
0 votes
0 answers
40 views

Why does Leaflet overlay display depend on baselayer selection? [duplicate]

I have a Leaflet map with a button that turns overlays, and overlay opacity control, on and off. Overlays are loaded transparently, can have their opacity adjusted and then can be collectively be ...
user avatar
0 votes
1 answer
197 views

Layer opacity qgis2web leaflet export

I am exporting my map with qgis2web and I would like to export the opacity of my layers as well. It does not work, somebody has an idea?
user avatar
0 votes
2 answers
199 views

Change opacity of the layer with range slider

I want to change the opacity of the layer with a range slider (input type="range") when scrolling here is my layer code in main.js: const UnTiled = new ol.layer.Image({ opacity:0....
user avatar
  • 67
1 vote
1 answer
165 views

QGIS - Layer Rendering Opacity not being kept when exporting atlas

I have changed the layer opacity of a polygon layer to 50% (works in both project and layout views) but when I regenerate and export an atlas, those polygons are at 100% opacity again. Is there an ...
user avatar
  • 11
2 votes
1 answer
95 views

QGIS: multiplying of symbology transparency

In order to export partly transparent symbology to PDF in QGIS as vectors, the symbology itself needs to have transparency – if the whole layer is sat to be transparent, the symbology gets rasterized. ...
user avatar
1 vote
1 answer
159 views

OpenLayers setting opacity without disappearing the edge that marks it

I'm trying to set the transparency of the polygons on the map. This works and I can save them in the database with this code: $('#constructii_trasp').on('change', function(){ ...
user avatar
7 votes
3 answers
191 views

Visualizing polyline with decreasing opacity towards its ends in QGIS

For a mapping project I am looking for a method how to visualize a polyline where the ends increase in opacity such that it will look like its fades away using QGIS 3.10.10. See the red circle in the ...
user avatar
  • 1,066
2 votes
0 answers
53 views

Split features maintaining ordnance survey map details in QGIS

I'm trying to split a polygon drawn over an ordnance survey map area that represents the total land of a farm, in order to create smaller polygons that represent individual fields. I wish to create ...
user avatar
6 votes
2 answers
330 views

QGIS shortcut to transparency

Is there a shortcut key to increase or decrease layer transparency, or to add the opacity slider to a layer in QGIS? I couldn't find one in the existing shortcut key list and I tried loading the ...
user avatar
0 votes
0 answers
61 views

OpenLayers6 TileArcGISRest LAYERS param doesn't allow to modify and transparency of the features

I am trying to modify the transparency of the features ans I don't have a clue about how to do it. The site https://openlayers.org/en/latest/apidoc/module-ol_source_TileArcGISRest.html refers to ...
user avatar
1 vote
0 answers
74 views

QGIS: "Wikimedia unlabelled layer" opacity

I'm using QGIS and I want to show a section of the basemap "Wikimedia unlabelled layer" (from the OpenLayers plugin) in full colouring. But even if in the Properties box opacity is set to 100, still ...
user avatar
1 vote
0 answers
192 views

Setting Opacity Dynamically in fill-opacity

I am trying to use a map I made in Mapbox Studio and data I have locally in js code to change the opacity on different countries on a map. In my dataLayer, I define the layer as such: const ...
user avatar
  • 11
2 votes
1 answer
151 views

QGIS - Change opacity of heat map in selected boundaries

I've only started using QGIS recently (used MapInfo). I would like to change the opacity of a heat map so that the areas within a political boundary has a different opacity than other areas. Would I ...
user avatar
  • 25
0 votes
2 answers
371 views

QGIS: separately adjust a polygon layer's fill and boundary opacity?

At 3.10.3, adjusting a polygon layer's opacity affects both the fill and the outer boundary stroke simultaneously, as shown in this screenshot: I want to separately adjust the fill and boundary ...
user avatar
  • 7,069
1 vote
0 answers
39 views

Font opacity in QGIS [closed]

I am setting this font to be only 30% opaque but the display and printing of the font is not changing. What am I missing?
user avatar
2 votes
0 answers
416 views

Displaying rendered layers in 3D Maps in QGIS 3.8.x with variable transparency/opacity

I am looking at using QGIS to help facilitate conversations/do some thinking in 3D. I have tried both QGis2threejs and the native 3D Map available in QGIS 3.x and both have their strengths. The ...
user avatar
  • 21
4 votes
2 answers
2k views

Change Opacity of Style

Is there any convenient way to change the opacity of a ol.style.Fill or ol.style.Stroke Object? As far as I understand it, there are 2 ways to define a color with an opacity. fill.color = [255,0,0,...
user avatar
  • 1,121
2 votes
2 answers
161 views

Borders appear when reducing the global opacity of multiple raster images in QGIS 3.2.3

I want to reduce the opacity of multiple raster images and when I use the global opacity slider to do so, black borders appear between my images. I would want to eliminate these borders.
user avatar
  • 21
0 votes
1 answer
2k views

Opacity Transition Mapbox Fade In

I am facing a problem using the 'fill-opacity-transition' in Mapbox GL JS. Maybe someone has an idea what the mistake could be? <!DOCTYPE html> <html> <head> <...
user avatar
2 votes
2 answers
2k views

Creating opacity mask in Google Earth Engine?

I have an NDSI snow layer loaded in Google Earth Engine. Since snow is present for values <0.4, I want to make values >0.4 opaque. I looked at the manual's examples, but this code is not giving me ...
user avatar
22 votes
2 answers
22k views

Setting layer transparency in QGIS 3

I just switched from QGIS 2.18 to version 3.0.3. In the earlier version, setting layer transparency was easily done with the "transparency" slider from the Layer properties->style tab. ...
user avatar
  • 435
0 votes
0 answers
213 views

Is a TIFF with a 1-byte/px band and RGBA(?) palette and a 1-byte/px Alpha band valid?

I have a process (see how to preserve color-interpretation when merging TIFFs and adding alpha band) which produces a TIFFs (download example image1 17.6 MB) with the following gdalinfo output: ...
user avatar
  • 1,370
0 votes
1 answer
44 views

Carto builder, opacity is set at 0 but publishing at 1

I'm working on a Carto map for a client, so I set up a new Carto account for them today. I'm building it in Carto Builder, using the GUI. (For this job, I need to just use the GUI, not get into ...
user avatar
3 votes
1 answer
4k views

How to add layer opacity slider in Openlayers 4 and qgis2web

I am using qgis2web to publish a webmap, and then modifying the code to add features that I want. I am now adding a Tiled image from imagescale folders (e.g. \15 \16 \17 \18 and so forth). Using the ...
user avatar
1 vote
1 answer
215 views

Want L.OpacityControls to activate after selecting an overlayLayer

Edited to show working code. Although not working 100% and it involves some ugly workarounds which I assume are fixable. Original problem: I'm using L.control.layers to display a selection of layers. ...
user avatar
  • 859
1 vote
0 answers
147 views

Create a slide to control opacity for layers [closed]

I am starting with my programming skills. I m self learning so I am stuck in this point I am trying to create a web map where charge few different layers (wms) but I would like to give functionality ...
user avatar
1 vote
2 answers
4k views

Link Leaflet opacity slider to uppermost layer

From the Leaflet.OpacityControls plugin, you can add an opacity slider to a tiled layer by: var opacitySlider = new L.Control.opacitySlider(); map.addControl(opacitySlider); opacitySlider....
user avatar
  • 1,249
0 votes
1 answer
546 views

Changing opacity of map outside feature in OpenLayers 3?

I want to change opacity of map outside feature (which is closed polygon) in OpenLayers 3. Is it possible?
user avatar
  • 103
4 votes
2 answers
17k views

Leaflet - Opacity method for L.tileLayer.wms?

I want to use opacity on one of my WMS layers in Leaflet. The documentation has an opacity option for L.tileLayer but not explicitly for L.tileLayer.wms, I only see a transparent option (not supported ...
user avatar
  • 1,593
1 vote
1 answer
2k views

Set background color and opacity for a WKT layer vector in OpenLayers3

I have this function: function drawLayer(wktRegion, name,colour = "transparent"){ var format = new ol.format.WKT(); var feature = format.readFeature(wktRegion); feature.getGeometry()...
user avatar
  • 143
3 votes
0 answers
302 views

How to increase Compression Memory for ECW Opacity Builder

I am attempting to build opacity within an ECW file using ECW_Opacity_Builder.exe from APOLLO Essential Utilities 2014, which has worked flawlessly many times before. When attempting to build opacity ...
user avatar
0 votes
1 answer
295 views

OpenLayers Get Opacity

I understand how to set opactity to a map layer in OSM but how do you get the opacity? Perhaps something like layer.getOpacity() OpenLayers.Util.getElement('opacity').value = layer.??? I have ...
user avatar
  • 11
5 votes
1 answer
1k views

How to set opacity with gdal_rasterize

I am using gdal_rasterize to create a raster of a huge file containing polygons. I managed to generate the raster file with the right color and with the minimum size to tile it after with the ...
user avatar
  • 113
4 votes
2 answers
16k views

how to create translucent objects in KML?

I've been able to create a KML file that shows a circle on my (Google Earth) map. Now I would like to have a translucent fill on the circle. I'm new to KML, so I'm learning by trial-and-error with ...
user avatar
2 votes
1 answer
96 views

Why QGIS 2.12 "forgets" selection colour opacity settings?

I have few vector layers which I need to edit frequently. I'd like to be able to see through the layer when it's selected. I changed selection colour from both: Project Properties General settings and ...
user avatar
  • 341
2 votes
1 answer
4k views

Leaflet Opacity Control Using Slider For Bootstrap

I am attempting to use the Slider For Bootstrap to update the opacity of a layer within Leaflet. The slider also needs to be in a Bootstrap Popup but this part is working. As per this JSFiddle you ...
user avatar
5 votes
1 answer
7k views

SLD fill-opacity not having any effect

I am attempting to draw a WMS layer consisting of multiple polygons of different colours and an opacity of 0.4. The relevant part of my SLD is <PolygonSymbolizer> <Fill> ...
user avatar
0 votes
1 answer
2k views

Applying partial opacity in WMS layer using OpenLayers?

I am working on a GIS API, and I can't share the code, so I will try to explain what I want. I want to apply a style map on a single layer, where I have some elements with opacity 1 and others with ...
user avatar
7 votes
2 answers
8k views

Load or display differents geojson data on zoom level for leaflet maps

I have a map with 3 levels of information. The first is the country, the second the state and the last one the cities. I wonder know if it's possible to use the zoom value in order to display the ...
user avatar
4 votes
2 answers
2k views

OpenLayers - cannot set layer opacity

I have the following problem: by default, you can simply change the opacity of layer by writing for example: layer.setOpacity(0.3); But when I add it to my map SelectFeature controls, my layer is ...
user avatar
  • 51
14 votes
2 answers
21k views

Make Leaflet map background transparent

How can I make the background of the Leaflet map transparent. I see opacity controls from the layers, but not the map background. Should the be changed just with plain CSS?
user avatar
  • 3,485