New answers tagged style
0
votes
Accepted
GeoServer renders blue and red backgrounds occasionally
I removed the mbtiles layers from the layer group and only let the style remain there. The map renders correctly now.
The issue was probably that the layers were being rendered multiple times, once ...
1
vote
Is it possible to create Rule-Based Styling with $geometry intersecting a second layer?
Yes, it is possible. In the 'rule based' symbology, choose the rule to be:
intersects($geometry, geometry(get_feature('layer name', 'attribute field name', 'value')))
Let's say you want your layer to ...
0
votes
How to set different style and name for each feature individually OpenLayers
You have to use a 'style' function on your vector layer definition. It will be called for each feature before rendering and should return the corresponding style.
var layer = new ol.layer.Vector({
...
6
votes
How to remove rectangle around label
These rectangle are probably "candidate position" (ie. emplacement the labelling engine consider while placing label, the placement engine choose the best candidate relative to your setting ...
1
vote
Accepted
Leaflet geoJSON - function within setStyle()
Since style_new function returns style object, it must not be embedded in the object specifiers {} when you call it, so code should look like this:
this.map_layer.eachLayer(function (layer: any) {
...
8
votes
Applying different style to each sub-part of multi-part geometry using QGIS
Here is an example using QGIS 3.24.2-Tisler and data from a PostGIS (PG:14-3.2) database.
First create some dummy data in a PostGIS database:
-- DROP TABLE IF EXISTS public.measurement;
CREATE TABLE ...
1
vote
QGIS multitude rule-based labelling returns wrong label order
By using this thread:
Multiple labels for one layer in QGIS
We can simply attach another value to our current formula and build the label from two values
"Length (m)" || 'm ' || "...
0
votes
QGIS layer styling, "symbology" - automate delete and reclassify
If the field name of the layers is the same you can create a list of the 20 layers you have to update and use this script of this answer by @Ben W like this :
field_name = "name_of_your_field&...
1
vote
QGIS ordering categorized styling doesn't work
For fine tuning of the rendering, you can use the symbol level and set the desired order. This setting, compared to @Babel easiest solution, lets you draw various part of a symbol at various zlevel (...
2
votes
Accepted
QGIS ordering categorized styling doesn't work
Use Control feature rendering order (see documentation) at the very bottom of the Layer Styling panel: Epxand Layer Rendering, check the box next to Control feature rendering order, click the A/Z icon ...
3
votes
OpenLayers GeometryCollection styling issue
Problem is that you are referencing global value labelInput.value when defining text label in the style. This causes style to always reflect current value of labelInput.value when styling features.
...
3
votes
Accepted
Change layer popup style of KML served by GeoServer WMS service?
You need to add the freemarker templates yourself, GeoServer uses default ones from its internal libraries if they are not found in the data directory.
See this tutorial for a guide with examples, on ...
Top 50 recent answers are included
Related Tags
style × 1176qgis × 600
geoserver × 159
symbology × 114
sld × 91
openlayers × 84
openlayers-2 × 74
pyqgis × 56
arcgis-desktop × 49
leaflet × 48
qgis-3 × 47
vector × 47
layers × 46
polygon × 44
labeling × 44
raster × 42
line × 41
qgis-2 × 41
javascript × 35
wms × 32
color × 31
postgis × 30
openstreetmap × 29
geojson × 29
qml × 28