Hi,
I am showing labels with spline property to contour lines. As a result labels come in shape according to line. I want simple labels which will not get shape as line. I tried with making spline property none. Request you to suggest how to achieve it.
Thanks,
Goral
Label curve lines without spline
Hi Goral,
Do you meant you want to let label don’t follow line but in the top of line?
Have you set offset value for label?
Regards,
Don
Hi,
Ya I want label on top of line but don’t follow line.
Thanks,
Goral
Hi Goral,
Have you tested to set YOffsetInPixel for label?
I think that should works for your requirement.
Regards,
Don
Hi,
Thanks for reply. As per guideline I have added Yoffsetpixel but still I am not getting any label. Here is my code
sterrain.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.TextColumnName = "ELEVft";
sterrain.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.YOffsetInPixel = 5;
sterrain.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Please go through it and guide where is the problem.
Thanks,
Goral
Hi Goral,
In my test code, yoffset works well for label.
Could you please upload a simple sample which can reproduce your problem so I can directly modify code there for help you.
Regards,
Don
Hi,
Thanks for reply. Here with this I have attached sample code. Please go through it.
Thanks,
Goral
Hi Goral,
I think you forget to upload your test data with your code, so I find another US high line data for test your code, it looks that works well.
Regards,
Don
Hi,
Thanks for reply. Mine is contour file. If you have any contour file and you can try my code on it to get labels its helpful.
Thanks,
Goral
Hi Goral,
I am sorry I haven’t found a contour line for test, but I don’t know why that will be different, because the contour line is still line shape, I don’t think it’s different with other lines. Could you please upload your shape file? And I will try to find a contour file for test.
Regards,
Don