static MapHelper() { ICoordinateTransformation transformation = LatLonToGoogle(); LayerData landmarks = new LayerData { LabelColumn = "LANAME", Transformation = transformation, Style = new VectorStyle { EnableOutline = true, Fill = new SolidBrush(Color.FromArgb(192, Color.LightBlue)) } }; LayerData roads = new LayerData { LabelColumn = "NAME", Transformation = transformation, Style = new VectorStyle { Line = new Pen(Color.FromArgb(200, Color.DarkBlue), 0.5f) } }; LayerData pois = new LayerData { LabelColumn = "NAME", Transformation = transformation, Style = new VectorStyle { PointColor = new SolidBrush(Color.FromArgb(200, Color.DarkGreen)), PointSize = 10 } }; layers = new Dictionary<string, LayerData> { { "poly_landmarks", landmarks }, { "tiger_roads", roads } , { "poi", pois } }; }
static MapHelper() { LayerData landmarks = new LayerData { LabelColumn = "LANAME", Style = new VectorStyle { EnableOutline = true, Fill = new SolidBrush(Color.FromArgb(192, Color.LightBlue)) } }; LayerData roads = new LayerData { LabelColumn = "NAME", Style = new VectorStyle { EnableOutline = false, Fill = new SolidBrush(Color.FromArgb(192, Color.LightGray)), Line = new Pen(Color.FromArgb(200, Color.DarkBlue), 0.5f) } }; LayerData pois = new LayerData { LabelColumn = "NAME", Style = new VectorStyle { PointColor = new SolidBrush(Color.FromArgb(200, Color.DarkGreen)), PointSize = 10 } }; Nyc = new Dictionary<string, LayerData> { { "poly_landmarks", landmarks }, { "tiger_roads", roads }, { "poi", pois } }; }