Hi
I want no how to modify this code sutable for Map Suite Destop Edition 2x. I try this code but it does not work.
Anjana
DynamicLayer customers = new DynamicLayer();
//Create Customer Point for LA
PointMapShape custLA = new PointMapShape(new PointShape(-118.24, 34.05));
//Use a Graphic for the customer symbol
PointSymbol symLA = new PointSymbol
(new Bitmap(this.Server.MapPath("") + @"\images\customer.png"));
custLA.ZoomLevel01.GeoStyle.SymbolRenderers.Add(new SymbolRenderer(symLA));
//Label the customer icon
custLA.ZoomLevel01.GeoTextStyle = GeoTextStyles.GetSimpleTextStyle
(null, "Arial", 9, GeoFontStyle.Bold, GeoColor.KnownColors.Black);
//Apply to all zoom levels
custLA.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.ZoomLevel18;
//Name the Customer
custLA.Name = "LA Customer";
//Add the customer to the Dynamic Data Layer
customers.MapShapes.Add(custLA);
//Create Customer Point for KC
PointMapShape custKC = new PointMapShape(new PointShape(-94.62, 39.11));
//Use a Graphic for the customer symbol
PointSymbol symKC = new PointSymbol
(new Bitmap(this.Server.MapPath("") + @"\images\customermale.png"));
custKC.ZoomLevel01.GeoStyle.SymbolRenderers.Add(new SymbolRenderer(symKC));
//Label the customer icon
custKC.ZoomLevel01.GeoTextStyle = GeoTextStyles.GetSimpleTextStyle
(null, "Arial", 9, GeoFontStyle.Bold, GeoColor.KnownColors.Black);
//Apply to all zoom levels
custKC.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.ZoomLevel18;
//Name the Customer
custKC.Name = "Kansas City Customer";
//Add the customer to the Dynamic Data Layer
customers.MapShapes.Add(custKC);
//Add Dynamic Data Layer to Map Control
Map1.DynamicLayers.Add(customers);