OpenLayers OpenLayers

Ticket #1172: vector-features.html.2.patch

File vector-features.html.2.patch, 1.9 kB (added by ahocevar, 1 year ago)
  • examples/vector-features.html

    old new  
    2020            /* 
    2121             * Layer style 
    2222             */ 
    23             // we want opaque external graphics and non-opaque internal graphics 
     23            // we want opaque internal graphics and less opaque external graphics 
    2424            var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); 
    2525            layer_style.fillOpacity = 0.2; 
    26             layer_style.graphicOpacity = 1
     26            layer_style.graphicOpacity = 0.6
    2727             
    2828            /* 
    2929             * Blue style 
     
    4646            /* 
    4747             * Mark style 
    4848             */ 
    49             var style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); 
     49            var style_mark = OpenLayers.Util.extend({}, layer_style); 
    5050            // each of the three lines below means the same, if only one of 
    5151            // them is active: the image will have a size of 24px, and the 
    5252            // aspect ratio will be kept 
     
    6868            var point = new OpenLayers.Geometry.Point(-111.04, 45.68); 
    6969            var pointFeature = new OpenLayers.Feature.Vector(point,null,style_blue); 
    7070            var point2 = new OpenLayers.Geometry.Point(-105.04, 49.68); 
    71             var pointFeature2 = new OpenLayers.Feature.Vector(point2,null,style_green); 
     71            var pointFeature2 = new OpenLayers.Feature.Vector(point2,null,style_mark); 
    7272            var point3 = new OpenLayers.Geometry.Point(-105.04, 49.68); 
    73             var pointFeature3 = new OpenLayers.Feature.Vector(point3,null,style_mark); 
     73            var pointFeature3 = new OpenLayers.Feature.Vector(point3,null,style_green); 
    7474             
    7575            // create a line feature from a list of points 
    7676            var pointList = [];