As in RouteApp.aspx.cs..,when Route display Roads name does not hidden..,but in my case when I display route..,roads name get hidden.......,I tried a lot of thing but doesn't make road name visible when route display..,Can anyone tell me any solution fr this
This sample turns on road labels using the following code
layer.LabelField = "FNAME";layer.ShowLabels = true;
But when route display between two points still that road label display.,in route app sample
I also want this to happen...,bcz when I display route between two points roads name got hidden by route layer line.,I want my roads name to display even when route layer line display on them
Set the opacity of the route layer as in the sample or move it below the road layer using Map.MoveLayer
routeLayer.Opacity = 0.3;
NOT working bro...,:(
Post your code.
bro...,I Don't hv permission for this
can u plz tell me how to use ...... Map.MoveLaye
If you cannot post the code, explore the RouteApp sample, if it works, your code should work too.
After a new layer is added, its index will be 0. To move it below another layer:
I explore everthing bro..,
even comment out layer.opacity..,still roads names are displaying on route.,
plz help me finding any way to display roads name on route layer.
Sorry, can't help without looking at the code.
bro..route app is the code
I just want to know which part of code display road name when route display on them.
As I wrote above:
layer = map.AddLayer(LayerFolder + "roads.shp");layer.LabelField = "FNAME";layer.ShowLabels = true;
AspMap.Layer routeLayer = map.AddLayer(route);
routeLayer.Symbol.LineColor = Color.LightGreen;routeLayer.Symbol.Size = 9;routeLayer.Opacity = 0.3;