|
POST
|
Hi Yan, Since you are using ArcGISMapImageLayer, you need to define the label expression in json format. Please see the documentation link : "Labels for map image sublayers (ArcGISMapImageLayer) can be defined in much the same way as labels for feature layers and graphics overlays. The main difference is that labels for map image layers are rendered by the server and not in your client app. You must therefore use ArcGIS Server REST API syntax to define your label expressions, rather than the Arcade syntax you can use with feature layers and graphics overlays." Label map features—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers Hope that helps Nagma
... View more
07-24-2017
09:14 PM
|
0
|
1
|
2139
|
|
POST
|
You may use GeometryEngine.Area() and GeometryEngine.Distance() method. GeometryEngine.Area Method GeometryEngine.Distance Method Best, Nagma
... View more
07-21-2017
08:27 AM
|
0
|
0
|
1045
|
|
POST
|
Hi Manel, I don't think LocalFeatureService yet has the capability of editing the feature from mpk. If you capture the url of the local feature service, only supported operation is the "Query". So it doesn't have the editing capabilities. Nagma
... View more
07-20-2017
10:34 PM
|
1
|
3
|
1041
|
|
POST
|
Hi Mohammed, Using GeometryEngine.Intersection() method, I was able to select the cities with a state. Below is the code, since it has the XAML part for the Graphics Overlay, I have attached the project, the project is in WPF.. // City Layer FeatureLayer cityLayer = new FeatureLayer(new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0")); // State Layer FeatureLayer stateLayer = new FeatureLayer(new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2")); MyMap.OperationalLayers.Add(cityLayer); MyMap.OperationalLayers.Add(stateLayer); // State Query QueryParameters stateQueryParameters = new QueryParameters(); // only select one polygon from State layer stateQueryParameters.WhereClause = "state_name = 'California'"; // Query the State feature table FeatureQueryResult stateQueryResult = await stateLayer.FeatureTable.QueryFeaturesAsync(stateQueryParameters); var stateResult = stateQueryResult.ToList(); // City Query QueryParameters cityQueryParameter = new QueryParameters(); cityQueryParameter.WhereClause = "1=1"; // Query the City feature table FeatureQueryResult cityQueryResult = await cityLayer.FeatureTable.QueryFeaturesAsync(cityQueryParameter); var cities = cityQueryResult.Select(feature => feature.Geometry); var citiesWithinState = cities .Select(city => GeometryEngine.Intersection(city, stateResult[0].Geometry)) .Select(city => new Graphic(city, _markerSymbol)); foreach (Graphic g in citiesWithinState) { _pointFeatureOverlay.Graphics.Add(g); } } Hope that helps. Nagma
... View more
07-18-2017
09:27 PM
|
2
|
1
|
1089
|
|
POST
|
Hi Mike, Could you try to use the LoadAsync() method to load all the metadata before adding the scene layer on the scene. Nagma
... View more
07-12-2017
01:21 PM
|
0
|
0
|
905
|
|
POST
|
Hi Yifan, Have you tried to use PortalItem.GetGroupsAsync() to get the list of the groups you have access. I think once you get the access of theat group, you may find the list of the available contents in that group. PortalItem Methods --> "Gets the groups the item is a part of. Only shows the groups which the calling user can access." Hope that helps. Nagma
... View more
07-10-2017
02:56 PM
|
1
|
1
|
1540
|
|
POST
|
Hi Manel, I have created a small application that starts the Local Server and add a mpk as an ArcGISMapImageLayer. It is pretty straight forward. Attached is the screen shot and project file. The mpk is located under the "bin\MPK" folder. Hope that helps. Nagma
... View more
07-09-2017
01:44 PM
|
1
|
1
|
1486
|
|
POST
|
Hi Manel, To add a mpk layer on the map, you could use ArcGISMapImageLayer. The service uri for this layer will be available once you start the LocalMapService. Please look at the link below : Local Server --> Run map image layer services Local Server—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers Nagma
... View more
07-06-2017
08:57 AM
|
0
|
3
|
1486
|
|
POST
|
Hi Stefan, I don't think it is possible with 10.2.7. There is no other class to determine the LODs of the local tiled package. Nagma
... View more
07-03-2017
01:37 PM
|
0
|
0
|
1418
|
|
POST
|
Hi Yifan, I haven't used Android but using WPF I am able to see the MMPK file. Once you open the MMPK file using OpenAsync() method, get the map layers from MMPK file as below and add it to the MapView: MobileMapPackage mmpk = await MobileMapPackage.OpenAsync(<location_MMPK_File>); Map map = mmpk.Maps[0]; MyMapView.Map = map; Hope that helps. Nagma
... View more
07-03-2017
11:34 AM
|
0
|
0
|
1654
|
|
POST
|
Hi Stefan, To get the scales of the different levels of a tile package you could use Tilecache class. Below is the code that gives you the scale for each level: TileCache tileCache = new TileCache(<location_of_tpk_file>); await tileCache.LoadAsync(); if(tileCache.LoadStatus == LoadStatus.Loaded) Console.WriteLine(tileCache.TileInfo.LevelsOfDetail); var lods = tileCache.TileInfo.LevelsOfDetail.ToList(); foreach(LevelOfDetail lod in lods) { Console.WriteLine("LOD Scale: " + lod.Scale); Console.WriteLine("LOD Level: " + lod.Level); } The scale exactly matches with the mapserver.json file of the tpk. Attached is the output of my tpk. Hope that helps TileCache Constructor Nagma
... View more
06-30-2017
09:35 PM
|
0
|
2
|
1418
|
|
POST
|
Hi Yuri, You may use OffsetX/OffsetY within the TextSymbol constructor to position the text inside the bitmap. TextSymbol Class Hope that helps. Nagma
... View more
06-22-2017
08:22 PM
|
2
|
0
|
1283
|
|
POST
|
Hi Yan I just wanted to confirm that I tested with one of the service that has the "SupportPagination:false" and when I set the QueryParameters.Maxfeatures value it throws an exception. So to use the "MaxFeatures" in Runtime, you have to have the "SupportPagination" functionality of the service. Thanks Nagma
... View more
06-22-2017
02:36 PM
|
0
|
1
|
2120
|
|
POST
|
Hi Yan, Please look at the thread that has the same issue a yours: https://community.esri.com/thread/186645-im-getting-a-new-error-calling-graphicsoverlaygraphicsaddgraphic-cannot-call-this-method-in-this-context-graphic-already-has-an-assigned-id
... View more
06-21-2017
07:37 PM
|
0
|
0
|
628
|
|
POST
|
Hi Yan, I tested with the sample we have in the resource center, "Display layer view state", where the image layer is drawn with "outofScale" and in the fiddler, the request goes through for the image layer. You may try the sample at your side with the specific feature layer you are working on. Hope that helps. Nagma
... View more
06-19-2017
11:38 AM
|
0
|
1
|
776
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-02-2017 04:15 PM | |
| 1 | 08-09-2017 03:25 PM | |
| 1 | 11-10-2017 09:37 AM | |
| 1 | 11-13-2017 08:43 AM | |
| 1 | 06-06-2017 07:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-31-2024
09:45 PM
|