摘要:
通过自定义MarkerSymbol的控件模板,实现在ArcGIS中扩展符号样式。<esri:MarkerSymbol x:Key="myMarkerSymbolTemplate"> <esri:MarkerSymbol.ControlTemplate> <ControlTemplate> <Grid> <Canvas> <Polyline Points="0,0 10,0 5,10" Stroke="Red" StrokeThickness="2" 阅读全文
2011年12月27日 #
摘要:
在FeatureLayer的Initialized事件中,MapTip通过Template加载自定义的控件模板,然后创建一个Canvas承载MapTip,并添加到页面上。Private Sub FeatureLayer_Initialized(ByVal sender As Object, ByVal e As EventArgs) Dim c As Canvas = New Canvas Dim mt As MapTip = New MapTip() With {.Template = CType(Application.Current.Resources("myMapTipTe. 阅读全文