POST
|
Hi Jian, Could you please confirm that there's no such event for capturing the buttons' click? Please, if you know, could you share something about the strange behaviors I described above? Thanks, Orlando
... View more
08-28-2012
08:13 AM
|
0
|
0
|
410
|
POST
|
Hi Jiang, Thanks for your answers. Could you please give me an example on how to catch the click event for the buttons of the measurement widget? It would be nice to have the option to remove the behavior of showing coordinates while you move the mouse with the location tool. This is for the sake of consistency. Shouldn't the the map behave such that when I'm in drawing the points for measuring of any type, the dragging on the map is completely disabled? Something I didn't mention is that in the measurement sample, when you are setting the polygons points on the map, if you happen to do a drag -- whether it's accidental or on purpose -- the map starts panning and it gets locked on the panning. The only way to avoid this was to set map.isPan to true. However, because I'm also using the navigation toolbar, setting map.isPan to true, seems to be causing another weird behavior: when I use the zoom in/out tools the map is drawing the zoom box, but doing panning! Should I provide you with an example? My client was using an application written with the old ASP .Net ADF, and they ask me why if the old measuring is written in JavaScript, the "new" measurement reacts to the clicks so different. They didn't have the problems we are seeing now. I tell them that it's most likely a complete different development group at ESRI, and that they are using slightly different flavor of Javascript technology. I cannot even promise them that it'll get "fixed". What else should I say and expect about this? Thanks in advance for your help, Orlando
... View more
08-08-2012
05:15 AM
|
0
|
0
|
410
|
POST
|
Hi dear colleagues, I would like to know your opinion on the following matter. Actually, I would like to hear someone from ESRI's opinion as well. 🙂 I developed a Silverlight app for a client. They requested a query builder functionality, so I use the Silverlight viewer as a point of reference. Well, I thought I could incorporate handling of subtype and domain values... so I did. It turns out that at last moment (final revision of the product), they referred to the functionality as "useless" (I quote) because it didn't have the "Show unique values" option for every attribute. Well, I did explain the reasons why I didn't include it: I'm not developing ArcMap for web, a user could end up bringing too many thousands of values over the web (despite being in intranet), etc... Let's put aside the complexity of the work required, because what bothers me is the "useless" part, and that they are asking for a bunch of new features or different functionality than what they had approved some months before, during analysis phase. So, what would you guys say about it? Is the Silverlight-viewer filter tool really useless without the "show unique values"? Cheers, Orlando
... View more
08-06-2012
01:44 PM
|
0
|
0
|
1709
|
POST
|
Hi there, I'm using the measurement widget in a JavaScript API application, but the users find the response from mouse events awkward. These are the issues I'm running into: 1. Too often you click on the map, but it seems like the map does not detect the click. 2. When you do a click on the map you should stop the mouse, wait a second and then click, otherwise it thinks like you are panning. Not sure if it's related to item 1. I have deactivated Panning on the map, so it doesn't pan anymore, but we still have to wait for a moment before clicking on the map. The sample from ESRI behaves totally this way: if you do a small drag while selecting the polygon or line vertices, the map gets locked to an endless panning behavior. I wonder if there's a way to change some setting or prevent other click events from being triggered. 3. The tool buttons behave inconsistently: you perform area or length measures one after the other, but for the location tool you need to click on the button every time you want to use it again. This is, the location tool deactivates automatically, whereas the length and area tools don't. 4. The tool buttons are actually toggle buttons: if you click them again they deactivate. How can I change that so they stay active until something else gets activated? 5. Would it be possible somehow access a tool activate event? We are using IE8 and IE9. Should I rather switch to use the Draw toolbar y do the calculations by myself? Cheers, Orlando
... View more
08-02-2012
06:27 AM
|
0
|
8
|
1372
|
POST
|
Hello there... Perhaps someone from ESRI could give me an idea on what's going on here? Bug? Developer mistake? Lack of functionality? Cannot be replicated? Thanks, Orlando
... View more
07-26-2012
06:10 AM
|
0
|
0
|
493
|
POST
|
Hi there, I have a polygon feature class and need to store some times features with shape = null. If I insert an empty-geometry Feature from the Silverlight app, the next time I query features from that feature class, the Geometry of the other Features (with valid polygons) in the app is invalid. For example, extent displays values of NaN. I can see that the JSON response seems to be correct: the Feature comes only with Attributes. I also wanted to update a Feature, such that its Geometry gets removed. So I set Geometry to null and call SaveEdits(), but the request doesn't send the Geometry attribute. I tried removing all rings from the polygon, and it didn't work either. Not sure if this actually screwed up my feature class. How should I deal with this type of requirements? Any help will be appreciated. Orlando
... View more
07-19-2012
08:11 AM
|
0
|
2
|
2938
|
POST
|
The question is simple: Can I update a blob field via a Feature Service? I tried assigning a byte array to the graphic's blob attribute, but it returned an error when applying the edits: {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to apply edits"]}} The server's log shows the following: INFO3 ApplyEdits has completed. 2012-06-02 08:14:34 17022 0.00988 66844 GraphicFeatureServer.ApplyEdits INFO3 Error while creating Insert Cursor for Table: BlobTable. 2012-06-02 08:14:34 17002 66844 GraphicFeatureLayer.Add INFO3 Updated Feature/ Object with ObjectID: 4 in Layer/ Table: BlobTable. 2012-06-02 08:14:34 17002 66844 GraphicFeatureLayer.Update INFO3 Deleted 0 rows in Layer/ Table: BlobTable. 2012-06-02 08:14:34 17002 66844 GraphicFeatureLayer.DeleteByID INFO2 ApplyEdits has started. 2012-06-02 08:14:34 17021 66844 GraphicFeatureServer.ApplyEdits I find odd that it actually breaks in the insert cursor, given that what I sent was a single update. I know that an alternative is to use attachments, or even a geoprocessing service, but it'd be more practical if I can do it directly. Thanks, Orlando
... View more
06-04-2012
06:41 AM
|
0
|
0
|
211
|
POST
|
Thanks a lot Domenico, it looks like your code has pretty much all the necessary pieces, and I can adjust it for what I actually need. You saved me from a little bit of research... 🙂 Take care, Orlando
... View more
04-27-2012
12:15 PM
|
0
|
0
|
261
|
POST
|
Hi there, I'm building a SOE that makes use of IPointToEID.GetNearestEdge(). Since I know that Map services based on MXD files will not be supported in 10.1, I want to use an MSD file. Unfortunately IPointToEID requires a reference to an IMap object that is not available from MSD-based Map services. I wonder if there's an alternative to this method, or perhaps I just have to write my own method to find the Feature (and its subelement?). Thanks in advance for any help, Orlando
... View more
04-24-2012
11:27 PM
|
0
|
4
|
947
|
POST
|
Well, it's true that the toolbar doesn't help that much. For example, I never really tried to add a combobox to a toolbar, but I don't think it was supported. It probably only supports command buttons. On the other hand, what would really be helpful and very tied to ESRI's map functionality is to have those buttons show up as pressed-down when the tool is active and if I pick another tool from pressing other button, the former button gets back to not-pressed state. This would require closer handling of what Draw object is currently active in the map. It would work even if I have different toolbars. Wish list? Or does anyone know of something close to it?
... View more
03-08-2012
10:01 AM
|
0
|
0
|
166
|
POST
|
Use: void featureLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
if (Keyboard.Modifiers == ModifierKeys.Control)
{
....
... View more
03-07-2012
07:01 AM
|
0
|
0
|
192
|
POST
|
I believe to export to Shape File you'll have to create a geoprocessing service that will create the Shape File on the server side, zip up the files and return them to the client.
... View more
03-07-2012
02:58 AM
|
0
|
0
|
167
|
POST
|
You should be able to use a Draw object with any shape to obtain a polygon or a rectangle, then add a Graphic object to the layer and save it. Something like this: graphic = new Graphic();
graphic.Attributes.Add("USER", Application.Current.GetUserName());
// Set other attributes
ESRI.ArcGIS.Client.Geometry.Polygon poly = new ESRI.ArcGIS.Client.Geometry.Polygon();
poly.Rings.Add(new ESRI.ArcGIS.Client.Geometry.PointCollection());
poly.Rings[0].Add(new MapPoint(rect.XMin, rect.YMin));
poly.Rings[0].Add(new MapPoint(rect.XMin, rect.YMax));
poly.Rings[0].Add(new MapPoint(rect.XMax, rect.YMax));
poly.Rings[0].Add(new MapPoint(rect.XMax, rect.YMin));
graphic.Geometry = poly;
featureLayer.Graphics.Add(graphic);
featureLayer.SaveEdits();
Cheers
... View more
03-02-2012
04:10 AM
|
0
|
0
|
315
|
POST
|
That's what I meant by Union(). See example: Envelope extent = new Envelope();
foreach (FeatureLayer featureLayer in featureLayers)
foreach (Graphic graphic in featureLayer.Graphics)
if (graphic.Geometry != null)
extent = extent.Union(graphic.Geometry.Extent);
// do zoom ...
... View more
02-22-2012
06:10 AM
|
0
|
0
|
287
|
POST
|
If you are loading multiple layers at runtime at once and you want to do some processing after all of them have finished updating, you'll have to keep a counter to find out when all of them have completed. Then you can calculate the extent from all layers by using Union() and do your zoom ... I hope that's what you are looking for; I'm not quite sure of your scenario.
... View more
02-21-2012
06:33 AM
|
0
|
0
|
287
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|