When a add pushpin to meet , i get the mouse over pop up automatically. I was adding a circle to the map based on couple samples I found, but looks like there is no automatic mouse over for polygon shape. Is that true?
Double Latitude = 32.993;
Double Longitude = -96.8005;
Double Lat = Latitude * Math.PI / 180;
Double Lon = Longitude * Math.PI / 180;
Double d = 0.0005; //(120/3956);
Double brng;
List<LatLongWithAltitude> locs = new List<LatLongWithAltitude>();
for (int x = 0; x <= 360; x++)
{
LatLongWithAltitude p2 = new LatLongWithAltitude(0, 0);
brng = x *
Math.PI / 180;
p2.Latitude =
Math.Asin(Math.Sin(Lat) * Math.Cos(d) + Math.Cos(Lat) * Math.Sin(d) * Math.Cos(brng));
p2.Longitude = ((Lon +
Math.Atan2(Math.Sin(brng) * Math.Sin(d) * Math.Cos(Lat), Math.Cos(d) - Math.Sin(Lat) * Math.Sin(p2.Latitude))) * 180) / Math.PI;
p2.Latitude = (p2.Latitude * 180) /
Math.PI;
locs.Add(p2);
}
Microsoft.Live.ServerControls.VE.
ShapeLayer layer01 = new Microsoft.Live.ServerControls.VE.ShapeLayer();
Microsoft.Live.ServerControls.VE.
Shape circle = new Microsoft.Live.ServerControls.VE.Shape(Microsoft.Live.ServerControls.VE.ShapeType.Polygon, locs);
layer01.Title =
"30 mile Radius";
layer01.Description =
"Test";
circle.HideIcon();
circle.LineWidth = 3;
circle.LineColor =
new Microsoft.Live.ServerControls.VE.Color(0, 100, 100, 1.0);
circle.FillColor =
new Microsoft.Live.ServerControls.VE.Color(0, 100, 100, 0.5);
circle.Title =
"Demographics Information";
circle.Description =
"Demographics Information Desc";
layer01.AddShape(circle);
Map1.AddShapeLayer(layer01);
layer01.Show();
Map1.DataBind();