New answers tagged

0

Here's a workaround Create a new polygon layer. Add a field with the same name as the field you'll be using to classify the other vector layers. Add two polygons. Give one polygon the minimum value for that attribute, and give the other the maximum value. Set up a graduated style for the scratch layer with the desired number of classes (bins). Copy and ...


1

While invalid that SLD will probably work as GeoServer's parser is relatively forgiving of errors of this type. However, to fix it you need to place the Geometry tag at the start of the Symbolizer (the manual gives the correct order for the tags in a TextSymboliser).


1

SLYR (https://north-road.com/slyr/) is one tool which does this task. The SLYR plugin offers rich integration within the QGIS application, by adding common functionality like support for direct drag and drop of the ESRI style and LYR formats to the QGIS application window.


1

As the manual says you need to use POST the details to /layers/<l>/styles[.<format>] To determine the format of the file I usually use a request like: curl -u admin:geoserver http://localhost:8080/geoserver/rest/layers/topp:states/styles.xml which returns this: <styles> <style> <name>pophatch</name> <...


0

As mentionned above, you can draw the line twice to get a line border: var style = { color: "#008000", weight: 5, opacity: 0.6 }, stroke = { color: "#fff", weight: 7, opacity: 0.4 }; polyline_2 = new L.Polyline(polylinePoints, stroke); polyline_2.addTo(active_track); polyline = new L.Polyline(polylinePoints, style); polyline.addTo(active_track);


2

If you take a look at Leaflet docs about creating GeoJSON layer (which you should), you will see there is style option by which you can set dynamic styling function, which can set feature style depending on feature properties. That's exactly what is done in Leaflet choropleth example, where GeoJSON layer is created with dynamic style, exactly as you want: ...


1

I have done this in two parts First, apply the filter property as: "filter": [ "<=", "depth", 500 ] Second,then in paint property of line "paint": { "line-color": ["case", ["==", [ "%", [ "to-number", [ "get", "depth" ] ], 100 ], 0], ...


Top 50 recent answers are included