Skip to content

Commit

Permalink
megerősítetlen kapcsolatok szaggatott vonallal, ismeretlen irányok po…
Browse files Browse the repository at this point in the history
…ntsorral
  • Loading branch information
kolesar-andras committed Sep 20, 2016
1 parent 8edcc72 commit ce0a722
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ $(document).ready(function () {
source: source,
style: function(feature, resolution) {
if (feature.n.type == 'relation') {
if (feature.n.tags.type != 'link') return;
if (!feature.n.members) return;
if (!display.connections) return;
var colours = getOperatorColours(feature);
if (!colours.length) return null;

var dash = null;
if (feature.n.note == 'not-surveyed-half') dash = [4,4];
if (feature.n.members.length < 2) dash = [1,3];

return [
new ol.style.Style({
stroke: new ol.style.Stroke({
color: addOpacity(colours[0], 0.5),
width: 2
width: 2,
lineDash: dash
})
})
];
Expand Down

0 comments on commit ce0a722

Please sign in to comment.