I want to show ENC chart in my WPF app but getting these error. I have also attached screen shot of error. I have set symbols path and manifest file too but no success.
<Window x:Class="ArcGISApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
xmlns:hydro="clr-namespace:Esri.ArcGISRuntime.Hydrographic;assembly=Esri.ArcGISRuntime"
Title="MainWindow"
Height="350"
Width="525">
<Grid>
<esri:MapView x:Name="MyMapView"
LayerLoaded="MyMapView_LayerLoaded">
<esri:Map>
<!--<esri:ArcGISTiledMapServiceLayer ID="Basemap" ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>-->
<esri:GroupLayer ID="Hydrographic">
<hydro:HydrographicS57Layer ID="PK2NB58Z"
Path="US5TX51M.000">
</hydro:HydrographicS57Layer>
</esri:GroupLayer>
</esri:Map>
</esri:MapView>
</Grid>
</Window>
I think there is no issue at all in code. I dont understand what is the reason..........!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Solved! Go to Solution.
I did that way n tpk loaded and rendered but as soon as ENC loaded tpk disappeared!!!!!!!!!!
Could you provide me the code that you are using so I can have look what's going on?
Oops!!! my mistake. Maps were far apart when I zoom to one the other is placed on its location. I was also wondering why this was so!! When I tested to load two ENCs n tpk n zoomed separately each one with button each was placed on its location. Thanx for help.
Its been a while to contact u as we are exploring other things too and engaged in other things also. As I asked previously I want to add Custom drawing in my app but I think we r limited only to using the Drawing shapes available in SDK like SimpleMarkerSymbol, SimpleLineSymbol with fixed styles!!!! If I want to add any type of symbol, probably made with WPF drawing, so how can I do this. I dont want to use PictureMarkerSymbol. My point actually is that how can I add shape other than those available in SDK? Do I have to extend from the Symbol Class or other way such as WPF drawing can be added but how in both cases?
At the moment we don't provide integration between wpf drawings and runtime out of the box so your options are
- Use existing graphic symbols (picture markers, simple markers, composite markers, CIM etc...)
- Write your symbols in XAML and transform that to picture and use picture markers. Get's full map support. Works only for points.
- Use map overlays instead graphics. Not as performant and doesn't support hit testing out of the box.
- Draw your graphics on top of the map and integrate that with the map interactions.
Since you don't want to use picture markers, you can try to use overlays or write your own drawings on top of the map (using canvas or similar) and then write integration between that and map view. You need to make sure that you respect the spatial reference of the map with your drawings.
This is where we r actually stuck...we need custom drawing with hit testing. Is there any sample available for the suggestions u have given specially interaction btw map view and canvas or any other?
Can we extend the Symbol Class? if yes which methods to override to make custom symbols? I m not sure this is possible?
Another team in our dept worked on SharpMap which has provision for custom drawings. I believe ArcGIS SDK is much more powerful and professional SDK and hope it will provide us with many good features unless these r unfolded and explored....
Many things depends on what kind of drawings you need to write and how the hit test is related to that. We don't have examples on about custom drawings on top of the map approach but I know that there are customers that have implemented that so it is doable. For picture markers and overlay you can find some tips from https://www.arcgis.com/home/item.html?id=71e82397445a47629e45f15161ca4761
I will have a look and see if it is of any use to us
Hi, I have seen ArcGIS Runtime SDK for .NET: Tips and Tricks video but in the attached samples there is no demo project for funky symbols..!! Can u provide me that bcz as I told we r stuck only in specialized symbols using ArcGIS. Thanks.
Hi,
It's here: http://www.arcgis.com/home/item.html?id=0cc23bf8894246218273f6d4dd274b30
Additional session content here: http://www.arcgis.com/home/search.html?q=owner%3Art_gallery%20devsummit&t=content
Cheers
Mike