mapxtreme2005 改变选中的图元样式
2011-06-16 21:22
204 查看
mapxtreme2005 改变选中的图元样式
MapInfo.Styles.CompositeStyle compositeStyle = GetOpaquesStyle(false, System.Drawing.Color.Blue);if (map != null)
{
if (map.Layers[SysCommon.TempTableAlias] != null)
{
map.Layers.Remove(SysCommon.TempTableAlias);
}
if (map.Layers[SysCommon.TempLayerAlias] != null)
{
map.Layers.Remove(SysCommon.TempLayerAlias);
}
}
MapInfo.Engine.Session.Current.Catalog.CloseTable(SysCommon.TempTableAlias);
MapInfo.Data.Table newtable = CreateCustomerTempTable(SysCommon.TempTableAlias, LayerAlias);
MapInfo.Data.MIConnection conn = new MIConnection();
conn.Open();
MapInfo.Data.MICommand comm = conn.CreateCommand();
comm.CommandText = "delete " + SysCommon.TempTableAlias;
comm.Prepare();
comm.ExecuteNonQuery();
foreach (Feature ftr in irfc)
{
comm.CommandText = "insert into " + newtable.Alias + " select * from " + LayerAlias + " where MI_Key ='" + ftr.Key + "'";
comm.ExecuteNonQuery();
}
conn.Close();
(map.Layers[SysCommon.TempTableAlias] as FeatureLayer).Modifiers.Clear();
MapInfo.Mapping.FeatureOverrideStyleModifier fsmtemp = new MapInfo.Mapping.FeatureOverrideStyleModifier(null, compositeStyle);
(map.Layers[SysCommon.TempTableAlias] as FeatureLayer).Modifiers.Append(fsmtemp);
相关文章推荐
- mapxtreme2005 改变选中的图元样式
- mapxtreme2005 改变选中的图元样式
- mapxtreme2005 改变选中的图元样式
- mapxtreme2005 改变选中的图元样式
- 扩展GridView控件(7) - 行的指定复选框选中时改变行的样式
- 3D模型选中显示样式改变
- 去掉segMentedControl的边框和改变选中字体的样式
- ios collectionView点击后只选中一个cell并改变样式
- TreeView控件改变选中节点样式
- 微信小程序多选框选中后改变样式--自定义图片
- 扩展GridView控件(7) - 行的指定复选框选中时改变行的样式
- GridView控件(七)——改变通过CheckBox选中的行的样式
- 扩展GridView控件 行的指定复选框选中时改变行的样式
- jquery 单机选中改变样式
- ArcGIS改变选择集选中时的样式与颜色
- ListView 选中条目样式改变
- UITableViewCell改变选中时背景样式
- 随意的改变RadioButton选中时按钮的样式
- 扩展GridView控件(7) - 行的指定复选框选中时改变行的样式
- MapXtreme图元改变样式