The sample illustrates how to use the ArcGISWebClient class to post multi-part content (e.g. file) to a service\operation as mentioned in its description.
If you want just to load local shapefile to your map at runtime you can check "Add Shapefiles and Raster" sample as It will load your content as ArcGISLocalDynamicMapServiceLayer.
Thanks for responding! 🙂I checked the "Add Shapefiles and Raster" sample in the WPF SDK Samples but the live sample throws a Nullpointer Exception after adding my local shapefile.I created a new WPF project from scratch with the code from the live sample to check the exception.
arcGisLocalDynamicMapServiceLayer.GetDetails(dynamicLayerInfo.ID, (featureLayerInfo, exception) =>
{
switch (featureLayerInfo.GeometryType) <-- featureLayerInfo is null
{
//set renderer
[...]
}
}
I modified the code and set the renderer with a SimpleFillSymbol manually but I can't see my shapefile on the map.I also checked the sample/code from: http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9This sample is missing the switch-statement and it's running without problems/exceptions but I can't see my shapefile on the map too 😞What am I doing wrong? Hi,
What's the timescale for your project?
Cheers
Mike
The project will only start in a few weeks. But I have just two days left vor evaluating the WPF SDK.