代码改变世界

文章分类 -  GIS系列文章

清除图层中的图元【原】

2008-08-04 15:55 by Jeffery Tao, 280 阅读, 收藏,
摘要: /// /// Summary description for PinPointCommand. /// [Serializable] public class ClearPinPointCommand : MapInfo.WebControls.MapBaseCommand { /// /// Constru... 阅读全文

图层中获取某个图元的id值【原创】

2008-08-04 15:49 by Jeffery Tao, 329 阅读, 收藏,
摘要: a、使用PointSelectionTool1组件,设置属性: ClientCommand:InfoCommandID --这个是自己定义的属性,放在Command.js ClientInteraction:ClickInteraction、 Command:Infoid --这个也是自己定义的属性,放在了一个通用类中 代码如下: App_Code/CustomCommands2.cs ... 阅读全文

将图层设置为隐藏图层【原创】

2008-08-04 15:48 by Jeffery Tao, 264 阅读, 收藏,
摘要: 图层的控制 try { //获得正执行线程上的当前 ISession 实例。 MapInfo.Mapping.Map myMap = MapInfo.Engine.Session.Current.MapFactory [this.MapControl1.MapAlias]; //my... 阅读全文

根据PinPoint组件获取地图上的标记信息【原创】

2008-08-04 15:45 by Jeffery Tao, 252 阅读, 收藏,
摘要: pinPoint的属性设置: ClientCommand:InfoCommandNew ClientInteraction:ClickInteraction Command:AddPinPointCommand function InfoCommandNew(name, interaction) { if (arguments.length > 0) { this.Init(name, i... 阅读全文