User Tools

Site Tools


tecnica:gps_cartografia_gis:openlayers_style

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tecnica:gps_cartografia_gis:openlayers_style [2011/07/15 16:02] – [Utilizzare l'oggetto StyleMap] niccolotecnica:gps_cartografia_gis:openlayers_style [2011/07/15 16:03] (current) – [Definire lo stile di un Vector layer] niccolo
Line 83: Line 83:
 var style = new OpenLayers.Style(); var style = new OpenLayers.Style();
  
-style.strokeColor = strokeColor+style.strokeColor   "#FF0000"
-style.strokeWidth = strokeWidth+style.strokeWidth   5
-style.strokeOpacity = strokeOpacity+style.strokeOpacity = 0.7
-style.fillColor = fillColor+style.fillColor     "#FFA500"
-style.fillOpacity = fillOpacity;+style.fillOpacity   0.3;
  
 var vector = new OpenLayers.Layer.Vector(label, {'style': style}); var vector = new OpenLayers.Layer.Vector(label, {'style': style});
tecnica/gps_cartografia_gis/openlayers_style.1310738544.txt.gz · Last modified: 2011/07/15 16:02 by niccolo