Using this code I see my lines but no labels, what did I miss?

         var obj = new OpenLayers.Geometry.LineString(points);
     var newFeature = new OpenLayers.Feature.Vector( obj );

         newFeature.style = 
         {
                strokeWidth: 14,
                     label: "test",
                     fontColor: "black",
                     fontSize: "10px",
                     fontFamily: "Arial",
                     labelAlign: "cb",
                     fillOpacity: 1,
                     pointRadius: 15 


      };
                myLayer.addFeatures(newFeature)
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/labels-on-feature-help-tp5355089p5355089.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to