I display street from sql2008 (polygon) result image1
1. Now i want street name display like image2. ?
2. In mage3 i want hide border between street1 and street2 ?
image2.jpg (11 KB)
image3.jpg (13.8 KB)
002_001_image1.jpg (10.5 KB)
I display street from sql2008 (polygon) result image1
1. Now i want street name display like image2. ?
2. In mage3 i want hide border between street1 and street2 ?
image2.jpg (11 KB)
image3.jpg (13.8 KB)
002_001_image1.jpg (10.5 KB)
Hi dinh,
I guess the first problem is that you would like to put the labels along the street, right? Please try the code as following:
layer.ZoomLevelSet.ZoomLevel15.DefaultTextStyle.ForceHorizontalLabelForLine = true;
To remove the border shown in the image3, I think you can try put the street1 and street2 into 1 LayerOverlay, rather 2 different LayerOverlay to resolve the problem. Please check it out.
Thanks,
Johnny
Hi Johnny, thanks for your respone.
Yes i want put labels along street. I have tried your code but it not works
Can you help me check source code in attachments file ?.
webgis.zip (319 KB)
Hi dinh,
Thanks for your further information. Seems like there are 2 issues which cause this, just shown as following:
1. Please remove the “DOCTYPE” statement as following:
Becuase in this “DOCTYPE”, we are unable to apply *% height to a DIV, here should be the map.
2. Another issue which is proved to be a bug in MsSql2008FeatureSource, it comes from a recent change, it has been fixed now, please get the correct version 6.0.0.332 or later and have a try.
Note: the latest version may be still in building now, if it’s not availble, please wait for hours.
Thanks,
Johnny