图形符号无法序列化为 JSON:图形符号无法序列化为 JSON

图形符号无法序列化为 JSON:图形符号无法序列化为 JSON
   在 ESRI.ArcGIS.Client.Runtime.NativeGraphicsLayer.GetSymbolJson(Graphic graphic)
   在 ESRI.ArcGIS.Client.Runtime.NativeGraphicsLayer.SerializeGraphic(Graphic graphic, Geometry displayGeometry, BinaryWriter output)
   在 ESRI.ArcGIS.Client.Runtime.NativeGraphicsLayer.<>c__DisplayClass6.<AddGraphics>b__5(BinaryWriter w)
   在 ESRI.ArcGIS.Client.Utils.BinaryWriterExtensions.Write(Action`1 writeAction)
   在 ESRI.ArcGIS.Client.Runtime.NativeGraphicsLayer.AddGraphics(IEnumerable`1 graphicGeometryPairs)
   在 ESRI.ArcGIS.Client.Runtime.NativeGraphicsLayer.layer_GraphicCollectionChanged(Object sender, IEnumerable`1 oldItems, IEnumerable`1 newItems)
   在 ESRI.ArcGIS.Client.GraphicsLayer.Graphics_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   在 ESRI.ArcGIS.Client.GraphicCollection.InsertItem(Int32 index, Graphic item)
   在 System.Collections.ObjectModel.Collection`1.Add(T item)
---------------------------------------------------------------
使用自定义点状符号模板设置symbol时(参考例子),报错,不知道该怎么解决?
已邀请:

mosaya

赞同来自:

你是把图层加速显示打开了吧
<esri:Map x:Name="Map" UseAcceleratedDisplay="False" IsLogoVisible="False" WrapAround="True" >
把UseAcceleratedDisplay设置为false。
这个问题是esri的锅,存在好久了一直没有修复。当你使用自定义symbol的时候是不能用UseAcceleratedDisplay。
14年就有人在官方论坛问过这个问题。

要回复问题请先登录注册