New answers tagged

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 ...
user avatar
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 ...
user avatar
  • 11
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({ ...
user avatar
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 ...
user avatar
  • 11.8k
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) { ...
user avatar
  • 16.6k
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 ...
user avatar
  • 6,698
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 ' || "...
user avatar
  • 3,584
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&...
user avatar
  • 1,365
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 (...
user avatar
  • 34.3k
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 ...
user avatar
  • 40k
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. ...
user avatar
  • 16.6k
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 ...
user avatar
  • 15.5k

Top 50 recent answers are included