POST
|
The solution for this, in case someone is interested, has been to increase the extent by a small percentage of its Maximum and Minimums. That opens the zoom enough for it to show at the right place. It still cuts some markers from view; but in general it handles real well. Hope that helps someone else.
... View more
06-14-2013
11:28 AM
|
0
|
0
|
517
|
POST
|
Right on! That solves the problem. Thanks Dominique!
... View more
04-09-2013
04:56 AM
|
0
|
0
|
207
|
POST
|
I've had this occur even if one minor code has an issue, that isn't necessarily reported as an error. Have you checked through all your other code? You are right, it is an error. I was able to make the screen show up blank. What I still have not been able to figure out is why it is doing that. Thanks!
... View more
06-14-2013
11:30 AM
|
0
|
0
|
322
|
POST
|
public List<TextSymbol> TextSymbolList(){
List<TextSymbol> l = new List<TextSymbol>();
foreach (Graphic g in this.Graphics)
{
g.symbol = l;
// If you have a graphic layer
graphicLayer.add(g);
//This is wrong!!!
//l.Add((TextSymbol)g); //THIS DOES NOT WORK
}
return l;
}
... View more
05-20-2013
04:01 AM
|
0
|
0
|
187
|
POST
|
By default, when using a text symbol, the location of the node is the upper left corner of the TextSymbol. You can change that by setting an OffsetX and OffsetY to your text symbol. That being said I am not sure that will solve your issue. The offset will still be the same whatever your map scale (note that the offset is in pixel not in map coordinates). I guess what you would need is a label engine that would try to avoid overlapping labels but this doesn't exist at client side yet.
... View more
02-21-2013
10:50 PM
|
0
|
0
|
173
|
POST
|
Alternatively, for the layers you don't want to see in the legend, you can set the flag ShowLegend to false.
... View more
02-21-2013
10:37 PM
|
0
|
0
|
135
|
POST
|
Never mind, I got it figured out. It has to be done in the graphic.MapTip property. And there I can add the data I want to my tip. Thanks!
... View more
01-17-2013
11:54 AM
|
0
|
0
|
144
|
POST
|
You will want you make your symbol marker look something like this. <esri:MarkerSymbol x:Key="SymbolIDName" OffsetX="15" OffsetY="28">
<esri:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<Canvas Width="35" Height="35">
<Image Source="ImageSource" Width="30" Height="30"/>
<TextBlock Foreground="White" Canvas.Top="-8.5" Canvas.Left="22" Text="{Binding Attributes[LabelAttribute]}" />
</Canvas>
</ControlTemplate>
</esri:MarkerSymbol.ControlTemplate>
</esri:MarkerSymbol> If you don't want to use an Image just replace that code with whatever element you want. If you want a box around the text, enclose it in a border with a background. The line pointing to the point can be done it could be a bit difficult to get it to look right. Just included it inside the canvas control and you should be set. Hope this helps. Chris
... View more
01-17-2013
09:51 AM
|
0
|
0
|
151
|
POST
|
Mike, I am also getting this error. I started with a new WPF application and this is all the code that I have added: <Grid>
<esri:Map Background="White" WrapAround="True" AllowDrop="True">
<esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer"/>
</esri:Map>
</Grid> It does not crash all the time, but frequently when I zoom in on an area. #. Have you tried registering a handler for the TileLoading event then checking the error property? - does this contain any information? #. Next time this error occurs it would be great if you could capture the failed tile request and response in Fiddler and post here - or email me on mbranscomb@esri.com. I am transitioning to C# and WPF from C++, so I am not familiar with where the TileLoading event is, or how to register a handler for it. I don't have Fiddler, but here are the details from my crash: System.NotSupportedException was unhandled
HResult=-2146233067
Message=No imaging component suitable to complete this operation was found.
Source=PresentationCore
StackTrace:
at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapImage.EndInit()
at ESRI.ArcGIS.Client.TiledLayer.tileLoadCompleted(ImageTileInfo data, Stream imgStream, Exception error)
at ESRI.ArcGIS.Client.TiledLayer.client_DownloadDataCompleted(Object sender, DownloadDataCompletedEventArgs e)
at System.Net.WebClient.OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)
at System.Net.WebClient.DownloadDataOperationCompleted(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WpfApplication2.App.Main() in c:\Users\dgastonadm\Documents\Visual Studio 2012\Projects\WpfApplication2\WpfApplication2\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Runtime.InteropServices.COMException
HResult=-2003292336
Message=Exception from HRESULT: 0x88982F50
ErrorCode=-2003292336
InnerException: Any help would be appreciated. Thanks, Doug
... View more
01-16-2013
11:38 AM
|
0
|
0
|
345
|
POST
|
I have a GraphicsLayer where I set up my ProjectionService like this: ESRI.ArcGIS.Client.Tasks.GeometryService geomser = new ESRI.ArcGIS.Client.Tasks.GeometryService(myProjectionServiceURL);
myGraphicsLayer.ProjectionService = geomser; The GeometryService I point it to is a server sitting in our company. This works well when I am working with a small set of data (around 300 to 500 graphics (MapPoint's in my case). The problem is that our application demands for it to handle more than that sometimes. If I push that number to say, 1500, or larger numbers like 3000, I can see it flicker when it is re-projecting. Also, during re-projections, the data disappear from the map completely (I guess it errors and does not return anything). My question is, what can I do to improve this? I think there is a limit in the number of projections the server can handle, if so what would it be that number? Any suggestions, comments, code would be appreciated. Thanks! Hi, The Geometry Service for reprojection task is totally C.P.U dependent , for better performance you might consider to enhance the allocated cores for ArcGIS Server SOC.
... View more
12-04-2012
09:13 PM
|
0
|
0
|
140
|
POST
|
I found THIS in the forums and I was wondering if there is a way to do the same but from NAD27 (WKID 4267) to web mercator. I tried changing that code; but the only thing I recognize there is the WGS84 curvature (6378137.0) and the radians per degree constant (0.017453292519943295). After changing those with the information for NAD27 the points get closer to where they need to be; but still off. I am not sure how to modify the rest. Any help would be appreciated. Thanks!
... View more
11-21-2012
10:36 AM
|
0
|
0
|
1819
|
POST
|
The ArcGIS Silverlight and WPF dlls are compiled with the 'AnyCPU' option, so they can be used for x86, x64 or anycpu executable. It is the JIT compiler that generates an assembly code that's compatible with the requested target. I am myself regularly working with both machines (x86 and x64) and I never noticed specific issues for 64bits.
... View more
11-06-2012
04:52 AM
|
0
|
0
|
98
|
POST
|
The ProjectAsync method accepts a list of graphics as input argument and project all the graphics in one request to the server. Is it what you are looking for?
... View more
10-12-2012
08:52 AM
|
0
|
0
|
219
|
POST
|
I don't see how your Size DP connects to your DefiningGeometry. You should define the Size change handler to update it. Yep, that was it. Thanks for your help. If someone is interested, this is how I solved it in the dependency property definition:
public static readonly DependencyProperty SizeProperty = DependencyProperty.Register("Size", typeof(Double), typeof(MapShape), new UIPropertyMetadata(new PropertyChangedCallback(SizeChanged)));
And then I added the handler:
private static void SizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
MapShape shape = (MapShape)d;
shape.InvalidateVisual();
}
Thanks again!
... View more
09-14-2012
09:47 AM
|
0
|
0
|
196
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|