arcGIS for silverlight 在地图某个坐标下添加某个元素:
ElementLayer objEleLayer = new ElementLayer();
Button button = new Button();
button.Content = "XXXXXXXXXXXXXXXXXXX";
button.Height = 30.0;
button.Width = 50.0;
//直接指定经度 纬度
MapPoint pp = new MapPoint()
{
X = 116.16206,
Y = 34.89437,
SpatialReference = new SpatialReference("4326")
};
button.VerticalAlignment = VerticalAlignment.Center;
button.HorizontalAlignment = HorizontalAlignment.Center;
Envelope buttonEnvelope = new Envelope(pp.X, pp.Y, pp.X, pp.Y);
ElementLayer.SetEnvelope(button, buttonEnvelope);
objEleLayer.Children.Add(button);
conMap.Layers.Add(objEleLayer);