[OpenLayers-Users] labels on feature help
ulao
S_K_U_N_X at yahoo.com
Fri Jul 30 09:54:53 EDT 2010
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.
More information about the Users
mailing list