GlobeControl如何控制注记在什么范围内显示?

GlobeControl如何控制注记在什么范围内显示?
已邀请:

刘峥 - ArcGIS多面手

赞同来自:

【解决办法】:
可以通过IAnnotateLayerProperties.AnnotationMaximumScale和AnnotationMinimumScale进行设置,如: 


IAnnotateMap2 annMap = new MaplexAnnotateMapClass(); 
map.AnnotationEngine = annMap as IAnnotateMap; 

IEnumLayer layers = map.Layers; 
ILayer layer = layers.Next(); 
IFeatureLayer2 fealy = layer as IFeatureLayer2; 

IGeoFeatureLayer geoFeatureL = fealy as IGeoFeatureLayer; 
IAnnotateLayerPropertiesCollection annotateLPC = geoFeatureL.AnnotationProperties; 

annotateLPC.Clear(); 
geoFeatureL.DisplayAnnotation = true; 

IAnnotateLayerProperties annotateLP = new MaplexLabelEngineLayerPropertiesClass(); 

annotateLP.AnnotationMaximumScale = 5000000; 
annotateLP.AnnotationMinimumScale = 20000000; 

annotateLPC.Add(annotateLP); 

IActiveView activeview = map as IActiveView 
activeview.Refresh();

要回复问题请先登录注册