|
POST
|
Map Layers property is an observable collection so you can subscribe to CollectionChanged event to be aware of added/removed layers. Also Layers have an 'IsInitialized' property, depending of this value you know if the Initialized event will be fired or not.
... View more
07-23-2010
03:38 AM
|
0
|
0
|
358
|
|
POST
|
Layers property has been added to ArcGISTiledMapserviceLayer in 2.0 http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer~Layers.html
... View more
07-23-2010
02:46 AM
|
0
|
0
|
471
|
|
POST
|
Yes it's available with Javascrip API : see sample http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_query_related.html
... View more
07-23-2010
02:39 AM
|
0
|
0
|
854
|
|
POST
|
I tested with your code and I didn't get any problem. So I don't understand:confused: I guess you have verified that your event handler 'FeatureLayer_MouseLeftButtonDown' is executed? Which ArcGIS SL API version are you using?
... View more
07-22-2010
02:09 AM
|
0
|
0
|
1785
|
|
POST
|
Might be that the status is initialized with coded values such as 0 and 1 and your renderer is using strings "On"/"Off".
... View more
07-21-2010
07:23 AM
|
0
|
0
|
1785
|
|
POST
|
So when I set the graphic.Attributes["status"] to newstatus value, it is not rendered. <esri:UniqueValueRenderer x:Key="MyUniqueValueRenderer" Attribute="Status" > Looks like you are using status in code and Status in XAML. Attribute names are case sensitive.
... View more
07-21-2010
04:27 AM
|
0
|
0
|
1785
|
|
POST
|
It should be automatic when you change the value of an attribute which is used in the renderer. How looks your renderer which is using the attribute 'status'?
... View more
07-21-2010
12:09 AM
|
0
|
0
|
1785
|
|
POST
|
So does that mean Status should be defined as an attribute of the feature? Yes, it's the easiest way. But the status changes dynamically, and the status is passed to the WPF application via WCF operation. So how to assign the new attribute value? You can add attributes at runtime :
if (graphic.Attributes.ContainsKey("Status"))
graphic.Attributes["Status"] = status;
else
graphic.Attributes.Add("Status", status);
... View more
07-19-2010
03:43 AM
|
0
|
0
|
2350
|
|
POST
|
It's because the WindowPanel which is provided in the template is using the LeftButtonDown event to close itself. Then the LeftButtonUp is fired on the underlying elements (a feature layer in your case) because the window panel is no more existing. To avoid this behavior you can create a button (instead a simple image) to close the window (the click event of a button handles both buttondown and buttonup events).
... View more
07-19-2010
01:28 AM
|
0
|
0
|
919
|
|
POST
|
Looks like a standard usage of an UniqueValueRenderer. Create two symbols (in your resources), one green and one red. In your UniqueValueRenderer, affect the red symbol to value 0 and the green one to value 1. The symbol will automatically change when the status value changes. See sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RenderersXAML
... View more
07-19-2010
01:22 AM
|
0
|
0
|
2350
|
|
POST
|
It's because your other layers which are displayed with the radio buttons are not using the same spatial reference that the map. Spatial reference of http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_ShadedRelief_World_2D/MapServer is WGS84 (4326) --> Working Spatial reference of http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer is WebMercator (102100) --> Not working You can't display tiled layer which are not in the same Spatial reference than the map (and you can't change the spatial reference of a map after it's initialized). Then you have to decide if you'd rather to use 4326 or 102100 and select the corresponding tiled services.
... View more
07-19-2010
01:16 AM
|
0
|
0
|
1338
|
|
POST
|
I am glad you eventually made it working. You are right it was likely an issue wit pre release version.
... View more
07-19-2010
01:05 AM
|
0
|
0
|
2014
|
|
POST
|
Did you see the video http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Getting_Started.htm and the tutorial to get started in expression blend 3 http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Expression_Getting_Started.htm ? Note : these links are for ArcGIS SL API 1.x (ArcGIS 9.3). If you want to use the new version 2.0, the documentation is here http://help.arcgis.com/en/webapi/silverlight/help/
... View more
07-16-2010
08:05 AM
|
0
|
0
|
1149
|
|
POST
|
See http://forums.arcgis.com/threads/8396-query-task-on-feature-layer
... View more
07-16-2010
07:47 AM
|
0
|
0
|
341
|
|
POST
|
It's possible to create feature layers by code. Something like:
privatevoid HawaiiPointsInitialised(object sender, EventArgs e)
{
var dynamicService = sender asArcGISDynamicMapServiceLayer;
foreach (LayerInfo fl in dynamicService.Layers)
{
if (fl.DefaultVisibility == false)
continue;
if(fl.SubLayerIds != null && fl.SubLayerIds.Length > 0) // group layer
continue;
FeatureLayer featureLayer = newFeatureLayer();
featureLayer.Url = dynamicService.Url + "/" + fl.ID.ToString();
featureLayer.ID = fl.Name;
myMap.Layers.Add(featureLayer);
}
}
... View more
07-16-2010
07:44 AM
|
0
|
0
|
508
|
| 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
|