此篇文章根据郭胜涛的一篇论文《ArcGIS Engine下自定义图层技术》实践过来的。
1.思路:通过创建实现ILayer接口的类,就能在ArcGIS Engine程序中实现自定义图层对象的定义,创建和加载。
2.ILayer接口定义如下:
public interface ILayer
{
IEnvelope AreaOfInterest { get; }
bool Cached { get; set; }
double MaximumScale { get; set; }
double MinimumScale { get; set; }
string Name { get; set; }
bool ShowTips { get; set; }
ISpatialReference SpatialReference { set; }
int SupportedDrawPhases { get; }
bool Valid { get; }
bool Visible { get; set; }
void Draw(esriDrawPhase DrawPhase, IDisplay Display, ITrackCancel TrackCancel);
string get_TipText(double x, double y, double Tolerance);
}