POST
|
Hi Antti, Glad you brought this up. What is the difference when the ServiceFeatureTable is created from a dynamic map service (as in the example shown) verses ones from a feature service. I've seen examples of ServiceFeatureTables created from both types of services, but never quite sure what the differences are.
... View more
05-11-2016
10:13 AM
|
0
|
0
|
394
|
POST
|
Update. It seems the problem might had to do with the way the ServiceFeatureTable was created. If I changed the code to use the constructor to obtain the service table instead of using OpenAsync(), it works. Based on the description, OpenAsync() creates AND initializes the service (most likely in the spatial reference from the service), causing conflict in projection. ServiceFeatureTable serviceTable = new ServiceFeatureTable(
new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0"));
serviceTable.Where = "pop2000 > 200000";
... View more
05-05-2016
08:14 AM
|
0
|
2
|
394
|
POST
|
We are having trouble loading FeatureLayers from the code behind. We based our example on the FeatureLayerHitTesting sample using the following feature layer as a guide: If we added the feature layer using XAML, the features would show up as expected: <esri:FeatureLayer ID="FeatureLayer">
<esri:FeatureLayer.Renderer>
<esri:SimpleRenderer>
<esri:SimpleMarkerSymbol Color="LightBlue" Style="Circle" Size="12">
<esri:SimpleMarkerSymbol.Outline>
<esri:SimpleLineSymbol Color="Blue" Width="2" Style="Solid" />
</esri:SimpleMarkerSymbol.Outline>
</esri:SimpleMarkerSymbol>
</esri:SimpleRenderer>
</esri:FeatureLayer.Renderer>
<esri:FeatureLayer.FeatureTable>
<esri:ServiceFeatureTable ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0"
Where="pop2000 > 200000" OutFields="*" />
</esri:FeatureLayer.FeatureTable>
</esri:FeatureLayer> However, if we add the layer using code-behind, the layer would not display. async void MyMapView_Loaded(object sender, RoutedEventArgs e)
{
Esri.ArcGISRuntime.Layers.FeatureLayer layer = new Esri.ArcGISRuntime.Layers.FeatureLayer();
ServiceFeatureTable serviceTable = await ServiceFeatureTable.OpenAsync(
new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0"));
serviceTable.Where = "pop2000 > 200000";
SimpleMarkerSymbol symbol = new SimpleMarkerSymbol
{
Color = Colors.Orange,
Style = SimpleMarkerStyle.Circle,
Size = 12,
Outline = new SimpleLineSymbol
{
Color = Colors.Red,
Width = 2,
Style = SimpleLineStyle.Solid
}
};
SimpleRenderer renderer = new SimpleRenderer();
renderer.Symbol = symbol;
layer.Renderer = renderer;
layer.FeatureTable = serviceTable;
MyMapView.Map.Layers.Add(layer);
} But interestingly enough, we we try to added the same feature layer in both XAML and code behind, the code-behind layer would show up, but with a wrong projection. What am I missing here?
... View more
05-05-2016
07:43 AM
|
0
|
4
|
3723
|
POST
|
We are dealing with a runtime *.geodatabase file in this case and we try to avoid using the local server in this case. We'll try the approach Morten suggested. Thanks.
... View more
04-11-2016
11:17 AM
|
0
|
0
|
489
|
POST
|
I am given a Polyline, how do I determine the MapPoint that is say 3/4 in distance along that line starting at one end? I've search the GeometryEngine class method but couldn't find anything that would help me figure this out.
... View more
04-08-2016
10:29 AM
|
0
|
3
|
3524
|
POST
|
Hi Joe, There is a "Generate Tile Cache Tiling Scheme" tool in ArcMap that will allow you to create a tiling scheme and specify the output projection. Once the tiling scheme is created, either the "ManageTile Cache" tool or the Share As > Tile Package dialog will have an option for you to select your tiling scheme.
... View more
03-21-2016
09:01 PM
|
0
|
1
|
666
|