POST
|
HI Morten, for low priority graphicsoverlay I use the one on my initial comment. For high priority graphicsoverlay I use the following: labelBuilder.AppendLine("{"); // Define a labeling expression that will show the Name attribute value labelBuilder.AppendLine("\"allowOverrun\": true ,"); labelBuilder.AppendLine("\"allowOverlapOfLabel\": \"allow\" ,"); labelBuilder.AppendLine("\"allowOverlapOfFeatureBoundary\": \"allow\" ,"); labelBuilder.AppendLine("\"allowOverlapOfFeatureInterior\": \"allow\" ,"); labelBuilder.AppendLine("\"priority\": 0,"); labelBuilder.AppendLine("\"labelExpressionInfo\": {"); labelBuilder.AppendLine("\"expression\": \"return $feature.Name;\"},"); // Align label horizontally labelBuilder.AppendLine("\"labelPlacement\": \"esriServerPointLabelPlacementCenterRight\","); labelBuilder.AppendLine("\"multiPart\": \"labelLargest\","); labelBuilder.AppendLine("\"offsetDistance\": \"-10\","); // Set the style for the text symbol labelBuilder.AppendLine("\"symbol\": {"); labelBuilder.AppendLine("\"color\": [255,255,255,255],"); labelBuilder.AppendLine("\"haloColor\": [51,51,51,255],"); labelBuilder.AppendLine("\"haloSize\": 1.5,"); labelBuilder.AppendLine("\"font\": {\"size\": 10, \"weight\": \"bold\"},"); labelBuilder.AppendLine("\"type\": \"esriTS\"}"); labelBuilder.AppendLine("}"); Then I add them to each graphics overlay depending on the priority by adding them to the LabelDefinitions object of them: LabelDefinitions.Add(LabelDefinition.FromJson(JsonCode)); Being JsonCode a string with the definition of the label (the one attached up) Thanks,REgards
... View more
2 hours ago
|
0
|
0
|
0
|
POST
|
Hi, I'm using the Label's Priority of the JSON in order to priorise between differente GraphicsOverlay but it's not working. Is it a known bug? I'm using it this way: StringBuilder labelBuilder = new StringBuilder(); labelBuilder.AppendLine("{"); // Define a labeling expression that will show the Name attribute value labelBuilder.AppendLine("\"allowOverrun\": true ,"); labelBuilder.AppendLine("\"allowOverlapOfLabel\": \"allow\" ,"); labelBuilder.AppendLine("\"allowOverlapOfFeatureBoundary\": \"allow\" ,"); labelBuilder.AppendLine("\"allowOverlapOfFeatureInterior\": \"allow\" ,"); labelBuilder.AppendLine("\"priority\": 25 ,"); labelBuilder.AppendLine("\"labelExpressionInfo\": {"); labelBuilder.AppendLine("\"expression\": \"return $feature.Name;\"},"); // Align label horizontally labelBuilder.AppendLine("\"labelPlacement\": \"esriServerPointLabelPlacementCenterRight\","); labelBuilder.AppendLine("\"multiPart\": \"labelLargest\","); // Set the style for the text symbol labelBuilder.AppendLine("\"symbol\": {"); labelBuilder.AppendLine("\"color\": [255,255,255,255],"); labelBuilder.AppendLine("\"haloColor\": [51,51,51,255],"); labelBuilder.AppendLine("\"haloSize\": 1.5,"); labelBuilder.AppendLine("\"font\": {\"size\": 10, \"weight\": \"bold\"},"); labelBuilder.AppendLine("\"type\": \"esriTS\"}"); labelBuilder.AppendLine("}"); Thanks
... View more
Wednesday
|
0
|
2
|
23
|
POST
|
Hi, did you get any solution on this? I'm having the same problem... Regards Madrid
... View more
a week ago
|
0
|
0
|
12
|
POST
|
Thanks @JoeHershman . I've been testing that functionality with the Code Samples (Show Location History) and it's not working correctle as it recenters late and not with each position update. Apart from that, when panning on the mapview, it sems like the functionality is stopped. Is something wrong on the sample or is it a bug? Will this bugs be fixed? If yes, how can this be used to assign a graphic to be recentered, because from what I've seen you create the symbol on runtime, but I need to assign this recenter mode to a already created graphic.
... View more
2 weeks ago
|
0
|
1
|
32
|
POST
|
Hi, I'm using ArcGIS Runtime .net 100.9 version. I'd like to know if there's a way of center constantly the map on the movement of an element. What I'm using now is to when moving the element, make a SetViewpointCenterAsync, but it's not a valid approach since the map's center is changed everytime. Map should stay centered all the time on the element without any visual effect. Regards Gonzalo
... View more
12-21-2020
02:05 AM
|
0
|
3
|
92
|
POST
|
I'm using wmts with geoserver by getting the capabilities like this: http://192.168.0.1:8070/geoserver/World/gwc/service/wmts?REQUEST=getcapabilities By doing it this way, Arcgis is using the REST interface to get tiles. Is there any way to use the KVP interface?
... View more
10-01-2019
04:45 AM
|
0
|
1
|
228
|
POST
|
Is there anyway to set layers or graphics priorities? With priorities I mean that in case of overlapping, set a priority of being on top to some certain type of graphics / layers?
... View more
07-26-2019
12:04 AM
|
0
|
2
|
213
|
POST
|
Hi, Is there any way to reduce the timeout when failing to load asynchronously a WmtsService? I am doing it the following way: WmtsService myWmtsService = new WmtsService(new Uri(currentLayer.Path)); await myWmtsService.LoadAsync().ConfigureAwait(true); Regards Gonzalo
... View more
07-15-2019
12:31 AM
|
0
|
0
|
73
|
POST
|
I'm using IdentifyGraphicsOverlaysAsync to detect a graphic from the map with the latitude and longitude of the element, the exact latitude and longitude. The problem es that this method not always returns the appropiate graphic and it returns others that are close. I've test many method usages but none of them returns only the graphic. Only if I put a big number of results it works, but I only want one graphic result, the one int the position. Why is this method not working and how can I make it work appropiately?
... View more
06-07-2019
03:13 AM
|
0
|
0
|
76
|
POST
|
I need to adjust those properties for the offline map. Which one is the correct option to use offline maps allowing me to change those properties?
... View more
06-04-2019
07:30 AM
|
0
|
0
|
37
|
Online Status |
Offline
|
Date Last Visited |
17m ago
|