hello john,
Still i am not getting my marker location on exact layer points.my client already buy this think geo product and he is waiting for this requirement please give me a solution for this problem.iam not using any projection on markers.
Marker mar = new Marker();
SimpleMarkerOverlay markers = new SimpleMarkerOverlay();
BMSI.WebService.BMSIWebService WebSer = new BMSI.WebService.BMSIWebService();
DataTable Dttt = WebSer.GetAssetMapData(assetqry, e.Node.Checked);
// Session["Dttt"] = Dttt;
h1.Value = "1";
divr1.Visible = false; divr2.Visible = true; divr3.Visible = false;
// ds = BMSIBL.WorkOrderBase.GetWorkOrderassetMapData(assetqry, pCompanyID);
// InMemoryFeatureLayer pointLayer = new InMemoryFeatureLayer();
for (int i = 0; i < Dttt.Rows.Count; i++)
{
string x = "";
double pplat = 0; double pplong = 0;
string pid = Convert.ToString(Dttt.Rows["ID"].ToString());
if (Convert.ToString(Dttt.Rows["LocStartLatitude"].ToString()) != "")
{
pplat = Convert.ToDouble(Dttt.Rows["LocStartLatitude"].ToString());
}
if (Convert.ToString(Dttt.Rows["LocStartLongitude"].ToString()) != "")
{
pplong = Convert.ToDouble(Dttt.Rows["LocStartLongitude"].ToString());
}
// ClusterMarkerStyle clusterMarkerStyle = new ClusterMarkerStyle(20, 1024, 768);
if (pplong != 0 && pplat != 0)
{
string name = "";// = Convert.ToString(Dttt.Rows["ImageName"].ToString());
if (Convert.ToString(Dttt.Rows["ImageName"].ToString()) != "")
{
name = Convert.ToString(Dttt.Rows["ImageName"].ToString());
mar = new Marker(pplong, pplat, new WebImage("../../Documents/" + name, 21, 25));
}
else
{
mar = new Marker(pplong, pplat, new WebImage("../../images/Unknown.png", 21, 25));
}
mar.Id = pid;
markers.Markers.Add(mar);
}
}
Map1.CustomOverlays.Add(markers);
like this iam displaying markers on my Map layers.but it is not showing exactly on layer points,it shows some where from layer point.