We have an old VB6 application that uses ESRI's VB map control to display map data that our customers' install locally on the laptops that are running the app.
I'm working on a XAML/WPF replacement using ArcGIS runtime for .NET, and I'm not having much luck getting started.
The customers use maps with varying degrees of sophistication, but some make extensive use of ArcMap capabilities, and configure varying numbers of controls within the map - feature queries, searches, distance measurement, etc. It's not clear to me to what degree ArcGIS runtime for .NET supports these. To date, I've not even been able to load a map. Or, rather, I've not been able to create a map package.
The customer who needs this first has sent me an .mxd file, with accompanying .gsd's. When I try to create a map package with runtime support, in ArcMap 10.4, I get errors:
- 00174 Label expression uses VBScript, this is not support in the ArcGIS Runtime
- 24067 Annotation expression from annotation class "Default" uses VBScript, this is not supported in the ArcGIS Runtime
- 10001 Layer's data source has a different projection [NAD_1983_Lambert_Conformal_Conic] than the data frame's projection
- 20005 Annotation feature class contains a symbol in the symbol collection with the Rotate With Transform option disabled
What do I do next?
Do I ask the customer to rework their map data to not use VBScript? How much work are we asking the customer to do, to make their data work with ArcGIS runtime, when it worked just fine with the old VB control?
I have to assume they have a reason for using label and annotation expressions. Are there alternatives that will work with 10.4 ArcGIS runtime, that will still work in their existing 10.0 ArcGIS environment? How do they make these changes? Is there some way of automating the transformation?
Is there some alternative method for serving the map data that doesn't have these limits? If we have a local copy of ArcGIS running on the laptop, serving the data, could we display it using the Runtime .NET control?