|
POST
|
Hi, Are you able to post the code which demonstrates this? Cheers Mike
... View more
06-26-2013
04:31 AM
|
0
|
0
|
4870
|
|
POST
|
Hi, When the event fires - what kind of EditAction do you get? http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor+EditAction.html Add Cancel ClearSelection Cut DeleteSelected EditVertices Remove Reshape Save Select UndoEdits Union Cheers Mike
... View more
06-26-2013
01:17 AM
|
0
|
0
|
2125
|
|
POST
|
Hi, I'm not aware of any change in behaviour. Can you post the snippet of code where you're creating the Editor (XAML?) and handling the event? Cheers Mike
... View more
06-26-2013
12:05 AM
|
0
|
0
|
2125
|
|
POST
|
Hi, Thank you very much for the focussed example - I've reproduced and raised a bug. Cheers Mike
... View more
06-21-2013
01:51 AM
|
0
|
0
|
688
|
|
POST
|
Hi, Are you able to share you code? It would be useful to see exactly how your app is written. Cheers Mike
... View more
06-18-2013
01:16 PM
|
0
|
0
|
2314
|
|
POST
|
Hi, Try running the GPTaskInfo sample in the Sample App - browse for your GPK and check that the parameter names are the same as you're calling in code. Cheers Mike
... View more
06-11-2013
12:35 AM
|
0
|
0
|
2365
|
|
POST
|
Hi, You've got a couple of options: #1. Use the out of the box API... You could take look at this sample - http://resources.arcgis.com/en/help/runtime-wpf/samples/index.html#/Add_Shapefiles_and_Rasters/02q20000004z000000/ It may seems a little overly complex initially, and you'll need a Map Package created with ArcMap (in the correct projection for your data - or if it's WGS84 you could use the one in the sample data provided with the SDK). What happens is that a local dynamic map service is started on your local machine ("RuntimeLocalServer") and then using the "DynamicLayer" capability of that service you can completely change the service definition and insert your own rasters (images), shapefiles, file geodatabase, etc datasets. Just as you can for an online dynamic map service with the same capability enabled. The rasters/images will use the rendering built into the raster (there's no raster renderer in the API) - for the PNGs I think you should be fine. #2. Implement your own Dynamic Layer class... Take a look at the source code for the ESRI.ArcGIS.Client.Toolkit.Datasources on codeplex (http://esrisilverlight.codeplex.com/) - there's a HeatMap Layer which derives from DynamicLayer. Cheers Mike
... View more
06-05-2013
02:25 AM
|
0
|
0
|
1339
|
|
POST
|
Hi, Actually, maybe the code isn't necessary - have you set the FeatureLayer.Mode to OnDemand? (the default is Snapshot - i.e. everything up to the first 1000, or whatever the service limit is). Cheers Mike
... View more
06-04-2013
04:29 AM
|
0
|
0
|
2314
|
|
POST
|
Hi, If you're symbolizing points and using marker symbols you could consider using WPF elements to get the visual effect you would like then render the WPF element as an image and use it as a PictureMarkerSymbol:
// Create a diagonal linear gradient with four stops.
// http://msdn.microsoft.com/en-us/library/system.windows.media.lineargradientbrush.aspx
LinearGradientBrush myLinearGradientBrush =
new LinearGradientBrush();
myLinearGradientBrush.StartPoint = new Point(0, 0);
myLinearGradientBrush.EndPoint = new Point(1, 1);
myLinearGradientBrush.GradientStops.Add(
new GradientStop(Colors.Yellow, 0.0));
myLinearGradientBrush.GradientStops.Add(
new GradientStop(Colors.Red, 0.25));
myLinearGradientBrush.GradientStops.Add(
new GradientStop(Colors.Blue, 0.75));
myLinearGradientBrush.GradientStops.Add(
new GradientStop(Colors.LimeGreen, 1.0));
// Add an Ellipse Element
// http://msdn.microsoft.com/en-us/library/system.windows.shapes.ellipse.aspx
Ellipse myEllipse = new Ellipse();
myEllipse.Stroke = System.Windows.Media.Brushes.Black;
myEllipse.Fill = myLinearGradientBrush;
myEllipse.HorizontalAlignment = HorizontalAlignment.Left;
myEllipse.VerticalAlignment = VerticalAlignment.Center;
myEllipse.Width = 50;
myEllipse.Height = 50;
//Force render
myEllipse.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
myEllipse.Arrange(new Rect(myEllipse.DesiredSize));
RenderTargetBitmap render = new RenderTargetBitmap(200, 200, 150, 150, PixelFormats.Pbgra32);
render.Render(myEllipse);
PictureMarkerSymbol pms = new PictureMarkerSymbol()
{
Source = render,
};
Random random = new Random();
var graphic = new Graphic() { Geometry = new MapPoint(random.Next(-20000000, 20000000), random.Next(-20000000, 20000000)) };
graphic.Symbol = pms;
MarkerGraphicsLayer.Graphics.Add(graphic);
Cheers Mike
... View more
06-04-2013
12:56 AM
|
0
|
0
|
906
|
|
POST
|
Hi, Are you able to share details of the KML Layers that you are experiencing problems with? Cheers Mike
... View more
06-04-2013
12:51 AM
|
0
|
0
|
1496
|
|
POST
|
Hi, Does each image represent an entire map/area or are they smaller image tiles which make up a larger area? Are the images georeferenced? Cheers Mike
... View more
06-04-2013
12:47 AM
|
0
|
0
|
1339
|
|
POST
|
Hi, I think you would need to implement your own DynamicLayer in order to achieve this. You could take a look at the HeatMapLayer in the Toolkit DataSources library (source code on codeplex - http://esrisilverlight.codeplex.com/). Cheers Mike
... View more
06-04-2013
12:32 AM
|
0
|
0
|
3191
|
|
POST
|
Hi, Depending on the sharing status you were trying to apply to the item, it could be due to the licensing changes introduced in March? http://resources.arcgis.com/en/help/arcgisonline/#/What_s_new/010q00000006000000/ ... New sharing workflows for public accounts�??Public accounts, previously known as personal accounts, can no longer create private groups, join private or organizational groups, or share items to groups unless the items are shared with everybody (public). Existing private items in public groups will remain private; ArcGIS Online will not turn existing private items or groups public. ... Cheers Mike
... View more
06-04-2013
12:19 AM
|
0
|
0
|
793
|
|
POST
|
Hi, Can you post the code which demonstrates the issue? Cheers Mike
... View more
06-03-2013
01:03 AM
|
0
|
0
|
2314
|
|
POST
|
Hi, For your console app you should just need to create and set a new SynchronizationContext e.g.
using System;
using System.Threading;
using System.Windows.Threading;
using ESRI.ArcGIS.Client;
namespace UpdateGraphicsConsole
{
class Program
{
static string _url = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0";
// Make sure the main thread is an STA thread
[STAThread]
static void Main(string[] args)
{
// The SynchronizationContext of the main thread is null.
// Create and set a new DispatcherSynchronizationContext.
var syncCtx = new DispatcherSynchronizationContext();
SynchronizationContext.SetSynchronizationContext(syncCtx);
// Get the current dispatcher to check thread access.
Dispatcher d = Dispatcher.CurrentDispatcher;
// Create a FeatureLayer
FeatureLayer fl1 = new FeatureLayer
{
Url = _url,
ID = "23",
Mode = FeatureLayer.QueryMode.Snapshot,
AutoSave = false,
};
// Report which thread the FeatureLayer was created on
Console.WriteLine("FeatureLayer created on Thread " + d.Thread.ManagedThreadId.ToString());
// Register a handler for the Initialized event
fl1.Initialized += (sender, eventArgs) =>
{
// Report which thread the event fired on (this was always a different thread until the DispatcherSynchronizationContext was set
Console.WriteLine("Initialized event handled on Thread " + Dispatcher.CurrentDispatcher.Thread.ManagedThreadId.ToString());
// Get the FeatureLayer
FeatureLayer fl2 = sender as FeatureLayer;
// Get the FeatureLayer dispatcher
Dispatcher d1 = fl2.Dispatcher;
// Report the thread we're invoking the Update call on (this was always the original thread)
Console.WriteLine("Invoking Update on Thread " + d1.Thread.ManagedThreadId.ToString());
// CheckAccess always returned false because this code was running on a different thread until the DispatcherSynchronizationContext was set
if (fl2.Dispatcher.CheckAccess())
{
fl2.Update();
}
else
d1.BeginInvoke(
DispatcherPriority.Normal,
new Action(delegate()
{
fl2.Update();
}));
};
// Register a handler for the UpdateCompleted event and call SaveEdits()
fl1.UpdateCompleted += (sender, e) =>
{
// Get the FeatureLayer
FeatureLayer fl3 = sender as FeatureLayer;
// Get the FeatureLayer Dispatcher
Dispatcher d2 = fl3.Dispatcher;
// Update the graphic attribute (or perform any other edits)
fl3.Graphics[0].Attributes["description"] = Guid.NewGuid().ToString();
// Write out the new value
Console.WriteLine(
"Updated Graphic ObjectID "
+ fl3.Graphics[0].Attributes["objectid"]
+ " with Description: "
+ fl3.Graphics[0].Attributes["description"]);
// Call CheckAccess to confirm whether we need to post back to the original thread
// Then call SaveEdits
if (fl3.Dispatcher.CheckAccess())
{
fl3.SaveEdits();
}
else
d2.BeginInvoke(
DispatcherPriority.Normal,
new Action(() => fl3.SaveEdits()));
};
// Register a handler for the EndSaveEdits event and write out the status
fl1.EndSaveEdits += (sender, e) =>
{
Console.WriteLine(e.Success ? "Success" : "Fail");
// Can check results online at query endpoint (by description value, objectid, etc)
// http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0/query
};
// Register a handler for the InitializationFailed event
fl1.InitializationFailed += (sender, e) =>
{
// Report error
FeatureLayer fl4 = sender as FeatureLayer;
Console.WriteLine(fl4.InitializationFailure.Message);
};
// Register a handler for the UpdateFailed event
fl1.UpdateFailed += (sender, e) =>
{
// Report failure to update layer
Console.WriteLine(e.Error);
};
// Register a handler for the SaveEditsFailed event
fl1.SaveEditsFailed += (sender, e) =>
{
// Report failure
Console.WriteLine(e.Error);
};
Console.WriteLine("Calling Initialize on Thread " + d.Thread.ManagedThreadId.ToString());
// Call Initialize method (in a map/UI scenario this call would be handled by the Map).
fl1.Initialize();
// Need to call Dispatcher.Run
Dispatcher.Run();
}
}
}
Cheers
... View more
05-24-2013
06:21 AM
|
0
|
0
|
2072
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 05:04 AM | |
| 1 | 02-20-2024 07:02 AM | |
| 1 | 01-19-2026 06:44 AM | |
| 1 | 12-10-2025 07:16 AM | |
| 1 | 11-21-2025 08:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-02-2026
06:07 AM
|