|
POST
|
2.I use a color dialog to set the color of border/fill and change opacity, no xaml-defined style. How to do change the color? Are you changing the symbol (i.e creating a new symbol for each color) or are you changing an attribute value that is binded to the border color by your custom symbol? Depending on how it's done, setting RendererTakesPrecedence to false might help.
... View more
01-04-2013
03:36 AM
|
0
|
0
|
1507
|
|
POST
|
Hello, Is it possible to add a new layer from a local ascii grid file? You can develop a custom layer inheriting from GraphicsLayer. Your custom layer might read and decode your ascii file to create the corresponding graphics.
... View more
01-04-2013
03:18 AM
|
0
|
0
|
425
|
|
POST
|
The VisibilityChanged event occurs when the visibility of the sublayers changed. When the visibility of the layer changes, the Layer.PropertyChanged event is fired. In your Handler you will have to test that the PropertyName is 'Visible'
... View more
01-04-2013
03:16 AM
|
0
|
0
|
792
|
|
POST
|
There is nothing at client side allowing to export a graphicslayer to a shapefile. Nevertheless you should be able to do it at server side by using a geoprocessing tool. This thread might help.
... View more
01-04-2013
03:09 AM
|
0
|
0
|
713
|
|
POST
|
Copying a file does not work for example. if (string.Equals(e.JobInfo.JobStatus.ToString(), "esriJobSucceeded")) { Wait.Visibility = Visibility.Collapsed; } Difficult to figure out your issue without more info. I can just suggest you to check that your geoprocessing task is asynchronous since SubmitJobAsync is only working with asynchronous geoprocessing task (and ExecuteAsync with synchronous geoprocessing task). Else using fiddler to look at requests sent to the server might give a clue.
... View more
01-04-2013
02:37 AM
|
0
|
0
|
728
|
|
POST
|
Unfortunately I don't figure out any workaround except rewriting by yourself the webmap serialization but it's not that easy. Maybe, instead of subclassing the GraphicsLayer, you might add the new functionalities you need by using attached properties. But it's just my 2cts because I have idea about your need.
... View more
12-20-2012
10:07 PM
|
0
|
0
|
919
|
|
POST
|
When changing a layers index in the map, the symbology changes to something completely different That doesn't seem to be a normal behavior. Could you give more info on your type of layers and how to reproduce the issue? Thanks
... View more
12-20-2012
10:02 PM
|
0
|
0
|
1507
|
|
POST
|
I'd like to achieve the same behavior of the legend as displayed in the sample provided by Dominique, i.e. displaying all levels of sub layers. I've followed the code in the example and I've bound my legend control to the map. However, I still only get the first level of the layer. The issue is likely in your XAML code but you donn't provide it. From your screenshot, my best bet is either that you set the LegendItemTemplate to null or that you define your own legend Template.
... View more
12-20-2012
09:58 PM
|
0
|
0
|
1517
|
|
POST
|
You can set WebRequest.DefaultWebProxy at the startup of your application then this default proxy will be used by the ArcGIS WPF API. Example of code for using the OS proxy settings with a particular credential: IWebProxy webProxy = WebRequest.GetSystemWebProxy();
webProxy.Credentials = new NetworkCredential("<username>", "<password>");
WebRequest.DefaultWebProxy = webProxy; If you want to use a proxy that is not the default proxy, you can use code like: WebRequest.DefaultWebProxy = new WebProxy("http://<myProxyHost>:<myProxyPort>", true) // secong arg=true to bypass on local
{
Credentials = new NetworkCredential("<username>", "<password>")
}; Note: to get the WPF Runtime local services working with the proxy, you have to bypass the proxy server for the local addresses. If you use the OS proxy settings, you have to check the option �??Bypass proxy server for local address'. For more complex scenario where you would like to define different web proxies by server. You can use code like: WebRequest.RegisterPrefix("http://www.arcgis.com", new WebRequestCreateThroughProxy());
public class WebRequestCreateThroughProxy : IWebRequestCreate
{
private static readonly WebProxy _webProxy;
static WebRequestCreateThroughProxy()
{
_webProxy = new WebProxy("http://<myProxyHost>:<myProxyPort>", true)
{
Credentials = new NetworkCredential("<username>", "<password>")
};
}
public WebRequest Create(Uri uri)
{
var webRequest = WebRequest.CreateHttp(uri);
webRequest.Proxy = _webProxy;
return webRequest;
}
} With this code, only the requests to arcgis.com will go through the proxy. Note: if your proxy is secured with Windows Authentication, you can also get working your WPF application by defining the defaultProxy in the system.net section of your app.config file (without any other code) <system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"/>
</system.net>
... View more
12-19-2012
07:32 AM
|
1
|
0
|
6034
|
|
POST
|
You are right, custom layers inheriting from GraphicsLayer can't be printed. We'll try enhancing it in a future version. Thanks for reporting that.
... View more
12-14-2012
01:21 AM
|
0
|
0
|
919
|
|
POST
|
I tryed that, but those fields are from 0 to inifinit, as there where no scale dependency set, as a workaround I have set the featurelayer to omit scale dependency, but thats not what I want If IgnoreServoceScaleRange is false, the layer honors both scale ranges, the scale range defined at client side (by Layer.MinimumResolution and Layer.MaximumResolution) and the scale range defined at server side. The latter scale range is defined by the MinimumScale and MaximumScale of FeatureLayer.LayerInfo. I guess in your case you have to use these values.
... View more
12-13-2012
07:05 AM
|
0
|
0
|
871
|
|
POST
|
Yes, Symbol has a 'ControlTemplate' property that can be set with a new control Template. Though there is no fined grained API allowing to change an existing ControlTemplate. You have to create a new one from scratch.
... View more
12-13-2012
06:38 AM
|
0
|
0
|
743
|
|
POST
|
If your legend control is already in your main view, you can't put it in a child window. Silverlight doesn't support adding the same UIElement in 2 places. Instead, either create a new legend by code (though you can defined the legend style only once in the ressources) or remove the legend from your main view before adding it to your child window.
... View more
12-13-2012
06:35 AM
|
0
|
0
|
835
|
|
POST
|
Your feature layer doesn't allow querying on related data. If you look at this working sample : http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/0 you'll notice the 2 relationships to 'Tops' and 'Fields', and the 'Query Related Records' URL at the botton of the page. Your service has not these capabilities. To allow querying on related data, you must defined a Relationship in your geodatabase and your published map document must contain the 2 layers or tables involved in the Relationship class.
... View more
12-13-2012
06:22 AM
|
0
|
0
|
1699
|
|
POST
|
When this loop runs, the if statement finds true one time and executes the assignment, but the value of ID remains null. The messagebox however shows a value of 739. I just don't get it and am totally frustrated. Can you think of anything else? Likely your value is not a string so casting it to string returns null. Try: ID = a.Value.ToString(); instead.
... View more
12-12-2012
01:06 PM
|
0
|
0
|
1699
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|