|
POST
|
IdentifyTask is designed to work with Map Services that has an service endpoint (can be local or online) so you cannot use it with in-memory GraphicsLayer. To achieve similar behavior, you need to implement query logic based on your needs directly against your GraphicsLayer. See FindGraphicsInHostCoordinates method, it might be useful while implementing it.
... View more
05-07-2014
11:59 PM
|
0
|
0
|
3073
|
|
POST
|
How is memory usage with the application while this happens? I remember seeing similar case on my professional services days where it ended to be related FeatureLayer and it's Snapshot mode (loads all graphics to memory while on-demand keeps only what is visible). Thou it sounds that you have already tested that. Have you managed to reproduce the issue in simpler application with same basemap service? Does this happen if you use different basemap service? One thing that you could try to do also is to see how long tile requests takes and/or if there is any other requests running around wildly while pan occurs. Have you managed to repro this issue with other computers? What SDK version you are using? You could try to upgrade to latest if you aren't using it.
... View more
05-06-2014
11:47 PM
|
0
|
0
|
1096
|
|
POST
|
It would help if you can create small repro (just isolate the issue with bootstrapped app) and send that to us, so we could investigate what might be the issue. Have you used Fiddler or other similar app to see what traffic is happening when in that point? If you can, you could try to see that and then post it here so we have better view on the traffic? You also could try to use QueryTask to validate that data is coming correctly from the service that is created. Can you also check that there call to GetDetails is executed when it is available and before initialization is done?
... View more
05-06-2014
01:13 AM
|
0
|
0
|
1664
|
|
POST
|
Hey, Did you check Mike's response on this? If you still have that issue, can you send me a repro about that and I could check too.
... View more
05-06-2014
12:33 AM
|
0
|
0
|
1416
|
|
POST
|
Hey Miri, Unfortunately creating custom Renderers that works with AcceleratedDisplay is not supported. We recommend to use available Renderers in all the cases where you can do that. In cases where you need to handle creating symbols or setting them using a way that are not supported by Renderers, you need to do that directly on graphic / feature level.
... View more
04-30-2014
03:01 AM
|
0
|
0
|
1416
|
|
POST
|
Can you specify what SDK you are using? If you are talking about new ArcGIS Runtime for .NET SDK that is in BETA at the moment, we have replaced GeometryService with GeometryEngine.
... View more
04-25-2014
05:22 AM
|
0
|
0
|
820
|
|
POST
|
In Runtime for WPF, you work with .NET framework based touch-events. From SDK point of view, we don't restrict touch based interactions on anyway (thou we don't provide out-of-the-box Map events like we do in new ArcGIS Runtime for .NET) but there are many things that you should be considering when building application that uses touch as a main interaction model. Design and UX should be based on the type of interaction and also you think what is the accuracy your users can get when working with app. This affected by type (mouse / touch), type of device (phone / laptop / tablet...), situation where users uses the app, etc... Depending on the accuracy and acceptable error factors, you should be deciding the size of the touch area, in this case we are more or less talking about the rectangle that is viewed as a area surrounding the graphic that is considered as a hit box. We don't have any magical numbers to give, what size is good or bad because all these values varies on case by case. Here is one interesting chart : (taken from : http://msdn.microsoft.com/en-us/library/windows/apps/hh465415.aspx ) Size vs. efficiency: Target size influences error rate Since this study is done for the normal Windows Store apps, it doesn't show truth in map apps but gives good reference. I find it interesting that ereiswichs has found 50ish pixels good value that matches well with this chart. This value is considered as a "When accuracy matters" group where it is very important that user hits that with first try. This answer might hit the question from a bit different angle, but hope this helps to design your implementation.
... View more
04-25-2014
05:18 AM
|
0
|
0
|
1299
|
|
POST
|
Are you working with GraphicLayers or FeatureLayers and are you also going to save them to the FeatureService? If you are working with MapPoints, then use MoveTo()-method to change the location. See MoveTo sample from DevSummit demos or Sample App \ Mapping \ Graphics Layers \ Moving graphic objects as reference.
... View more
04-22-2014
10:00 AM
|
0
|
0
|
809
|
|
POST
|
Depending your editing needs, you have different approaches. I recommend you to check there links: Adding features to graphics layers Editing overview To see samples how to work with graphics (GraphicLayers) / features (FeatureLayers) see Sample app (this is packaged in installer so if you have installed full SDK you should have it) and sections Mapping \ Graphics Layers and Editing. Hope that these will help. Let me know if you have more questions.
... View more
04-22-2014
12:38 AM
|
0
|
0
|
809
|
|
POST
|
Here is link (there was ")" in the end that broke it) http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~LabelPointsTaskAsync(IList%7BGraphic%7D).html
... View more
04-22-2014
12:30 AM
|
0
|
0
|
933
|
|
POST
|
Can you describe your use case in a bit more detail? Depending on the use case, I can direct you to correct information.
... View more
04-11-2014
04:22 AM
|
0
|
0
|
583
|
|
POST
|
Just confirming that you know the shortcuts for navigation tools that are provided out of the box: If those are suitable for your scenario you could save some time to use those instead. Change the extent at runtime A set of pre-defined keyboard and mouse shortcuts are enabled on a Map control by default. The following table lists the combination of key and mouse actions and the map actions that they trigger: [TABLE="class: table, width: 1087"]Press left, right, up, down arrowNonePan in the direction of the arrow key pressed.+/-NoneZoom in (+) or zoom out (-) one zoom factor. The zoom factor is defined by the Map.ZoomFactor property.NoneLeft mouse button double clickZoom in one zoom factor.NoneLeft mouse button click, then hold and dragPan the map (default map action).Shift, press and holdLeft mouse button click, then hold and dragDefine an extent to zoom in.Shift+Ctrl, press and holdLeft mouse button click, then hold and dragDefine an extent to zoom out.NoneScroll wheel forward/backwardZoom in (forward), zoom out (backward). [/TABLE] [ATTACH=CONFIG]32997[/ATTACH] http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Navigating_the_map/01700000008m000000/
... View more
04-10-2014
12:48 AM
|
0
|
0
|
1646
|
|
POST
|
MapTips has DataContext of an Graphic and you can access the Model class through Attribute called "DataContext". This should help you to access to the properties of the model like this:
<Run Text="{Binding [DataContext].Name}" />
... View more
04-10-2014
12:34 AM
|
0
|
0
|
592
|
|
POST
|
One thing to highlight from snipped from Mike is that remember to use AddRange(graphics) instead of Add(graphic) since that performs better. Also use Renderers instead of individual symbols.
... View more
04-02-2014
03:18 AM
|
0
|
0
|
1552
|
|
POST
|
Here is simple sample how to get started with ContextMenu. Xaml:
<esri:Map x:Name="_map" UseAcceleratedDisplay="True">
<esri:Map.ContextMenu>
<ContextMenu x:Name="_contextMenu"
Closed="_contextMenu_Closed">
<ContextMenu.ItemsSource>
<CompositeCollection>
<MenuItem Header="Some general fuctionality" Click="MenuItem_Click_1" />
<MenuItem Header="Show geometry (if had graphic)" Click="MenuItem_Click" IsEnabled="False"/>
</CompositeCollection>
</ContextMenu.ItemsSource>
</ContextMenu>
</esri:Map.ContextMenu>
<esri:ArcGISLocalDynamicMapServiceLayer ID="USA" Path="C:\Program Files (x86)\ArcGIS SDKs\WPF10.2.2\sdk\samples\data\MPKs\USCitiesStates.mpk"/>
<esri:GraphicsLayer ID="Example Graphic" MouseRightButtonUp="GraphicsLayer_MouseRightButtonUp">
<esri:Graphic x:Name="testGraphic">
<esri:Graphic.Symbol>
<esri:SimpleMarkerSymbol Style="Circle" Color="Red"/>
</esri:Graphic.Symbol>
<esri:Graphic.Geometry>
<esri:MapPoint X="0" Y="0" >
<esri:MapPoint.SpatialReference>
<esri:SpatialReference WKID="102100"/>
</esri:MapPoint.SpatialReference>
</esri:MapPoint>
</esri:Graphic.Geometry>
</esri:Graphic>
</esri:GraphicsLayer>
</esri:Map>
Code behind:
using System.Windows;
using ESRI.ArcGIS.Client;
using System.Windows.Controls;
using System.Linq;
namespace ArcGISWpfApplication1
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
Graphic _graphic;
private void GraphicsLayer_MouseRightButtonUp(object sender, GraphicMouseButtonEventArgs e)
{
(_contextMenu.Items[1] as MenuItem).IsEnabled = e.Graphic != null ? true : false;
if (e.Graphic == null)
{
return;
}
var layer = _map.Layers.OfType<GraphicsLayer>().First();
_graphic = e.Graphic;
}
private void MenuItem_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show(_graphic.Geometry.ToJson());
_graphic = null;
(_contextMenu.Items[1] as MenuItem).IsEnabled = false;
}
private void MenuItem_Click_1(object sender, RoutedEventArgs e)
{
MessageBox.Show("Note that points in USA are not graphics, they are rendered in image on dynamic layer. There is red dot on 0,0 - click that");
}
private void _contextMenu_Closed(object sender, RoutedEventArgs e)
{
_graphic = null;
(_contextMenu.Items[1] as MenuItem).IsEnabled = false;
}
}
}
... View more
03-31-2014
07:43 AM
|
0
|
0
|
882
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-12-2014 03:52 AM | |
| 1 | 08-27-2015 03:47 AM | |
| 1 | 12-08-2014 09:58 AM | |
| 1 | 05-05-2015 10:19 AM | |
| 1 | 07-30-2015 08:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|