Changeset 5313
- Timestamp:
- 12/01/07 05:05:30 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/ahocevar/styles/examples/vector-features.html
r5272 r5313 21 21 * Layer style 22 22 */ 23 // we want opaque internal graphics and less opaque external graphics23 // we want opaque external graphics and non-opaque internal graphics 24 24 var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); 25 25 layer_style.fillOpacity = 0.2; 26 layer_style.graphicOpacity = 0.6;26 layer_style.graphicOpacity = 1; 27 27 28 28 /* … … 47 47 * Mark style 48 48 */ 49 var style_mark = OpenLayers.Util.extend({}, layer_style);49 var style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); 50 50 // each of the three lines below means the same, if only one of 51 51 // them is active: the image will have a size of 24px, and the … … 69 69 var pointFeature = new OpenLayers.Feature.Vector(point,null,style_blue); 70 70 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); 72 72 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); 74 74 75 75 // create a line feature from a list of points
