New answers tagged

0

You can initialize your Borne geoJson layer without any data but with a styling function specified in the options: var Borne = new L.GeoJSON(false, { style: function (feature) { return {color: feature.properties.color}; } }); This style will be applied to any data you add later with addData.


0

First, Geoserver style (SLD) and data (KML) are totaly different. Import the KML file in Geoserver and later, create SLD file in the style editor or create style within the viewer (like Mapfishapp) and next, save the .sld file to get the sld easily without write within XML (more difficult to realize classification or other specific style when some system ...


6

Hopefully the following image will help a little: Essentially, you can move a rule 'inside' another by dragging it across. This creates a nested style. In the image, I dragged the last 2 rules (blue and yellow) inside the green rule. Now if you add a filter (expression) to the green rule and if it applies to any feature, the features will not only turn ...


13

I'm not sure how to enforce it for existing polygons, but you could make it work for any future ones that you create. In Project Properties>Default styles>Style Manager, you could create your own default symbol style for "Fill": Edit the Border color's expression and set it to @symbol_color: Lastly, set your new fill style as the default: This will ...


1

Thanks for the help. I think I've got it. To help anyone in the future, what I did was to join the database file with my existing shapefile map. Then i saved the Database file as a .csv with xy geometry. I had to edit the .csv file in excel to make sure the Date Format was correct. Then I saved the .csv file as a shapefile in QGIS because Timemanager only ...


0

Your described approach will not work as the styling engine (renderer) only has information about the current feature when it comes to draw it. The easiest solution is to import your shapefile into your database and then create a view that joins the roads with the table holding your traffic details and use that to draw the map. It will be faster and more ...


1

The problem is, that the orientation switches for every part of the network (like in the red circle). Why? The orientation of your offset changes from one side to the other for some parts because these parts were drawn into your GIS in the opposite direction. Lines are drawn from a From/Start point to a To/End point, and if you offset a line the ...


0

You can use Time Manager Plugin to animate your polygons based on time field. Also you can refer to this answer on how to setup the data to be used in time manager.


0

I needed to apply the same style to data with different column names. What realy helped me is that it is possible to "copy style" and then paste it in notepad and copy-paste anything you like from one file to another.


0

In your layer config you have one class (and one colour), so you are telling MapServer to render all polygons with one colour. If you want to have diffent coloured polygons you need to specify more than one class (each with a different colour). So you need to find the coloumn in your mylayer.shp that holds information you want to classify (colour) your map ...


0

It seems that whenever you access the Style properties and click either OK or Apply, the colour items with the same values have their orders swicted (in my case, they get reversed). I think the workaround at the moment is to: Load the colour map and do not access the Style tab a second time Or if you do need to access it then: Reload the colour map ...


0

To the best of my knowledge there is no code to do this on GeoTools as GeoTools confines itself to reading and writing data formats and handles styling as a separate matter. You could look at (and probably use) the code in GeoServer that handles writing out KML with a style.


0

You changed the right files (.less files), but to see them visible you need to add debug parameter (?debug) or before launch delete all wro4j* files.


0

I can't find an example WMS that has a layer with two plus named styles, but just using the below example, I always thought that you would be able to select the layer style you wanted through the QGIS Add Layers dialogue window. So in this below example the style is called 'default' (id is 2), but in your example you would have grayscale (id would be 2) and ...



Top 50 recent answers are included