Register  |  Login   Search
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |  Developer Community
 
LivePerson Chat

Discussion Forums

The online community for users of Map Suite GIS components

Map Display - Very few cities shown
Last Post 12-27-2007 05:34 AM by sun. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
DonUser is Offline
Level 1
Level 1
Posts:3

--
12-26-2007 06:08 PM

When the map is zoomed all the away out, very few cities are shown on the map.  Shouldn't at least every major city in each state be displayed?

How can I make the necessary changes to accomplish that?

Thanks,

Ed

 

sunUser is Offline
Level 3
Level 3
Posts:94

--
12-27-2007 05:34 AM
I think you can make a change just like this:

1. Find and open the file of App_Code/RenderUSA.cs;

2. Add the code below to line 2100:
Threshold Threshold1 = new Threshold(Threshold1UpperLimit, Threshold1LowerLimit);

// Symbol Renderers
PointSymbol ptSymbol1 = new PointSymbol(PointStyleEnum.Circle,
new Pen(Outline_Color, 2), new SolidBrush(Fill_Color), 4);
Threshold1.SymbolRenderers.Add(new SymbolRenderer(ptSymbol1));

// Label Renderer
Threshold1.DefaultLabeler.PointPlacement = PointPlacement.RightCenter;
Threshold1.DefaultLabeler.BestPlacement = false;
Threshold1.DefaultLabeler.AllowInterLayerOverlapping = false;
TextSymbol TextSymbol1 = new TextSymbol(new Font("Arial", 11, FontStyle.Bold), new SolidBrush(Label_Color), -8, -7);
TextSymbol1.HaloPen = new Pen(Color.White, 0.5f);
LabelRenderer lblRenderer1 = new LabelRenderer("areaname", TextSymbol1);
Threshold1.LabelRenderers.Add(lblRenderer1);

Layer.Thresholds.Add(Threshold1);”
You are not authorized to post a reply.

Active Forums 4.1