Tag Info

New answers tagged


You're not looking at the right place. OpenLayers 3 (latest version) API docs are at http://openlayers.org/en/v3.9.0/apidoc/. It is, by the way, an excellent documentation. You will use text field (top-left) to search for everything available in the library. A ol.geom.Polygon can't be styled. You will apply a style to the feature that holds polygon. Look ...


You can change the style of your point symbol (reducing its size and setting a transparent boundary). As your point seem to be a regular grid, you could also use squares instead of circles. You can also increase the number of classes if you want a more "continuous" rendering. EDIT : In order to change the size of your symbol when you zoom, you can set the ...


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?


Very nice answer by @AndreJ which should get you the nicest results. An alternative is to change the Cap style of your blue line to Flat. This should get rid of most of those segmented appearences (tested on the .kml file you linked to): Without Flat cap style: With Flat cap style Hope this helps!


The simple reason for the interruptions is that the casing is along the line, and around the ends too. In QGIS , there is a possibility to draw lnes with no end cap, but the street casing would stop at the connecting point, and not at the casing of the other road. The line may be interrupted in the source file, because the street name changes, or what else. ...


You can add two polygon button in toolbar: var polyBtn = new OpenLayers.Control.Button({ displayClass: 'olControlPolyBtn ', title: "click it to change style polygon", id: 'polyBtn', trigger: changeStyle }); //-----you must create a panel to add buttons in it var panel = new OpenLayers.Control.Panel({defaultControl: polyBtn}); ...


Vittrup, can you please explain what you are trying to achieve? Your colours have been defined as rgba but with opacity set at 1. Your second screenshot seems to show correctly i.e. green/blue changing colour when sat on top of red. If you require each of the layers/shapes to be transparent then adapt your colour values to something like: var red = [255, 0, ...

Top 50 recent answers are included