rajanikanth,
You can simply setup a different ContentHtml string for each of your features. Please see the following code for guidence:
public partial class ClickEventOnAMarker : System.Web.UI.Page
{
private readonly string[] markerIcons = new string[] { "marker_blue.gif", "marker.gif", "marker_gold.gif", "marker_green.gif" };
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
Map1.CurrentExtent = new RectangleShape(-131.22, 55.05, -54.03, 16.91);
Map1.MapUnit = GeographyUnit.DecimalDegree;
WorldMapKitWmsWebOverlay worldMapKitOverlay = new WorldMapKitWmsWebOverlay();
Map1.CustomOverlays.Add(worldMapKitOverlay);
InMemoryMarkerOverlay markerOverlay = new InMemoryMarkerOverlay("MarkerOverlay");
markerOverlay.Columns.Add(new FeatureSourceColumn("ContentHTML"));
//Add Lawrence Feature and CloudPopup Content
markerOverlay.Features.Add("Lawrence", new Feature(-94.48242, 38.75977));
StringBuilder lawrenceContentHtml = new StringBuilder();
lawrenceContentHtml.Append(" .Append("src='../../theme/default/samplepic/lawrencecity.jpg'/> Lawrence is a city in Northeastern Kansas")
.Append("in the United States. Lawrence serves as the county seat of Douglas County, Kansas. Located 41 miles west ")
.Append("of Kansas City, Lawrence is situated along the banks of the Kansas (Kaw) and Wakarusa Rivers. It is considered ")
.Append("governmentally independent and is the principal city within the Lawrence, Kansas, Metropolitan Statistical Area, ")
.Append("which encompasses all of Douglas County. As of the 2000 census, the city had a population of 80,098, making it ")
.Append("the sixth largest city in Kansas. 2006 estimates[3] place the city's population at 89,110. A quintessential")
.Append("college town, Lawrence is home to The University of Kansas and Haskell Indian Nations University.
")
.Append(" .Append("target='_blank'>
more about Lawrence city...</a>");
markerOverlay.Features["Lawrence"].ColumnValues.Add("ContentHTML", lawrenceContentHtml.ToString());
//Add Phoenix Feature and CloudPopup Content
markerOverlay.Features.Add("Phoenix", new Feature(-112.02, 33.43));
StringBuilder phoenixContentHtml = new StringBuilder();
phoenixContentHtml.Append(" Phoenix is in Arizona");
markerOverlay.Features["Phoenix"].ColumnValues.Add("ContentHTML", phoenixContentHtml.ToString());
//Set Universal MarkerStyle
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage = new WebImage("../../theme/default/img/marker_blue.gif", 21, 25);
markerOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
//Setup Event to fire everytime the MarkerOverlay is clicked
markerOverlay.Click += new EventHandler<MarkerOverlayClickEventArgs>(markerOverlay_Click);
Map1.CustomOverlays.Add(markerOverlay);
}
}
void markerOverlay_Click(object sender, MarkerOverlayClickEventArgs e)
{
InMemoryMarkerOverlay markerOverlay = (InMemoryMarkerOverlay)Map1.CustomOverlays["MarkerOverlay"];
markerOverlay.FeatureSource.Open();
Feature feature = markerOverlay.FeatureSource.GetFeatureById(e.FeatureId, ReturningColumnsType.AllColumns);
PointShape pointShape = (PointShape)feature.GetShape();
CloudPopup samplePopup = new CloudPopup("SamplePopup", pointShape, feature.ColumnValues["ContentHTML"].ToString());
samplePopup.AutoSize = true;
samplePopup.AutoPan = true;
samplePopup.HasCloseButton = true;
Map1.Popups.Add(samplePopup);
}
}