|
POST
|
Hello, You are right, AGSGraphicsOverlay.selectionColor has been marked deprecated in the latest released SDK version 100.4 but will still continue to work with 100.4. The new property added is AGSGeoView:selectionProperties. With next release of the SDK, AGSGraphicsOverlay.selectionColorproperty will not work. This has been done to achieve higher rendering performance benefits that come with applying selection color at geoview level. It uses a selection highlight mechanism that can be rendered on the GPU without being dependent on symbol properties or rendering mode and hence is much faster,efficient and performant, especially for dynamic rendering modes. > Is it not possible anymore to have multiple selectionColors? At least for released SDK version 100.4, if you use the new property it is not possible to add multiple selection colors. Let us know if you have any questions or concerns, Preeti
... View more
01-07-2019
09:57 AM
|
1
|
0
|
1625
|
|
POST
|
What version of 100 x series of ArcGIS Runtime SDK .Net are you using . Where is the data hosted ArcGIS Online ( on an org) or on a premise Portal? If on premise, what is version the version of ArcGIS Portal? Is it a hosted feature service? Can you share link to the service ?
... View more
11-14-2018
11:10 AM
|
0
|
0
|
1426
|
|
POST
|
By the description of issue it seems like more of some server configuration that geodatabase file gets deleted. I would recommend checking this link to configure the maximum age of file on server. Please refer to link below Edit a server directory in Manager—ArcGIS Server Administration (Windows) | ArcGIS Enterprise
... View more
11-14-2018
10:43 AM
|
0
|
1
|
2515
|
|
POST
|
If you know the table name or display name of the table, you can check if table exists in a geodatabase. ``` var gdb = await Geodatabase.OpenAsync(localFilePath); var tb=gdb.GeodatabaseFeatureTables.Select(a => a.DisplayName == "Lines_Sync2"); if (tb != null) MessageBox.Show("Table exists"); ```
... View more
11-09-2018
04:06 PM
|
2
|
1
|
1173
|
|
POST
|
Hello Damien, MapView has a method called SetViewpointGeometryAsync that takes a geometry for setting the viewpoint and as well as a margin/padding value. I think that's what you are looking for. example code ``` var curExtent = mv.GetCurrentViewpoint(ViewpointType.BoundingGeometry).TargetGeometry; await mv.SetViewpointGeometryAsync(curExtent, 100); ```
... View more
01-09-2018
09:35 AM
|
0
|
1
|
2939
|
|
POST
|
>"The issue though is that even for the queries that work, the return features still have the geometries, although the flag was set the false. This makes me think the flag is not being honored." This should not happen, I will look into it. >I did notice the results returned almost immediately using this approach vs. just calling QueryFeaturesAsync(). Is that expected? Is the the most efficient way to query an online service? Well, that also should not happen, the response time should be same. Although with ManualCache, subsequent layer operations will be little faster as there is no http traffic to fetch the more data. Is it possible to share the service end point? Also share the code snippet that didn't work. I will give a closer look and let you know.
... View more
10-19-2017
09:44 AM
|
0
|
2
|
2095
|
|
POST
|
Hello Chad, Two questions: What version on Quartz are you using? Are you using Manual Cache and using PopulateFromServiceAsync() to populate the data? --Preeti
... View more
10-19-2017
08:55 AM
|
0
|
6
|
2095
|
|
POST
|
ArcGIS 100.1 supports viewing SceneLayerPackages. But is not same as accessing a .mpk that requires use of local server. You can add/view the Slpk from a sceneview but won't be able to access a layer in that package.
... View more
07-26-2017
09:59 AM
|
0
|
0
|
2401
|
|
POST
|
Actually I gave a quick try with you sample mpk. It appears to have a featurelayer with geometry type multipatch which isn't supported in current release. Support for multipatch is slated in the plan for future releases but has no specified timeline though.
... View more
07-25-2017
05:33 PM
|
0
|
2
|
2401
|
|
POST
|
Sure, I will try with the mpk and let you know what I find.
... View more
07-25-2017
05:15 PM
|
0
|
0
|
2401
|
|
POST
|
In general, to Open an MMPK and access a layer, you could use the following code: mmpk = await MobileMapPackage.OpenAsync(mmpkPath); Esri.ArcGISRuntime.Mapping.Map map = mmpk.Maps[0]; var opLayers = map.OperationalLayers; Layer layer = opLayers[0]; ... ... To render 3D symbols you would need a SceneView. I am not sure what is the type of data in your Geom3D layer so can't really tell for sure what will happen. If it is possible to share the data , then share the MMPK and I can give a quick try with your data.
... View more
07-17-2017
02:00 PM
|
0
|
8
|
2401
|
|
POST
|
These workspaces allow dynamically requesting data from the below mentioned workspaces and render them as ArcGISMapImageLayer.Sublayer collection. Note, these workspaces require use of Local Server. Below are some examples. You would need to replace the parts of code where it is requiring a path to data. EnterpriseGeodataWorkspace: Displays dynamic layers based upon layers in an enterprise geodatabase(via database connection string) using local server.Uses the LocalServices.EnterpriseGeodatabaseWorkspace and Mapping.TableSublayerSource to display the layers in an enterprise geodatabase as ArcGISMapImageLayer.Sublayers. ``` LocalMapService myLocalMapService = new LocalMapService(@"Path To MPK"); // Create an enterprise geodatabase workspace. EnterpriseGeodatabaseWorkspace myEnterpriseGeodatabaseWorkspace = EnterpriseGeodatabaseWorkspace.CreateFromConnectionString("database connection string", "PASSWORD=pwd;SERVER=SQLSRV;INSTANCE=sdeinstance;DBCLIENT=sqlserver;DB_CONNECTION_PROPERTIES=connectionProp;DATABASE=DBName;USER=user;VERSION=DBversion;AUTHENTICATION_MODE=DBMS"); // Create an empty DynamicWorkspace and add a EnterpriseGeodatabaseWorkspace into it's collection. List<DynamicWorkspace> myIEnumerableOfDynamicWorkpace = new List<DynamicWorkspace>(); myIEnumerableOfDynamicWorkpace.Add(myEnterpriseGeodatabaseWorkspace); // Now set the DynamicWorkspace of the LocalMapService to the one just created. myLocalMapService.SetDynamicWorkspaces(myIEnumerableOfDynamicWorkpace); // Start the local map service. await myLocalMapService.StartAsync(); // Create an ArcGIS map image layer using the same url as the local map service. Esri.ArcGISRuntime.Mapping.ArcGISMapImageLayer myArcGISMapImageLayer = new Esri.ArcGISRuntime.Mapping.ArcGISMapImageLayer(myLocalMapService.Url); myArcGISMapImageLayer.Name = "Enterprise"; // Get the first dynamic workspace from the local map service. List<DynamicWorkspace> myListOfDynamicWorkspaces = (List<DynamicWorkspace>)myLocalMapService.GetDynamicWorkspaces(); DynamicWorkspace oneDynamicWorkspace = myListOfDynamicWorkspaces[0]; // Cast the DynamicWorkspace to a EnterpriseGeodatabaseWorkspace. EnterpriseGeodatabaseWorkspace oneEnterpriseGeodatabaseWorkspace = (EnterpriseGeodatabaseWorkspace)oneDynamicWorkspace; // Create a simple fill symbol SimpleFillSymbol mySimpleFillSymbol = new SimpleFillSymbol(); mySimpleFillSymbol.Color = Colors.Aqua; mySimpleFillSymbol.Style = SimpleFillSymbolStyle.Solid; // Create a simple renderer SimpleRenderer mySimpleRenderer3 = new SimpleRenderer(); mySimpleRenderer3.Symbol = mySimpleFillSymbol; // Create a table sub-layer source using the id from the enterprise geodatabase workspace id and a specific layer in the enterprise geodatabase workspace TableSublayerSource myTableSubLayerSource3 = new TableSublayerSource(oneEnterpriseGeodatabaseWorkspace.Id, "DB.DBO.Tablename");//Fullyqualified table name // Create a new ArcGIS map image sub-layer based on the table sub-layer source ArcGISMapImageSublayer myArcGISMapImageSublayer3 = new ArcGISMapImageSublayer(2, myTableSubLayerSource3); myArcGISMapImageSublayer3.Renderer = mySimpleRenderer3; // Add the ArcGIS map image sub-layer to the sub-layers collection of the ArcGIS map image layer myArcGISMapImageLayer.Sublayers.Add(myArcGISMapImageSublayer3); // Add the dynamic ArcGIS map image layer to the map. MyMapView.Map.OperationalLayers.Add(myArcGISMapImageLayer); ``` FileGeoDatabaseWorkspace Displays dynamic layers based upon layers in an enterprise geodatabase (via .sde file) using local server. Uses the LocalServices.EnterpriseGeodatabaseWorkspace and Mapping.TableSublayerSource to display the layers in an enterprise geodatabase as ArcGISMapImageLayer.Sublayers. ``` LocalMapService myLocalMapService = new LocalMapService(@"Path to Mpk"); // Create an enterprise geodatabase workspace. EnterpriseGeodatabaseWorkspace myEnterpriseGeodatabaseWorkspace = EnterpriseGeodatabaseWorkspace.CreateFromConnectionFile("sde file", "\\\\SdeFconnectionfile.sde"); // Create an empty DynamicWorkspace and add a EnterpriseGeodatabaseWorkspace into it's collection. List<DynamicWorkspace> myIEnumerableOfDynamicWorkpace = new List<DynamicWorkspace>(); myIEnumerableOfDynamicWorkpace.Add(myEnterpriseGeodatabaseWorkspace); // Now set the DynamicWorkspace of the LocalMapService to the one just created. myLocalMapService.SetDynamicWorkspaces(myIEnumerableOfDynamicWorkpace); // Start the local map service. await myLocalMapService.StartAsync(); // Create an ArcGIS map image layer using the same url as the local map service. Esri.ArcGISRuntime.Mapping.ArcGISMapImageLayer myArcGISMapImageLayer = new Esri.ArcGISRuntime.Mapping.ArcGISMapImageLayer(myLocalMapService.Url); myArcGISMapImageLayer.Name = "Enterprise"; // Get the first dynamic workspace from the local map service. List<DynamicWorkspace> myListOfDynamicWorkspaces = (List<DynamicWorkspace>)myLocalMapService.GetDynamicWorkspaces(); DynamicWorkspace oneDynamicWorkspace = myListOfDynamicWorkspaces[0]; // Cast the DynamicWorkspace to a EnterpriseGeodatabaseWorkspace. EnterpriseGeodatabaseWorkspace oneEnterpriseGeodatabaseWorkspace = (EnterpriseGeodatabaseWorkspace)oneDynamicWorkspace; // Create a simple fill symbol SimpleFillSymbol mySimpleFillSymbol = new SimpleFillSymbol(); mySimpleFillSymbol.Color = Colors.Black; mySimpleFillSymbol.Style = SimpleFillSymbolStyle.Solid; // Create a simple renderer SimpleRenderer mySimpleRenderer3 = new SimpleRenderer(); mySimpleRenderer3.Symbol = mySimpleFillSymbol; // Create a table sub-layer source using the id from the enterprise geodatabase workspace id and a specific layer in the enterprise geodatabase workspace TableSublayerSource myTableSubLayerSource3 = new TableSublayerSource(oneEnterpriseGeodatabaseWorkspace.Id, "Tablename"); // Create a new ArcGIS map image sub-layer based on the table sub-layer source ArcGISMapImageSublayer myArcGISMapImageSublayer3 = new ArcGISMapImageSublayer(2, myTableSubLayerSource3); myArcGISMapImageSublayer3.Renderer = mySimpleRenderer3; // Add the ArcGIS map image sub-layer to the sub-layers collection of the ArcGIS map image layer myArcGISMapImageLayer.Sublayers.Add(myArcGISMapImageSublayer3); // Add the dynamic ArcGIS map image layer to the map. MyMapView.Map.OperationalLayers.Add(myArcGISMapImageLayer); ``` RasterWorkspace: Displays dynamic raster layers based in a folder on disk using local server. Uses the LocalServices.RasterWorkspace and Mapping.RasterSublayerSource to display the raster layers in a folder on disk as ArcGISMapImageLayer.Sublayers. ``` LocalMapService myLocalMapService = new LocalMapService(@" Path to mpk"); // Create a raster geodatabase workspace (aka. a folder on disk that contains raster images). RasterWorkspace myRasterWorkspace = new RasterWorkspace("raster_wkspc", @"PathtoRasterFolder"); // Create an empty DynamicWorkspace and add a RasterWorkspace into it's collection. List<Esri.ArcGISRuntime.LocalServices.DynamicWorkspace> myIEnumerableOfDynamicWorkpace = new List<Esri.ArcGISRuntime.LocalServices.DynamicWorkspace>(); myIEnumerableOfDynamicWorkpace.Add(myRasterWorkspace); // Now set the DynamicWorkspace of the LocalMapService to the one just created. myLocalMapService.SetDynamicWorkspaces(myIEnumerableOfDynamicWorkpace); // Start the local map service. await myLocalMapService.StartAsync(); // Create an ArcGIS map image layer using the same url as the local map service. ArcGISMapImageLayer myArcGISMapImageLayer = new ArcGISMapImageLayer(myLocalMapService.Url); myArcGISMapImageLayer.Name = "WithRaster"; // Get the first dynamic workspace from the local map service. List<DynamicWorkspace> myListOfDynamicWorkspaces = (List<DynamicWorkspace>)myLocalMapService.GetDynamicWorkspaces(); DynamicWorkspace oneDynamicWorkspace = myListOfDynamicWorkspaces[0]; // Cast the DynamicWorkspace to a RasterWorkspace RasterWorkspace oneRasterWorkspace = (RasterWorkspace)oneDynamicWorkspace; // Create a raster sub-layer source using the id from the raster workspace id and a specific raster image by file name. RasterSublayerSource myRasterSubLayerSource1 = new RasterSublayerSource(oneRasterWorkspace.Id, "Raster.tif"); // Create a new ArcGIS map image sub-layer based on the raster sub-layer source . ArcGISMapImageSublayer myArcGISMapImageSublayer1 = new ArcGISMapImageSublayer(0, myRasterSubLayerSource1); // Add the ArcGIS map image sub-layer to the sub-layers collection of the ArcGIS map image layer. // NOTE: default rendering of the raster image will be used. myArcGISMapImageLayer.Sublayers.Add(myArcGISMapImageSublayer1); // Add the dynamic ArcGIS map image layer to the map. MyMapView.Map.OperationalLayers.Add(myArcGISMapImageLayer); ``` ShapeFileWorkspace: Displays dynamic layers based upon shapefiles using local server. Uses the LocalServices.ShapefileWorkspace and Mapping.TableSublayerSource to display the shapefiles as ArcGISMapImageLayer.Sublayers. ``` LocalMapService myLocalMapService = new LocalMapService(@"Path to mpk"); // Create a shapefile workspace. ShapefileWorkspace myShapefileWorkspace = new ShapefileWorkspace("MyShapefileWorkspace", @"PathToShapefile"); // Create an empty DynamicWorkspace and add a ShapefileWorkspace into it's collection. List<DynamicWorkspace> myIEnumerableOfDynamicWorkpace = new List<DynamicWorkspace>(); myIEnumerableOfDynamicWorkpace.Add(myShapefileWorkspace); // Now set the DynamicWorkspace of the LocalMapService to the one just created. myLocalMapService.SetDynamicWorkspaces(myIEnumerableOfDynamicWorkpace); // Start the local map service. await myLocalMapService.StartAsync(); // Create an ArcGIS map image layer using the same url as the local map service. ArcGISMapImageLayer myArcGISMapImageLayer = new ArcGISMapImageLayer(myLocalMapService.Url); // Get the first dynamic workspace from the local map service. List<DynamicWorkspace> myListOfDynamicWorkspaces = (List<DynamicWorkspace>)myLocalMapService.GetDynamicWorkspaces(); DynamicWorkspace oneDynamicWorkspace = myListOfDynamicWorkspaces[0]; // Cast the DynamicWorkspace to a ShapefileWorkspace ShapefileWorkspace oneShapeFileWorkspace = (ShapefileWorkspace)oneDynamicWorkspace; // -------------------------------------------------------------------------- // Create a simple marker symbol SimpleMarkerSymbol mySimpleMarkerSymbol = new SimpleMarkerSymbol(); mySimpleMarkerSymbol.Color = Colors.Black; mySimpleMarkerSymbol.Size = 10; mySimpleMarkerSymbol.Style = SimpleMarkerSymbolStyle.Circle; // Create a simple renderer SimpleRenderer mySimpleRenderer1 = new SimpleRenderer(); mySimpleRenderer1.Symbol = mySimpleMarkerSymbol; // Create a table sub-layer source using the id from the shapefile workspace id and a specific shapefile in the workspace TableSublayerSource myTableSubLayerSource1 = new TableSublayerSource(oneShapeFileWorkspace.Id, "ShapeFileName.shp"); // Create a new ArcGIS map image sub-layer based on the table sub-layer source ArcGISMapImageSublayer myArcGISMapImageSublayer1 = new ArcGISMapImageSublayer(0, myTableSubLayerSource1); myArcGISMapImageSublayer1.Renderer = mySimpleRenderer1; // Add the ArcGIS map image sub-layer to the sub-layers collection of the ArcGIS map image layer myArcGISMapImageLayer.Sublayers.Add(myArcGISMapImageSublayer1); // Add the dynamic ArcGIS map image layer to the map. MyMapView.Map.OperationalLayers.Add(myArcGISMapImageLayer); ```
... View more
06-30-2017
12:05 PM
|
0
|
3
|
1758
|
|
POST
|
Please see posts https://community.esri.com/thread/193051-how-to-use-openstreetmap-in-a-net-version-100-project
... View more
04-11-2017
09:52 AM
|
0
|
0
|
855
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 09-04-2025 04:44 PM | |
| 1 | 04-14-2025 10:39 AM | |
| 1 | 12-17-2024 01:28 PM | |
| 1 | 01-16-2025 02:56 PM | |
| 1 | 12-26-2024 11:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|