|
POST
|
Note that you can use esri:MapView.ViewOverlayAnchor to bind the location of the overlay as shown here https://community.esri.com/thread/190047-popups-in-arcgis-runtime-sdk-for-net#comment-666876 Not sure if that makes any difference since haven't tested this exact case.
... View more
02-28-2017
07:52 AM
|
0
|
0
|
663
|
|
POST
|
Glad that you managed to find out why it was failing. I can wholeheartedly agree that 'a bit better error message would be nice'. I'll log an issue to change that.
... View more
02-24-2017
03:04 AM
|
0
|
0
|
343
|
|
POST
|
Hi, As mentioned in the earlier post, we cannot support PCL due it's technical limitations.
... View more
02-23-2017
07:30 AM
|
0
|
0
|
2485
|
|
POST
|
Could you provide about information about the configuration that you are using? - operation system version - x64/x86 - can you enable logging for the local server (install path/localserver100.0/32/bin/LocalServerUtility.exe) and see what is written to the log
... View more
02-23-2017
07:28 AM
|
0
|
3
|
5543
|
|
POST
|
So the issue occurs on line await ls.StartAsync()? Can you try to set the AppDataPath to something else such as temp directory or use the default. Does that help?
... View more
02-21-2017
08:01 AM
|
0
|
5
|
5543
|
|
POST
|
We separated the local server install from the SDK to keep the basic download/install smoother. Sounds like something goes really awry. Can you post your code that you are using?
... View more
02-21-2017
05:30 AM
|
0
|
7
|
5543
|
|
POST
|
If you have a table you can point ServiceFeatureTable to that and use QueryAsync to retrieve the data. var serviceUri = new Uri("url to the table");
ServiceFeatureTable requestsFeatureTable = new ServiceFeatureTable(serviceUri);
requestsFeatureTable.FeatureRequestMode = FeatureRequestMode.OnInteractionCache;
await requestsFeatureTable.LoadAsync();
var results = await requestsFeatureTable.QueryFeaturesAsync(
new QueryParameters() { WhereClause = "1=1" }, QueryFeatureFields.LoadAll);
var firstRequest = results.First();
... View more
02-21-2017
03:43 AM
|
2
|
0
|
589
|
|
POST
|
Hi, that shouldn't be the case. Have you installed local server to your machine? You can find the download from here. In 100.0 releases, local server is separated from the SDK install.
... View more
02-21-2017
01:28 AM
|
0
|
9
|
5543
|
|
POST
|
I was just writing a simple popup today so here is what I did. <esri:MapView x:Name="MyMapView">
<esri:MapView.Overlays>
<esri:OverlayItemsControl>
<Grid x:Name="popup"
esri:MapView.ViewOverlayAnchor="{Binding Geometry}"
IsHitTestVisible="False" HorizontalAlignment="Right" VerticalAlignment="Top" MaxWidth="200">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="20" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Background="#CC000000" BorderThickness="1,1,1,0" Margin="0,0,0,-1" BorderBrush="White" Grid.ColumnSpan="2">
<StackPanel Margin="20">
<TextBlock FontWeight="Bold" Foreground="White">
<Run Text="ObjectId = "></Run>
<Run Text="{Binding Attributes[objectid]}"></Run>
</TextBlock>
</StackPanel>
</Border>
<Path StrokeThickness="1" Fill="#CC000000" Stroke="White" Stretch="Fill" HorizontalAlignment="Left" Data="M0,0 L0,1 1,0" Grid.Row="1" />
<Path StrokeThickness="1" Fill="#CC000000" Stroke="White" Stretch="Fill" VerticalAlignment="Top" Data="M0,0 L1,0" Grid.Row="1" Grid.Column="1" />
</Grid>
</esri:OverlayItemsControl>
</esri:MapView.Overlays>
</esri:MapView> And in your code you can do following private ArcGISFeature _selectedFeature;
private async void OnGeoviewTapped(object sender, GeoViewInputEventArgs e)
{
try
{
// Clear all selected features
foreach (var featureLayer in MyMapView.Map.OperationalLayers.OfType<FeatureLayer>())
{
featureLayer.ClearSelection();
}
// Identify all features
var results = await MyMapView.IdentifyLayersAsync(e.Position, 2, false, 1);
if (results.Any())
{
// Get first result and get feature and layer from it
var result = results.First();
var feature = result.GeoElements.First() as ArcGISFeature;
await feature.LoadAsync(); // Load feature to get all attributes
var layer = result.LayerContent as FeatureLayer;
// Check if we already have clicked this feature
// if yes, then close popup
// if no, show the popup
var objectIdField = (layer.FeatureTable as ArcGISFeatureTable).ObjectIdField;
if (_selectedFeature?.Attributes[objectIdField]?.ToString() ==
feature.Attributes[objectIdField]?.ToString())
{
popup.Visibility = Visibility.Collapsed;
popup.DataContext = null;
_selectedFeature = null;
}
else
{
// Select feature
layer.SelectFeature(feature);
// Set selected feature to the popups datacontext
popup.DataContext = feature;
popup.Visibility = Visibility.Visible;
_selectedFeature = feature;
}
}
else
{
popup.Visibility = Visibility.Collapsed;
popup.DataContext = null;
}
}
catch (Exception ex)
{
MessageBox.Show("An error occurred. " + ex.ToString(), "Sample error");
}
}
Note that the implementation might differ depending what you want to do. In my case I want to show a callout when clicking a feature isn't currently selected. If the feature is currently selected, then I want to hide the callout and if nothing is located where I click, I want to reset the map.
... View more
02-16-2017
05:33 AM
|
6
|
4
|
5139
|
|
POST
|
Hi, I can confirm that this wont work in Runtime for reason or another. I have passed figuring out why to my team member that hopefully have a bit more time. You can try to set the renderer to a simple renderer and see if that makes any different.
... View more
02-09-2017
03:40 AM
|
1
|
1
|
1714
|
|
POST
|
A long shot but just in case could you also make sure that the MapView has the same spatial reference than the layer you are using after the map is loaded?
... View more
02-09-2017
02:27 AM
|
1
|
1
|
2089
|
|
POST
|
Hi Chad, This is unfortunately an known issue at the moment. We are trying to get closing (and releasing the lock) easier in the future releases. At the moment I would propose a workaround with this which kind of works. I would build UI experience so that it would remove the file but behind the scenes save information to the application that when opening the app next time, remove this data. It's not optimal but that's the best choice that you have. Another thing that you can try to do is to make sure that all the references (layer etc..) are removed and out of scope and force GC but this might be hard to get right.
... View more
02-07-2017
02:50 AM
|
0
|
1
|
835
|
|
POST
|
In general the service that you are using has to have exportTiles operation enabled. This is controlled through service management functionality either in ArcGIS Online or in Server. The default basemap service doesn't expose this functionality but there are service that support the operation. For example World Street Map (for export). These (for export) services aren't meant to use as a basemap but they are used to provide exportTiles functionality for the normal basemaps which should be used when using the online based services. You can find other basemaps also from ArcGIS Online. Another thing that you might be hitting is that there is a limit how many tiles the services will return at maximum which defaults to 100 000 tiles. If the area that you are requesting offline is too large the operation will fail. If you cannot control the tiles returned, you might want to request the tiles in several parts so instead of requesting one huge area, you can split it into 4 or so section and request them separately. Hope this helps.
... View more
02-06-2017
05:09 AM
|
2
|
0
|
654
|
|
POST
|
Could you share which samples you have tried and what you need to do in more detail? Have you had a look into the Create Offline map documentation?
... View more
02-06-2017
04:53 AM
|
0
|
0
|
1480
|
| 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
|