|
POST
|
Have you looked at this related thread http://forums.arcgis.com/threads/17124-Adding-Graphic.Attributes-in-XAML?
... View more
11-18-2010
08:12 AM
|
0
|
0
|
855
|
|
POST
|
Make sure that there are no element overlaps your map. I've seen this happen a few times even if the element overlapping is Transparent, as long as its IsHitTestVisible is true - no mouse events will be raised on the element behind it.
... View more
11-18-2010
08:08 AM
|
0
|
0
|
1149
|
|
POST
|
While EditVertices is active, the edits on the graphic will show until you finalize the edit and call layer.Update() in EditCompleted event to retrieve the original graphic. To save the changes, you will not need to call layer.Update() but instead call layer.EndSaveEdits().
... View more
11-18-2010
08:03 AM
|
0
|
0
|
1151
|
|
POST
|
Thank you for reporting this. We will try to get it fixed in future releases.
... View more
11-18-2010
07:18 AM
|
0
|
0
|
604
|
|
POST
|
When GetMap request is made, the WMS layer has already initialized without failure. You can verify this with Fiddler. Capabilities are retrieved during Initialize(), which means that your host at this point must have been available. However, we do not have an event that is raised when GetMap request fails. What you can do is override GetUrl() of the WMS layer, create a delegate for the OnUrlComplete parameter so you can do the error-handling yourself. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit.DataSources~ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer_members.html
... View more
11-18-2010
06:55 AM
|
0
|
0
|
919
|
|
POST
|
Sorry I missed that you were looking at LocationToAddressAsync(), the SpatialReference that you define for the MapPoint parameter is the SpatialReference used for the outSR.
... View more
11-18-2010
06:31 AM
|
0
|
0
|
1005
|
|
POST
|
You should be able to perform the following AddressToLocationAsync call.
public MainPage()
{
InitializeComponent();
Locator l = new Locator("Your GeocodeServer URL - v10 & up");
AddressToLocationsParameters p = new AddressToLocationsParameters()
{
OutSpatialReference = new SpatialReference(4326)
};
p.Address["Street"] = "380 New York St.";
p.Address["City"] = "Redlands";
p.Address["State"] = "CA";
p.Address["ZIP"] = "92373";
p.OutFields.Add("*");
l.AddressToLocationsCompleted += l_AddressToLocationsCompleted;
l.AddressToLocationsAsync(p);
}
void l_AddressToLocationsCompleted(object sender, AddressToLocationsEventArgs e)
{
}
... View more
11-18-2010
06:07 AM
|
0
|
0
|
1005
|
|
POST
|
How about creating your own Renderer that implements IRenderer? http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.IRenderer_members.html In the GetSymbol() you can perform the check on attribute and decide the symbol dynamically.
... View more
11-17-2010
03:10 PM
|
0
|
0
|
687
|
|
POST
|
If you want to accept the change in geometry caused by Cut/Reshape/Union/EditVertices, you can explicitly call SaveEdits(). Otherwise to revert back to the old geometry, the only way is to call FeatureLayer.Update(). Another option is to use v2.1 RTM. Like I said in my previous post, CancelActive command will also cancel edits made by EditVertices command if it were the active command and the changes were not yet commited. However, Cut/Reshape/Union does not cancel their edit with CancelActive command even with v2.1 RTM. The reason is because, the GeometryService call performs this change instantaneously; unlike EditVertices where you have to click back on the feature to finalize the edit. For this case, I would advise to do the first approach.
... View more
11-17-2010
03:01 PM
|
0
|
0
|
1151
|
|
POST
|
That exception is expected because the layer's URL is not a bindable property. It is neither DependencyProperty nor a property that will raise PropertyChanged. It therefore expects a string not a binding statement.
... View more
11-17-2010
02:33 PM
|
0
|
0
|
1397
|
|
POST
|
Would it help to use ClassBreaksRenderer? It has an Attribute property that you can set to decide which Symbol to use based on Minimum and Maximum value. Kindly refer to the following documentation: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ClassBreaksRenderer_members.html http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ClassBreakInfo_members.html Also, please look at this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RenderersXAML
... View more
11-17-2010
01:26 PM
|
0
|
0
|
687
|
|
POST
|
I'm sorry I have more questions than answers. I wanted to know how you load shapefiles to your map? Does it have a corresponding .dbf that holds the attributes of the feature? I imagine that this is where you'd keep record of the object ID. How you create and save the object ID is important to know because it also dictates how you can retrieve them. You can use the graphic's Attributes to hold this information (http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Attributes.html). It says that this is read-only property meaning you cannot create a new instance, but you can update the existing instance. You can do something like:
Graphic g = new Graphic()
{
// set Geometry property from ShapeFile.
}
var objectId; // retrieve from DBF file (?)
g.Attributes["objectid"] = objectId; // to save object id onto an attribute field
var oid = g.Attributes["objectid']; // to retrieve the object id from an attribute field.
Note that in this example, I just used "objectid" as my key for the field. You can name this as you wish but be mindful that the key you used to save is the same key you need to use to retrieve. Shapefile is actually an unfamiliar territory for me but I found some links that might be useful for your project. http://esrislcontrib.codeplex.com/ http://forums.arcgis.com/threads/6425-Export-to-shapefile-other-format http://forums.arcgis.com/threads/13680-Download-Shapefiles-Similar-to-the-Extract-Service-in-ArcIMS Other developers are welcome to provide additional help 🙂
... View more
11-17-2010
01:16 PM
|
0
|
0
|
1773
|
|
POST
|
Yup, that is why I suggested in making AutoSave to false and just explicitly call SaveEdits() http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html when the geometry change seem correct 😛 This should give you a chance to undo or cancel the changes in the Editor's EditCompleted event.
... View more
11-17-2010
12:33 PM
|
0
|
0
|
1151
|
|
POST
|
Sure, you can subscribe to InitializedFailed event, both WMS layer and ArcGISDynamicMapServiceLayer have this. http://help.arcgis.com/en/webapi/silverlight/2.1/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Layer~InitializationFailed_EV.html You may also subscribe to Initialized event and check for when the layer's InitializationFailure is not null.http://help.arcgis.com/en/webapi/silverlight/2.1/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Layer~InitializationFailure.html
... View more
11-17-2010
12:30 PM
|
0
|
0
|
919
|
|
POST
|
Thank you for your post. It is by design that the two controls do not behave the same. Also, updating the position of the magnifier is currently not supported. I will share this information with our dev lead for consideration.
... View more
11-17-2010
12:22 PM
|
0
|
0
|
580
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|