|
POST
|
Is it a compile time error? Maybe it does not find a constructor to your DriveTime control or it is unable to initialize the contents of your control. There must be something wrong with the control itself then. You can place breakpoint before DriveTime's Initialize to see where it could be failing. Are you able to see its contents in design-time? Sometimes just viewing the design page gives you error messages that you would not see in MainPage but might see in the control you are adding.
... View more
10-20-2010
08:32 AM
|
0
|
0
|
813
|
|
POST
|
It's hard to tell what's wrong in your XAML, unbDriveTime, I suspect is your class. I believe you need to add the namespace of your assembly in XAML xmlns:local="clr-namespace:YourNameSpace" and then do <local:unbDriveTime ..../>
... View more
10-20-2010
06:54 AM
|
0
|
0
|
813
|
|
POST
|
Thank you for your post. I can see why this is a problem. We'll try to get it fixed in the next release.
... View more
10-20-2010
06:36 AM
|
0
|
0
|
619
|
|
POST
|
If you are able to see the image using Image, I don't see why you would not be able to see the PictureMarkerSymbol. Debug through your code to see if the graphic with PictureMarkerSymbol is actually added to your layer. Or try to test this way, add the following lines to your GraphicsLayer definition in XAML. If you see this, maybe something else is wrong in the code-behind when you retrieve the Symbol.
<esri:GraphicsLayer.Graphics >
<esri:Graphic Symbol="{StaticResource DefaultMarkerSymbol}" >
<esri:MapPoint X="-140.9" Y="63.391" />
</esri:Graphic>
</esri:GraphicsLayer.Graphics >
... View more
10-20-2010
06:26 AM
|
0
|
0
|
749
|
|
POST
|
You can use MeasureAction. It measures distance, area and radius on the map. It has several properties if you look at http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Behaviors~ESRI.ArcGIS.Client.Actions.MeasureAction_members.html. MapUnits can be set to unit other than decimal degrees, MeasureMode can be Radius. You can look at this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#UtilityActions
... View more
10-20-2010
06:13 AM
|
0
|
0
|
768
|
|
POST
|
Look at the Utilities section in the SDK. This example might be useful: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Relation Or you can also use the Editor to create Select buttons as in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection
... View more
10-19-2010
11:46 PM
|
0
|
0
|
480
|
|
POST
|
Can you just use FeatureDataGrid instead? Bind Map to your map and GraphicsLayer to your SelectionGraphicsLayer, since the query results are added to your GraphicsLayer.
<esri:FeatureDataGrid Grid.Row="1" x:Name="QueryDetailsDataGrid" Height="170"
Map="{Binding ElementName=MyMap}"
GraphicsLayer="{Binding ElementName=MyMap, Path=Layers[MySelectionGraphicsLayer]}" />
Your ComboBox can probably contain FeatureLayers: XAML-code
<ComboBox x:Name="Layers" >
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding LayerInfo.Name}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
Code-behind (maybe after Initialize)
string baseUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer";
for (int i = 0; i <= 5; i++)
{
FeatureLayer featureLayer = new FeatureLayer() { Url = string.Format("{0}/{1}", baseUrl, i)};
featureLayer.Initialize();
layers.Add(featureLayer);
}
Layers.ItemsSource = layers;
Layers.SelectedIndex = 0;
Also, I would tweak the query to return all fields.
QueryTask queryTask = new QueryTask((Layers.SelectedItem as FeatureLayer).Url);
//... more code here
query.OutFields.Add("*");
... View more
10-19-2010
11:24 PM
|
0
|
0
|
1819
|
|
POST
|
You might have already visited the following sites: http://arstechnica.com/microsoft/news/2010/01/why-microsoft-isnt-working-on-silverlight-64-bit.ars http://blogs.msdn.com/b/ieinternals/archive/2009/05/29/q-a-64-bit-internet-explorer.aspx The 64-bit version of Internet Explorer is not currently supported by Silverlight (neither do Flash) so users of your Silverlight app need to use 32-bit version. There's some Q&A on the second link on what kind of things will not work on 64-bit IE.
... View more
10-19-2010
10:08 PM
|
0
|
0
|
730
|
|
POST
|
Have you looked at this sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip You will not need DictionaryConverter if your using Silverlight 4, because this is already supported "{Binding [STATE_NAME]}" where STATE_NAME is just the Attribute Key. If you use the sample above, instead of getting the features from a query to FeatureService, you will create your own graphic, see this other sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRSS
... View more
10-19-2010
08:56 PM
|
0
|
0
|
2314
|
|
POST
|
You can style graphic by either setting its Symbol or setting its layer's Renderer. You can update the symbol templates too to change the appearance according to your need. There are several samples here: http://esriurl.com/slsdk2 Was there anything specific that you cannot do using the above approach?
... View more
10-19-2010
07:41 PM
|
0
|
0
|
856
|
|
POST
|
Also, if the API developers don't have an issue with it, maybe in a future version could make the actual double value property public and read-only to the users? I'll forward your request to our team lead for discussion. You can do this for conversion to double:
string stringValue = ScaleBarValueTextBlock.Text.Replace(ScaleBar.DisplayUnit.ToString(), string.Empty).Trim();
double doubleValue = Convert.ToDouble(stringValue, CultureInfo.InvariantCulture);
// or this below
//double doubleValue = double.IsNaN;
//double.TryParse(stringValue, out doubleValue);
... View more
10-19-2010
07:33 PM
|
0
|
0
|
1455
|
|
POST
|
You might be experiencing this: http://forums.arcgis.com/threads/10033-Overview-map-does-not-show-contents-until-after-view-extent-changed This will be fixed in the next release. When the OverviewMap loads after it has already updated its extent with the Map's new extent, it fails to update itself until have the map's extent changes again. Changing the panel's Visibility has the same effect.
... View more
10-18-2010
06:44 AM
|
0
|
0
|
440
|
|
POST
|
Re: the sample at http://help.arcgis.com/en/webapi/sil...tm#OverviewMap Switch to the XAML page then the Live Sample page, and note that the overview map initially does not draw. You need to pan/zoom the map before the overview map initialises. This also happens when I compile and run this code locally. Any ideas why the overview map doesn't show immediately? This will be fixed in the next release.
... View more
10-18-2010
06:41 AM
|
0
|
0
|
906
|
|
POST
|
You can call the map's ZoomTo(Geometry geometry), where geometry is the geometry of the selected feature. If the geometry is a MapPoint, you can call the map's ZoomToResolution(double Resolution, MapPoint center) or create an extent with the MapPoint first before passing to map's ZoomTo(Geometry geometry).
... View more
10-18-2010
06:23 AM
|
0
|
0
|
572
|
|
POST
|
Wire up to the Map's ExtentChanged event to see if the Map changes Extent. Does the map extent change? See if adding an initial extent to the map makes a difference.
... View more
10-18-2010
06:14 AM
|
0
|
0
|
302
|
| 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
|