POST
|
Thank you Jennifer. Can you tell me if the fix will be included in the next release (coming soon I think)? Since some of our features depend on it, we would like to know what will be possible in the short term.
... View more
10-20-2011
01:33 AM
|
0
|
0
|
198
|
POST
|
I am trying to do provide some in-place editing in some of our custom symbols. So I have to put a textbox inside the symbol templates. Doing so results in crashes in some ArcGis APIs. I tracked down at least one bug: GraphicsLayer.FindGraphicsInHostCoordinates(Rect) is buggy if the intersectingRect contains the textbox. Here???s why. It first uses VisualTreeHelper.HitTest to find the visuals inside the rectangle, but then casts them to UIElement: elements.Add(result.VisualHit as UIElement) The problem with that line is that some Visuals are not UIElement, e.g. when using textboxes. Because of that a null is inserted inside the result. The next step is calling the private GetGraphicsFromUIElements() method, which doesn???t handle nulls and crashes with a NullReferenceException. I suspect that GraphicsLayer.FindGraphicsInHostCoordinates(Point) would crash as well since it tries to perform a direct cast: (UIElement)hitTestResult.VisualHit which would surely result in an InvalidCastException.
... View more
10-18-2011
01:41 AM
|
0
|
3
|
816
|
POST
|
This is the intended behavior. When you activate another command before completing the edit, the uncommitted geometry change will be lost. To complete the edit, you click on the geometry being edited or click on another feature. Note also that moving a point, unlike moving/editing polyline/polygon/envelope geometries is committed as soon as the geometry is moved. Hello. I don't unterstand the second way. I've tryed to click on another graphic of the same featurelayer, but it doesn't work (the modified graphic comes back to original form). What do you mean with this alternative ? thanks.
... View more
07-12-2011
04:52 AM
|
0
|
0
|
249
|
POST
|
Hi santoshf2, Which kind of projection are you using ? If you are using the "standard" projection of ArcGIS Server, the map is in WebMercator format. If you want to have a projection similar as Google or Bings, you must convert this format into WGS 84. There is a class on API to help you to make the convertion. See what I have do on my project : [PHP] private WebMercator webMercator = new WebMercator(); private void OnMapMouseMove(object sender, MouseEventArgs e) { if (Map == null) { return; } Point screenPoint = e.GetPosition(Map); MapPoint webMercatorMapPoint = Map.ScreenToMap(screenPoint); if (webMercatorMapPoint != null) { MapPoint wsg86MapPoint = (MapPoint)webMercator.ToGeographic(webMercatorMapPoint); Y = wsg86MapPoint.Y; // latitude in decimal X = wsg86MapPoint.X; // longitude in decimal } }[/PHP] If you wanted to show this result into degree/minute/second, you may easily find the good formula on google. Regards Jérôme
... View more
04-21-2011
05:48 AM
|
0
|
0
|
311
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|