Ticket #1172: vector-features.html.patch
| File vector-features.html.patch, 1.9 kB (added by ahocevar, 1 year ago) |
|---|
-
examples/vector-features.html
old new 20 20 /* 21 21 * Layer style 22 22 */ 23 // we want opaque external graphics and non-opaque internal graphics23 // we want opaque internal graphics and less opaque external 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 = 1;26 layer_style.graphicOpacity = 0.6; 27 27 28 28 /* 29 29 * Blue style … … 46 46 /* 47 47 * Mark style 48 48 */ 49 var style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);49 var style_mark = OpenLayers.Util.extend({}, layer_style); 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 52 52 // aspect ratio will be kept … … 68 68 var point = new OpenLayers.Geometry.Point(-111.04, 45.68); 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_ green);71 var pointFeature2 = new OpenLayers.Feature.Vector(point2,null,style_mark); 72 72 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); 74 74 75 75 // create a line feature from a list of points 76 76 var pointList = [];
