POST
|
I don't know if this is your issue but it's something to look at and eliminate as an option.. Open up the Web Developer tools in your browser and switch it to the Network activity tab. Attempt to print and then examine what the response for the request is. That could help you narrow down if it's a specific layer in your map that's creating the issue. This was a problem for me in a Portal EB app I had (thread about it is here) and eventually we discovered that the group managed service account was not enabled in the Manage->Privileges within SDE for some layers. Once we corrected this, EB print would work as expected. Steve
... View more
06-12-2024
09:47 AM
|
0
|
0
|
635
|
POST
|
Rather than using <P> to create each line item, you could try using a basic HTML table to have each item on one line: <table style="">
<tr><td style=""></td></tr>
</table> This is just the bare syntax so you'll need to modify your code to fit this accordingly. You can apply style attributes to the table and/or table data. This is a specific example from one of my Arcade popups: content = content + '<table width=\"100%\" style=\"background:#99FF99;\"><tr><td valign=\'top\' colspan=\'4\' style=\"font-weight:bold;padding-left:3px;padding-right:3px\">ASIAN / PACIFIC ISLAND LANGUAGE SPEAKING POPULATION:</td></tr>';
content = content + '<tr><td style=\"font-weight:bold;font-style:italic;\">Country:</td><td style=\"font-weight:bold;font-style:italic;\">Number of Persons:</td><td style=\"font-weight:bold;font-style:italic;\">Percent of Foreign-born population</td><td style=\"font-weight:bold;font-style:italic;\">Percent of Total Population:</td></tr>';
if (Count(asianPacPopSort) > 0) {
for(var index in asianPacPopSort){
content = content + '<tr><td>' + asianPacPopSort[index][0] + '</td><td>' + asianPacPopSort[index][3] + '</td><td>' + Round(asianPacPopSort[index][1],2) + '%</td><td>' + Round(asianPacPopSort[index][2],2) + '%</td></tr>';
}
} else {
content = content + '<tr><td colspan=\'4\'>(None reported for this language grouping)</td></tr>';
}
content = content + '</table>'; In my code above, I don't know how many rows the table will have so there's a loop involved. If you know how any rows there will be, you can hardcode it and it will be easier. Hopefully this approach makes sense.
... View more
05-31-2024
12:00 PM
|
0
|
0
|
616
|
POST
|
To partially answer my own question, you can implement a SortedDictionary on the results of the mapTool click to at least create a sorted list based on your Table of Contents. Dictionary<MapMember, List<long>> features = new Dictionary<MapMember, List<long>>();
features = mapView.GetFeatures(geometry).ToDictionary();
Dictionary<int, string> theHitList = new Dictionary<int, string>();
var counter = 0;
foreach (var feature in features)
{
theHitList.Add(counter, feature.Key.Name);
counter++;
}
var theLayerName = getTopLayer(theHitList, features.First().Key.Map); The getTopLayer function with the SortedDictionary is in this function: private static string getTopLayer(Dictionary<int,string> clickList, Map theMap)
{
var layers = MapView.Active.Map.GetLayersAsFlattenedList(); // MapView.Active.Map.Layers.Where(layer => layer is FeatureLayer);
SortedDictionary<int, string> sortedLayerList = new SortedDictionary<int, string>();
foreach (var layer in clickList)
{
var curLayerName = layer.Value;
for (int i = 0; i < layers.Count; i++)
{
if (layers[i].Name == curLayerName)
{
sortedLayerList.Add(i, layers[i].Name);
break;
}
}
}
return sortedLayerList.First().Value;
} I'm still learning C# so I'm sure there are more elegant and efficient ways to do this. In my use case, I'm labelling so I was really only concerned with the topmost layer that was clicked on using the mapTool. Nonetheless, the sortedDictionary is the mechanism to sort the information. all you do is just walk through the layers in the TOC, and add the clicked features' layer and TOC position number. So far, this has worked in my testing so I'm happy enough with this approach. Steve
... View more
05-30-2024
12:01 PM
|
0
|
0
|
219
|
BLOG
|
But results generated from the Near Me widget (or any of the analysis widgets TBH) still can't be printed/exported to PDF? The long wait continues..
... View more
05-29-2024
11:04 AM
|
3
|
0
|
3411
|
BLOG
|
Thanks, Nathan. That's actually what I want but we only just made the jump to 11.1 so I'll have to wait until our org jumps to 11.3. This has been a huge functional deficiency in webmaps for working with roadlog/milepost so I was hoping to see how it worked.
... View more
05-29-2024
10:59 AM
|
0
|
0
|
387
|
BLOG
|
To be clear, is the LRS Identify and Search widgets not available inside AGOL?
... View more
05-29-2024
10:25 AM
|
0
|
0
|
411
|
POST
|
Is there anyway to enforce a hierarchy on the results returned when using GetFeatures? For example, lets say I have a location with 3 features at a location- a road (line), a stream (line), and a bridge (point). Ideally, I'd like to have the results returned in the same order as my Table of Contents (bridge->road->stream) but, in reality, it's returning otherwise (road->bridge->stream). Thanks! Steve
... View more
05-29-2024
09:12 AM
|
0
|
1
|
259
|
POST
|
You could probably do this by tweaking the underlying JSON of your webmap using ArcGIS Assistant. What I'd suggest is add a hosted layer and apply the "in the last 5 years" filter to it. Now, log into ArcGIS Assistant, navigate to the Web Map, and inspect its JSON. The layer information will be in the Data grouping. Find the layer that uses that filter and then you should see an entry for DefintionExpression. That section of JSON will look something like this: Just copy the text of the definition expression, tweak it to apply to your layer of interest, and then paste it into that layer's definitionExpression property. Since you're directly editing your web map, I would highly suggest making a copy of the map and testing this out in the web map copy first. Make sure it works before you alter your actual web map.
... View more
05-21-2024
08:35 AM
|
0
|
2
|
396
|
POST
|
This will be an out of the box idea but, depending how the size of the raster, you could also consider using a Media Layer. This probably isn't the way ESRI was intending to use these layers but your could- export your grid as a JPG or PNG and follow the instructions for adding it to your map. It's one way of adding raster content that might make sense for pure visual purposes over a small area (Media Layers have to be less than 10mb in size)..
... View more
05-16-2024
09:33 AM
|
0
|
0
|
436
|
POST
|
Seems to me that you having 60-70 layers *WITH* labelling is greatly contributing to your issues. That's a lot of back & forth queries going on with each map change. The conventional wisdom is to pare that down to make focused applications rather than a "kitchen sink" kind of app. That being said, look at your layers and consider implementing visibility based on map scale. Feature count rich layers like parcels shouldn't really be visible when zoomed out at a county level so keep those off until you're much more zoomed in. Other factors could be things like are these all layers that you have published or are you pulling in 3d party services? If so, you are entirely at the mercy of the 3rd party's maintenance of their own services. Fed/State/Local government publish a lot of data that has a high up time but....things happen and servers can go down or the agency can republish content and change REST urls without notice. These all result in your app waiting to time out a request. I do think that your biggest challenge is the amount of services in your application, though.
... View more
05-09-2024
08:00 AM
|
2
|
1
|
1265
|
POST
|
I've had this happen before and it could be that no image stretch has been applied to the raster. Select your TIF in the table of contents and then click on the Image Layer ribbon area and select a stretch type to see if that changes what you see.
... View more
05-08-2024
10:33 AM
|
2
|
1
|
367
|
POST
|
In our org, we had a Portal migration (changing servers and from 10.8 to 11.1) and when I copied my previous WAB apps over using ArcGIS Assistant, the WAB apps would not open at all inside the 11.1 environment. I'm not on the GIS admin side of things so I assumed that WAB had been removed (I know it had been deprecated back in early 2023).
... View more
05-03-2024
09:46 AM
|
0
|
0
|
866
|
POST
|
I wonder if it depends on whether you are using WAB in AGOL or on-site with Portal. In our case with Portal, WAB was removed from Portal when we migrated to v11.1 from 10.8. Obviously WAB would no longer function because it's gone.
... View more
05-03-2024
08:13 AM
|
0
|
2
|
921
|
POST
|
Yeah, this setting is accessed by right-clicking on the SDE layer in ArcCatalog or Catalog View/Pane in ArcGIS Pro: ArcCatalog: ArcGIS Pro Catalog View/Pane:
... View more
05-03-2024
08:08 AM
|
0
|
0
|
642
|
IDEA
|
@Amanda__Huber Yeah, it is unsupported so you'll want to consider that. If it's a "read only" map where you're not enabling users the ability to alter the layer's definition query, it's probably ok. ArcGIS Assistant doesn't support "in the current" per se- it's simply an editor for the underlying editor for all the JSON that defines a map & it's contents. What will support "in the current" will be the SQL query language of the database that houses the data so that might be Microsoft SQL Server SQL or Oracle's flavor of SQL. That's where you'll need to dig and experiment. Either way, you will NOT want to tweak this inside of the ESRI Map Viewer once you have it set up (because it doesn't support it within the UI so it might blow it out). Again, you'll need to evaluate if the risk/reward is worth it for your situation.
... View more
05-02-2024
08:57 AM
|
0
|
0
|
743
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 09-05-2024 08:12 AM | |
3 | 08-27-2024 02:01 PM | |
3 | 08-26-2024 08:12 AM | |
1 | 08-22-2024 09:38 AM |