|
POST
|
You can try ArcGIS API for Microsoft Silverlight/WPF v2.1 http://help.arcgis.com/en/webapi/silverlight/2.1/
... View more
10-07-2010
07:33 PM
|
0
|
0
|
1831
|
|
POST
|
I don't know if this is something we can share but I can give you a general idea of the approach we've taken. In WPF4, every UIElement has additional property and events for Manipulation. IsManipulationEnabled need to be set to true if you will be subscribing to ManipulationStarted, ManipulationDelta, ManipulationCompleted, etc. You can look at this link for sample: http://msdn.microsoft.com/en-us/library/ee649090.aspx
... View more
10-07-2010
05:53 PM
|
0
|
0
|
1831
|
|
POST
|
In the code-snippet below, incidentsLayer is the FeatureLayer displayed on my map http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0; graphic is a feature in my incidentsLayer; "agree_with_incident" is a field in the related table http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/1; voteCount is the value I need to update based on the result of my query.
private void QueryRelatedTable()
{
int objectId = Convert.ToInt32(graphic.Attributes[incidentsLayer.LayerInfo.ObjectIdField]);
int relationshipId = -1;
foreach (var relationship in incidentsLayer.LayerInfo.Relationships)
{
relationshipId = relationship.RelatedTableId;
break;
}
QueryTask qt = new QueryTask(incidentsLayer.Url);
qt.DisableClientCaching = true;
RelationshipParameter rp = new RelationshipParameter();
rp.ObjectIds = new int[]{objectId};
rp.OutFields = new string[]{"agree_with_incident"};
rp.RelationshipId = relationshipId;
qt.ExecuteRelationshipQueryCompleted += qt_ExecuteRelationshipQueryCompleted;
qt.ExecuteRelationshipQueryAsync(rp);
}
private void qt_ExecuteRelationshipQueryCompleted(object sender, RelationshipEventArgs e)
{
RelationshipResult pr = e.Result;
voteCount = 0;
foreach (var item in pr.RelatedRecordsGroup)
{
voteCount = item.Value.Count();
break;
}
}
... View more
10-07-2010
05:48 PM
|
0
|
0
|
1906
|
|
POST
|
I don't know if I understood your question so please correct me if I'm wrong. Your GraphicsLayer contain graphics with point geometry and is unable to select the features with point selection? Have you looked at these two examples? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SelectGraphics http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection What I suspect could be happening is that the graphic is selected but you do not change its Selected property to true. If you are using the Editor (as in the second sample), you do not need to set this property.
... View more
10-07-2010
05:37 PM
|
0
|
0
|
1361
|
|
POST
|
You can set your query's OutFields property so that it will return only the fields that you want it to return.
query.OutFields.AddRange(new string[] { "FIELD_NAME" });
... View more
10-07-2010
05:22 PM
|
0
|
0
|
1561
|
|
POST
|
Here's the answer I got after talking to our lead: MeasureAction is designed to remove the graphic from the map after it is done. Should you need the graphic to stay in your map, you can use Draw object for that. Retaining the graphic drawn with MeasureAction is not supported.
... View more
10-07-2010
01:01 PM
|
0
|
0
|
2063
|
|
POST
|
Can you try using the same parameters outside the SL app? You can use fiddler to see what requests are made by the SL app. Use the same parameters in your browser. This will help us narrow down the issue. Try a different WKID too if you see any difference. The sample in our SDK uses miles and it works fine. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Lengths
... View more
10-07-2010
09:47 AM
|
0
|
0
|
401
|
|
POST
|
The OverviewMap binds to a map, not its extent. It does however update its extent based on the map's extent. The issue in the second link is when you switch out of the tab, the OverviewMap becomes blank until you change the map's extent again. This bug still exists and we are working on getting this fixed.
... View more
10-07-2010
09:34 AM
|
0
|
0
|
534
|
|
POST
|
The MagnifyingGlass is just like any other Control. It's Visibility can be checked and set just as you would any other Control. Questions: 1) How to check whether the tool is collapsed or not (can't do like that: MyMagnifyingGlass.Visibility.Collapsed )? if (this.MyMagnifyingGlass.Visibility == System.Windows.Visibility.Collapsed) 2) How to set the tool Collapsed or Visible? this.MyMagnifyingGlass.Visibility = System.Windows.Visibility.Visible;
... View more
10-07-2010
09:26 AM
|
0
|
0
|
344
|
|
POST
|
Yes that is correct the DictionaryConverter has been marked obsolete since Silverlight 4 has support for binding into dictionaries i.e. {Binding [AttributeKey]}.
... View more
10-07-2010
09:15 AM
|
0
|
0
|
539
|
|
POST
|
Support for coded value domains and subtypes is new v2.0. Therefore, v1.2 did not support this.
... View more
10-07-2010
09:13 AM
|
0
|
0
|
329
|
|
POST
|
You will know which features were selected if you have access to the Editor or the FeatureLayer so your PavementPerformanceAction need to expose some Dependency properties for Editor or FeatureLayer. Either of these events can give you what you need: Editor.EditCompleted event FeatureLayer.PropertyChanged event
... View more
10-07-2010
07:23 AM
|
0
|
0
|
1142
|
|
POST
|
I'm afraid you cannot use MapTip for this because MapTips are designed to only show when you enter a feature in its GraphicsLayer.
... View more
10-06-2010
04:39 PM
|
0
|
0
|
566
|
|
POST
|
You cannot use Element binding if _Map is not an element of your application. In other words, you can only use this Map="{Binding ElementName=_Map}" if you had <esri:Map x:Name"_Map"/> Since you define _Map in code-behind, you can also update your MagnifyingGlass' Map property in code behind: MyMagnifyingGlass.Map = _Map; Or you can define _Map as a StaticResource and update your binding. <esri:Map x:Key="_Map"/> private Map _Map = this.Resources["_Map"] as Map; Map="{Binding Source={StaticResource _Map}}"
... View more
10-06-2010
03:51 PM
|
0
|
0
|
568
|
|
POST
|
You are right, in this sample, what gets added are Point and Polyline features only. The snippet here was meant to be a guideline on how you can retain the graphics in your map if the layer that contained them were added/removed by some means. I added a note in my previous post that the code also needs some tweaking 🙂 Adding the fill of the polygon and its additional area information to your GraphicsLayer is not something you can do with our API at this point. This sounds like an enhancement request that I need to forward to our team lead.
... View more
10-06-2010
03:36 PM
|
0
|
0
|
2063
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM | |
| 1 | 04-05-2024 06:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2026
09:38 AM
|