PointStyle when using font

4/12/2012 12:59:45 AM
Total Posts 28

PointStyle when using font

How to use font on PointStyle

 

 AspMap.Layer dbLayer = map.AddPointDataLayer(airportsTable, "LONGITUDE", "LATITUDE");

dbLayer.Symbol.PointStyle = PointStyle.Font;
dbLayer.Symbol.PointFont.Charset = 2;
dbLayer.Symbol.PointFont.Name = "Times New Roman";
dbLayer.Symbol.CharIndex = 1;

 

 

 

symbol not shown in properly.

Please help

4/12/2012 3:30:34 AM
MVP
Total Posts 323

Re: PointStyle when using font

There is a problem with font points. It will be fixed in next release.

4/12/2012 4:10:07 AM
Total Posts 28

Re: PointStyle when using font

i need solid arrow head with line symbol using rotation. but i don't know how to get this symbol.

4/12/2012 4:16:33 AM
MVP
Total Posts 323

Re: PointStyle when using font

Line styles have ArrowEnd, ArrowStart styles.

4/15/2012 12:50:52 PM
Total Posts 28

Re: PointStyle when using font

Thanks. I have three points in same location but i have point rotation. so i use pointstyle for point data layer using rotation. any solution....Please help

Sample Code

AspMap.Feature feature;
AspMap.FeatureRenderer renderer;
renderer = pointLayerGen.Renderer;
foreach (DataRow row in table.Rows)
{
    feature = renderer.Add();
    feature.Expression = "srlno=" + row["srlno"].ToString() + "";
    feature.Symbol.LineColor = Color.Black;
    feature.Symbol.FillColor = Color.Blue;
    feature.Symbol.PointStyle = PointStyle.Triangle;
    feature.Symbol.Size = 7;
    feature.Symbol.Rotation = Convert.ToDouble(row["rotation"].ToString());
}

 

if i use bitmap symbol it is not work rotation property. but i use solid arrow head symbol

4/16/2012 2:45:42 AM
MVP
Total Posts 323

Re: PointStyle when using font

Bitmaps cannot be rotated.

There is the PointStyle.Arrow symbol.

4/16/2012 12:24:18 PM
Total Posts 28

Re: PointStyle when using font

Thanks. but i use solid arrow with long tail with rotation.

Please Check this link

http://files.softicons.com/download/application-icons/32x32-free-design-icons-by-aha-soft/png/32/Arrow.png