OpenLayers OpenLayers

Changeset 5313

Show
Ignore:
Timestamp:
12/01/07 05:05:30 (1 year ago)
Author:
ahocevar
Message:

unapplied #1172

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/ahocevar/styles/examples/vector-features.html

    r5272 r5313  
    2121             * Layer style 
    2222             */ 
    23             // we want opaque internal graphics and less opaque external graphics 
     23            // we want opaque external graphics and non-opaque internal graphics 
    2424            var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); 
    2525            layer_style.fillOpacity = 0.2; 
    26             layer_style.graphicOpacity = 0.6
     26            layer_style.graphicOpacity = 1
    2727             
    2828            /* 
     
    4747             * Mark style 
    4848             */ 
    49             var style_mark = OpenLayers.Util.extend({}, layer_style); 
     49            var style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); 
    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 
     
    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_mark); 
     71            var pointFeature2 = new OpenLayers.Feature.Vector(point2,null,style_green); 
    7272            var point3 = new OpenLayers.Geometry.Point(-105.04, 49.68); 
    73             var pointFeature3 = new OpenLayers.Feature.Vector(point3,null,style_green); 
     73            var pointFeature3 = new OpenLayers.Feature.Vector(point3,null,style_mark); 
    7474             
    7575            // create a line feature from a list of points