Hot answers tagged

14

You could use PyQGIS for that (not sure is the best solution for it, though). Select (or activate) the layer in the QGIS ToC, open the QGIS Python console, and copy this code snippet: prefix = "'" layer = iface.activeLayer() attr = layer.rendererV2().classAttribute() attrColor = 'color' # Name of the field to store colors fieldIndex = ...


12

You can use data defined properties for this. Use the style tab on the layer properties and click the expression button to the right of the color. In there you can use the function color_rgba( red, green, blue, alpha ) to create the color. All values need to be between 0 and 255. Example: color_rgba( 255, 0, 0, ( 1 - "transparency" ) * 255 ) This will ...


10

It isn't necessary to learn OpenLayers or Leaflet when you just want to use GeoServer. However, I have a single advice for you: because you already have a working GeoServer, do yourself a favor and go to https://github.com/boundlessgeo/suite/tree/master/geoexplorer. Follow those instructions, build a geoexplorer.war and deploy it to your servlet container. ...


9

After setting the symbology (colours / appearance) of your vector layer, you can save the symbology together with the shapefile. If the layer style file stays together with the other necessary parts of the shapefile (shp, shx and dbf) then it will automatically be rendered in the same way when it is next loaded into QGIS, even on another computer. Save ...


8

beside all answer you can make your popup as google map popup style. check out this link which will help you to make g-style popup... popup script codes, popup images, and so css... i hope it helps you..


8

You need to use Symbol Levels: The higher the number the later is it drawn. So black will be rendered first then the purple over top meaning that any black bits will be rendered over.


8

In Layer Properties > Style, there should be an Advanced button which has the option Symbol Levels. Here you can define which symbol should have higher priority when displayed. Note that I used QGIS 2.8.2-Wien to find this option so there should be something very similar for QGIS 2.10.


8

As a follow up to Matthias' answer, in QGIS >= 2.12 you can use a data defined fill color with the expression: set_color_part(@value, 'alpha', ( 1 - "transparency" ) * 255 ) What this expression does is takes the original polygon color (@value) , and replaces the alpha channel (opacity) with the value calculated from the field). This means you can set ...


7

You should use vertexRenderIntent property of ModifyFeature control. For example: var vertexStyle = { strokeColor: "#ff0000", fillColor: "#ff0000", strokeOpacity: 1, strokeWidth: 2, pointRadius: 3, graphicName: "cross" } var styleMap = new OpenLayers.StyleMap({ "default": OpenLayers.Feature.Vector.style['default'], "vertex": ...


7

In ArcMap, Go to the Customize menu, click Style Manager. You will see a style on the left called "Dano". Under that, any categories which contain custom symbols, labels, etc. you've made will appear as a yellow folder. Click the one you're concerned with and you'll see your custom symbols on the right. Right-click to delete any you don't want. If your ...


7

Add another layer into your style as "marker line" and draw markers only at line ends. See the screen capture below.


7

One option would be to load the line as one layer and the line vertices (could be a view on the line table) as a second layer which can then be labeled. You can use ST_M() to write the measure value to a view attribute. Stylingwise, we have to deal with the challenge that there is no gradient line style yet ... But there are polygon gradient fills. So we ...


7

The proper solution to this is using Symbol Levels as explain in this post How do I make line symbols intersect cleanly without showing edges in QGIS?


6

You should try TileMill. It uses gdal to access the geo-data, an editor of Carto (a css like language) to stylize your maps, and mapnick to renderize it.


6

The best plugin to use to do colour ramps on rasters is the 1-band raster color table v1.10 plugin. Found in the plugin installer under the same name.


6

Why not using the rule-based labeling? You could ease up the task a lot, if you use categories for multiple gradients based on your attribute data. From my point of view using categories in rule-based labeling is one of the mayor advantages of QGIS. For your data (without knowing the structure) i would recommend the following workflow: Make a rule based ...


6

You can adjust the phase of your dash pattern by inserting a row in the Dash space pattern editor with a Dash of 0 length and a Space of half the length you want between your dashes. In the second row, you set the full Dash length, and half the desired Space length again. For example, if you set the Marker line to use an interval of 10, you could set your ...


6

In that case you should use a graduated renderer. It will sort the values correctly. Categorized renderers are meant for nominal scales. Graduated renderer will only work with numerical values. So if your column is text, you'll have to convert it to numeric format first. As Andre noted in his comment to another answer, this can be done in field calculator ...


6

The SLDs were originally created for our own use in GeoServer which supports several vendor specific options that we use for our OS OnDemand Web Services, so there are some edits that you need to manually make to the SLDs for them to work in QGIS. The first is that in the SLDs we top and tail each rule with the <FeatureTypeStyle> ...


6

Set the alpha channel of the fill color to 0.


6

The styles are normally saved in public.layer_styles. Being in the public schema it should be accessible to every user. If not, make sure it becomes using: GRANT SELECT ON TABLE public.layer_styles TO users; -- "users" is a group with all your #normal users


6

As a workaround you may choose "Solid Line" option for borders, set the same colour to borders and fill of the polygon and set border width to 0.0 .


6

It is possible to have a fill color and some diagonal lines at the same time in a single shapefile. You have a button to add a symbol layer in the style properties of your layer.


6

You need to change the symbol for your roads to a Cartographic Line symbol rather than a Simple Line symbol. That will give you more control over how it's drawn. When you add a line layer to ArcMap, it defaults to a Simple Line symbol, which has the rounded ends you're seeing. With a Cartographic Line symbol, you can change the line end caps. You will ...


6

Drop OpenLayers plugin) Install QuickMapServices plugin for QGIS Go to plugin's options and get contributors pack of basemaps. These include some Google ones. Go to ~/.qgis2/QuickMapServices/Contribute/data_sources/google_traff and open metadata.ini in your text editor of choice. We'll use it as a template, in the future you can create a new one. Go to ...


6

Just tested (QGIS 2.8). It works if you add a END statement at the end, like that: CASE WHEN "dBM" <= 0 THEN '255,0,0' WHEN "dBM" > 0 AND "dBM" <= 20 THEN '255,255,0' ELSE '0,255,0' END


5

you can do this with some ways: defining context style: context {Object} An optional object with properties that symbolizers’ property values should be evaluated against. If no context is specified, feature.attributes will be used. you you can check out here for some idea. var context = { getGraphic: ...


5

check out openlayers dark theme here. it has customization about layer switcher too.. UPDATE: oh sorry due to not reading your que. completely i give only thematic solution...I noticed that newly. new solution is that change the following style (top): .olControlLayerSwitcher { background-color: transparent; color: white; font-family: ...


5

In your library files, there is img/cloud-popup-relative.png file. You have to customize it in order to get infowindow you like


5

Another idea would be to change the column of data to numbers from text (in ArcGIS I add a 'field', remove the shapefile from my work, and then import the .dbf file into open office Calc and turn the text into numbers in the new column then reopen the shapefile with the new improved column of data). Your color ramp will be correct if the software recognizes ...



Only top voted, non community-wiki answers of a minimum length are eligible