|
POST
|
Looks like you run into an IE limitation : the Url lenght must be less than 2083. The Firefox limit is much higher and the Query Task works because the request is automatically forced to POST when the Url is too long.
... View more
06-23-2010
04:02 AM
|
0
|
0
|
701
|
|
POST
|
I already got this error when there is a mismatch in the ESRI.ArcGIS.Client and ESRI.ArcGIS.Client.bing references (not the same version number). Verify the versions of these 2 packages and might worth the try to remove and to add again the references.
... View more
06-22-2010
02:58 AM
|
0
|
0
|
966
|
|
POST
|
To create KML files, you can use the GP tools : MapToKML and/or LayerToKml. To create a kml layer in a ESRI silverlight application, there is a sample here : http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16487 and a thread here : http://forums.arcgis.com/threads/4897-KML-layer
... View more
06-22-2010
02:53 AM
|
0
|
0
|
945
|
|
POST
|
This info is available with the REST API as well. Example : http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0?f=pjson returns: {
"id" : 0,
"name" : "Earthquakes from last 7 days",
"type" : "Feature Layer",
"description" : "Latest Earthquakes from the USGS CSV repository.\n\nhttp://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-M1.txt \n\nThe source network, ID, version, date, location, magnitude, depth (km) and number of reporting stations are in this layer. This layer is updated every 5 minutes.",
"definitionExpression" : "",
...... But we have to request by yourself the rest endpoint.
... View more
06-22-2010
02:46 AM
|
0
|
0
|
1420
|
|
POST
|
It's not working, because we can't load images across schemes in a Silverlight application. Look at http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/31/Using-services-across-schemes.aspx for more info.
... View more
06-22-2010
02:43 AM
|
0
|
0
|
566
|
|
POST
|
Sorry, no idea. It looks like the issue is coming from the REST API and is not related to the FLEX API since we can reproduce the strange behavior just by requesting the REST End points. At first glance I will say that there is a bug (or a behavior I can't explain!) in the REST or the server API. I suggest you post a message to the REST API forum.
... View more
06-18-2010
01:45 AM
|
0
|
0
|
1182
|
|
POST
|
My understanding is that you need to make the difference between a map server and a feature server in order to know if you need to instantiate an ArcGISMapServiceLayer or FeatureLayers. Note that the REST API is giving this info. For example looks at : http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes?f=pjson The serverExplorer sample is deserializing this info in the class Service (Property 'Type'), but it's only taking care of MapServer service (when the sample has been done, FeatureServer was not existing yet). So you have to extent the sample to take care of feature services. Look at the server.cs code: foreach (Service service in catalog.Services) {
switch (service.Type) {
case MapService.TYPE:
........
... View more
06-18-2010
01:38 AM
|
0
|
0
|
1752
|
|
POST
|
Hi Charlie, When you say: The checkbox for the service is the only way to toggle the visibility of All the layers at once. it looks like you are adding the ArcGISDynamicMapServiceLayer AND the feature layers to your map. This would mean that the same features are displayed twice, once with the map service and once with the feature layer. Then you would have to switch off the 2 layers to get nothing. You have to decide to use either one ArcGISDynamicMapServiceLayer or many feature layers. It's true that to get maptips you need feature layers, but you will download an enormous amount of data. If maptips are your only reason to use feature layers, I think you should rather consider to use the identify task with a DynamicMapServiceLayer.
... View more
06-18-2010
01:24 AM
|
0
|
0
|
476
|
|
POST
|
But does 2.0 support VS 2008? I see the minimum install is VS 2010 and I m using WPF not silverlight. We are using Expression Blend 3 . So I don't think upgrading to 2.0 is possible at this time. You are right. I have checked with the sample and my code and it is similar I cannot figure out why the features layer is not rendered. First, you have to figure out if the issue is coming from the server or from the client. Try to request your service directly from your browser. A request like http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0?j=pjson must return the layer information. A request like http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0/query?text=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&where=1%3D1&returnGeometry=true&outSR=&outFields=*&f=pjson must return a list of features. If it's working well at the server level, there is probably an issue in your client code. - verify the symbology you gave to your layer - use fiddler (or firebug) to analyze the requests send to the server
... View more
06-17-2010
03:08 AM
|
0
|
0
|
1845
|
|
POST
|
The scale info is available by the REST API (e.g. http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/4?f=pjson) but is not available out of the box with the Silverlight API (performance issue). You have to request the rest end point by yourself. jgalang posted a nice TOC sample (http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16851) which displays the TOC in a tree view and respects the scale dependencies. I guess he did almost what you are trying to do.
... View more
06-17-2010
02:49 AM
|
0
|
0
|
383
|
|
POST
|
Is it possible to adjust the opacity on a layer level rather than a service level (ArcGISDynamicMapServiceLayer)? Not possible at the client level. We can only set the visibilty On/off. the VisibleLayers method allows you to attack the layer visibility from the service level (its a service method) - can you just set the visibility property on a particular layer. You can set the visibility on a particular layer but you have to use the 'VisibleLayers' property (no other method at the layer level).
... View more
06-17-2010
02:39 AM
|
0
|
0
|
371
|
|
POST
|
Any geoprocessing tool that outputs a feature class allows you to choose either a shapefile or geodatabase feature class as the output format. In your case you could use the 'Clip' GPtool which extracts the input features that overlay the clip features. The clip features could be an input parameter that you would populate by using a GPRecordSet at the client level. Here is sample of such a GP tool whose purpose is 'Using a polygon digitized by the user, this service clips layers from the study area into a file geodatabase, then creates a .zip file that can be downloaded by the user.' http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//00930000003t000000.htm
... View more
06-17-2010
02:35 AM
|
0
|
0
|
568
|
|
POST
|
Not sure what you mean by the type of the sublayer (raster and feature layer?). The sublayers are mainly depending on the service. With a DynamicMapServiceLayer, the rendering is done on the server, and the client is just displaying the image coming from the server. With a feature layer service, there is no sublayers and the rendering is done on client.
... View more
06-17-2010
02:23 AM
|
0
|
0
|
1752
|
|
POST
|
By design, the FeatureDataGrid is synchronizing automatically the graphic selection and the datagrid selection. So you are right, the simplest way to accomplish the interaction between the GraphicsLayer and FeatureDataGrid is through selection of the graphic (and of the grid rows). When I hover over the feature (turns to bright blue), then I want my data grid row to scroll into view and be the same bright blue. With your code, you should see the row highlighted when hovering over the graphic. Is it working? I also want the user to be able to hover over the row in the grid and the row turns light blue along with the feature. This can be done by changing the grid selection when hovering over the grid row. Something like (sorry in C#): private void MyDataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
{
DataGrid grid = sender as DataGrid;
e.Row.MouseEnter += (s, args) => Row_MouseEnter(s, grid);
e.Row.MouseLeave += (s, args) => Row_MouseLeave(s, grid);
}
void Row_MouseLeave(object sender, DataGrid grid)
{
DataGridRow row = sender as DataGridRow;
grid.SelectedIndex = -1;
}
void Row_MouseEnter(object sender, DataGrid grid)
{
DataGridRow row = sender as DataGridRow;
grid.SelectedIndex = row.GetIndex();
} I would also like to allow them to select the feature if they want (which of course would be a different color). humm, would need a specific development to make the difference between a feature selected by clicking on it or just by hovering over it. I guess that is makeable, but... The other problem I am having is the row does not turn bright blue (when hovering over a feature) unless I already have a row selected in the data grid. Am I missing something simple? I didn't reproduce this issue (but with API2.0, so...)
... View more
06-17-2010
02:15 AM
|
0
|
0
|
1950
|
|
POST
|
The binding looks correct to me. Then you have to verify the binding between the checkbox and the 'Visible' layer property. But, as it's working for most layers, I guess it's correct. What is exactly the issue with the feature layer? Is it only a refresh issue (i.e it's working fine after you zoom or pan the map, but it's not working at the exact moment you check or uncheck the visibility)?
... View more
06-16-2010
02:37 AM
|
0
|
0
|
476
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 09-07-2021 03:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|