|
POST
|
I thought I knew this but I guess I don't. Given a graphic with attributes, how do you obtain the value of a specific attribute key? I have the following: That should work. Might be there is a blank or a special character in your key. Could you check with this code which for sure will use the right name: // How to get at graphic attributes
foreach (var a in g.Attributes)
{
//MessageBox.Show(a.Key + ": " + a.Value);
if (a.Value != g.Attributes[a.Key])
MessageBox.Show("Strange error here: " + a.Key);
}
... View more
12-10-2012
10:57 PM
|
0
|
0
|
1699
|
|
POST
|
The sublayer order is defined at the server side when you publish the service. Nevertheless from ArcGIS for SL 3.0 and ArcGIS Server 10.1, there is a new possibility to change the layer order by using dynamic layers (if that capability has been turned on at the server side). See sample.
... View more
12-10-2012
06:26 AM
|
0
|
0
|
592
|
|
POST
|
So in ArcGIS API for Flex 3.0, how does one obtain the visible layers of an ArcGISTiledMapServiceLayer for the sake of knowing which layers are visible? I am not sure about FLEX but for Silverlight you can get a sublayer visibility by using either GetLayerVisibility or the DefaultVisibility of the Layers array.
... View more
12-10-2012
06:22 AM
|
0
|
0
|
396
|
|
POST
|
We've also tried the example found here:http://broux.dominique.free.fr/Silve....htm#LegendTOC. This example works better in that it will allow you to turn the layers on and off but the scale dependent layers in the legend still stay greyed out when they are drawing. I am not able to reproduce the issue, could you give more info on how to reproduce it? This example works better in that it will allow you to turn the layers on and off That's because in the example there are 2 checkboxes that overlaps, one with 'IsEnabled="{Binding IsInScaleRange}"' to get a grayed effect, one without setting IsEnabled to be able to turn on/off the layers even if they are not currently visible.
... View more
12-10-2012
06:11 AM
|
0
|
0
|
551
|
|
POST
|
Is there a way to add attributes to my graphic? Yes you can add attributes with values coming from your related tables. graphic.Attributes["myNewAttribute"] = myValue;
... View more
12-10-2012
06:08 AM
|
0
|
0
|
724
|
|
POST
|
There is no property change on the graphicslayer that I can see so how does one ensure that the graphics from the previous results are always cleared? Did you try to subscribe to GraphicsLayer.Graphics.CollectionChanged event?
... View more
12-10-2012
06:06 AM
|
0
|
0
|
1021
|
|
POST
|
It's likely due to an issue in the referenced dlls: - double check the ESRI referenced dlls (check that the path points to the right version) - clean your solution - exit from VS - remove bin and obj directories - try building again the project
... View more
12-10-2012
05:59 AM
|
0
|
0
|
506
|
|
POST
|
Your ListBox is binded to the Layers property of the map. It means that you get only the first level of group layers. To get others layers you need to get through the layers hierarchy. The easier way to do that is to use the LegendControl. The GroupLayer sample seems to do exactly what you are expecting, no?
... View more
12-10-2012
05:51 AM
|
0
|
0
|
1517
|
|
POST
|
MapPoint P = new MapPoint(i_lt, i_lon);//,new SpatialReference(102100)); Graphic graphic = new Graphic() { Geometry = P,// mercator.FromGeographic(P), You have to set the WGS84 spatial reference to your mappoint. Something like: MapPoint P = new MapPoint(i_lt, i_lon,new SpatialReference(4326));
Graphic graphic = new Graphic()
{
Geometry = mercator.FromGeographic(P),
... View more
12-10-2012
05:35 AM
|
0
|
0
|
853
|
|
POST
|
I don't see anything wrong in your code. Note that the hide delay is calculated from the moment you leave the graphic. As long as you hover the graphic, the maptip is visible whatever the maptipdelay. Can this explain your behavior? Sidenote: to avoid the creation of one maptip by graphics, you could create only one and affect it to the graphics layer.
... View more
12-10-2012
05:31 AM
|
0
|
0
|
528
|
|
POST
|
You are right there is an issue within the ArcGIS API for Silverlight. We'll try to get it fixed in a future version. Thanks for reporting that.
... View more
12-10-2012
04:51 AM
|
0
|
0
|
556
|
|
POST
|
Seems to be a SL viewer question. Better to post it on the ArcGIS Viewer for Silverlight forum.
... View more
12-10-2012
04:49 AM
|
0
|
0
|
868
|
|
POST
|
Can someone tell me if this is 'dangerous' or if someone at esri can explain why it still works. The bug occurs only at design time, we never noticed any problem at run time (it works because there is a type converter converting comma separated strings to an array of string).
... View more
12-10-2012
04:45 AM
|
0
|
0
|
1198
|
|
POST
|
You are right, there was a bug when many requests were sent to the server in little time. This bug is fixed in the next release (3.1)
... View more
12-10-2012
04:42 AM
|
0
|
0
|
1405
|
|
POST
|
I can't access to the application you provided. I get 'server internal error'.
... View more
12-10-2012
04:23 AM
|
0
|
0
|
1906
|
| 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
|