POST
|
font tag set font_family which support Chinese characters e.g: "{\"labelExpression\": \"[state_name]\",\"labelPlacement\": \"esriServerPolygonPlacementAlwaysHorizontal\",\"symbol\": {\"color\": [255,0,255,123],\"font\": {\"size\": 16,\"family\":\"Microsoft YaHei\"},\"type\": \"esriTS\"}}"
... View more
08-07-2017
07:44 PM
|
0
|
1
|
1196
|
POST
|
But there is rendered by featurelayer Uri featureServiceUri = new Uri( "http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0"); // Initialize feature table using a url to feature server url var featureTable = new ServiceFeatureTable(featureServiceUri); // Initialize a new feature layer based on the feature table _featureLayer = new FeatureLayer(featureTable); // Set the selection color for feature layer _featureLayer.SelectionColor = Colors.Cyan; _featureLayer.Renderer= new Esri.ArcGISRuntime.Symbology.SimpleRenderer() { Symbol = new Esri.ArcGISRuntime.Symbology.CompositeSymbol(new List<Esri.ArcGISRuntime.Symbology.Symbol>() { new Esri.ArcGISRuntime.Symbology.SimpleMarkerSymbol() { Color = Colors.Red, Style = Esri.ArcGISRuntime.Symbology.SimpleMarkerSymbolStyle.Circle, Size = 8 },new Esri.ArcGISRuntime.Symbology.SimpleMarkerSymbol() { Color = Colors.Blue, Style = Esri.ArcGISRuntime.Symbology.SimpleMarkerSymbolStyle.Circle, Size = 4 } } ) }; is there anyway to add filegeodatabase(.gdb) source,and render it use CompositeSymbol
... View more
07-30-2017
06:13 PM
|
0
|
1
|
562
|
POST
|
I Add a FileGeodatabase in the localserver,then i display it on map String mapServiceURL = _emptyMpkPath; LocalMapService localMapService = new LocalMapService(mapServiceURL); //create a gdb workspace FileGeodatabaseWorkspace geodatabaseWorkspace = new FileGeodatabaseWorkspace(uniqueId, directoryPath); // add the dynamic workspace to the localMapService localMapService.SetDynamicWorkspaces(new DynamicWorkspace[] { geodatabaseWorkspace }); await localMapService.StartAsync(); // create a layersource that represents the actual gdb on disk TableSublayerSource source = new TableSublayerSource(geodatabaseWorkspace.Id, fileName); // create a sublayer instance from the source ArcGISMapImageSublayer shapefileSublayer = new ArcGISMapImageSublayer(0, source); // ready to add the shapefile layer to the map. Create a map image layer using url ArcGISMapImageLayer imageLayer = new ArcGISMapImageLayer(localMapService.Url); imageLayer.Sublayers.Clear(); imageLayer.Sublayers.Add(shapefileSublayer); // add the sub layer to the image layer imageLayer.LoadStatusChanged += ((s, e) => { if (imageLayer.LoadStatus == LoadStatus.Loaded) { shapefileSublayer.LoadStatusChanged += ((a, b) => { if (shapefileSublayer.LoadStatus == LoadStatus.Loaded) { var layerInfo = shapefileSublayer.MapServiceSublayerInfo; shapefileSublayer.Renderer = new SimpleRenderer() { Symbol = new CompositeSymbol(new List<SimpleMarkerSymbol>() { new SimpleMarkerSymbol(){ Color = GetRandomColor(), Style = SimpleMarkerSymbolStyle.Circle, Size = 8 }}) } } }); shapefileSublayer.LoadAsync(); } }); await imageLayer.LoadAsync(); mapView.Map.OperationalLayers.Add(, layer); But this is nothing in the map,is there any way to add filegdb source and render it use CompositeSymbol?
... View more
07-28-2017
02:26 AM
|
0
|
3
|
864
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|