|
POST
|
Hi @MathiasBerlin , In this help page you find a list of all the available tags to format labels in ArcGIS Pro: https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm There is no vertical-align tag, however, you can get close by using this: "<FNT size= '12'>" + "First Text" + "</FNT>" + "<FNT size= '9'> <SUP>" + "Second Text" + "</SUP></FNT>" Make sure to switch off the option "Stack labels" in the label placement options, to avoid the text being wrapped and appear on multiple lines.
... View more
02-25-2021
06:30 AM
|
1
|
0
|
998
|
|
POST
|
Hi @thainamota , Can you explain a little bit more about why you want to concatenate these values? It is possible to concatenate a GUID and a text as shown in the simplified example below: var globalid = Guid();
var sometext = "abc";
return Concatenate([globalid, sometext], ' '); This will return: {5429dd99-754a-4388-868a-c4436624b705} abc Please take into account the comments by @JoeBorgione about null values.
... View more
02-25-2021
05:40 AM
|
2
|
0
|
3312
|
|
POST
|
Hi @PaulDohertyFEMA , I would definitely open a support case and have this logged. This is not supposed to happen (IMHO).
... View more
02-25-2021
05:30 AM
|
0
|
0
|
3023
|
|
POST
|
Hi @Anonymous User , Not sure what could be causing the problem. I don't see anything wrong with the code. I just split the code into a couple more lines. Maybe you can check if this has different results. var facilityid = $feature.FACILITYID;
var sql = "FACILITYID = @facilityid";
var fs = FeatureSetByName($map, "pumpstation_gdb - PumpStationinspection", ["REPDATE", "WaterLevel"], false);
var tbl = Filter(fs, sql);
if (Count(tbl) == 0) {
return "no records found";
} else {
var orderedtbl = OrderBy(tbl, 'REPDATE DESC');
var latest = First(orderedtbl);
return latest["WaterLevel"];
}
... View more
02-24-2021
03:31 PM
|
0
|
3
|
5222
|
|
POST
|
Hi @Anonymous User , I think something else might be going on. I just opened the web map created for this blog post: https://community.esri.com/t5/arcgis-online-documents/using-featuresetby-functions-in-arcade-to-drill-down-to-other/ta-p/918691 in ArcGIS Field Maps and as you can see in the post, it contains Arcade in symbology and the pop-up. Most of the layers have a FeatureSetByName function in the arcade expressions and work fine in Field Maps with the exception of returning date with a newline. In the example below, on the left, it will intersect the larger sector polygon with the subsectors and order the result, the middle does an intersect of sub-sectors on hydrants and create some summary statistics and on the right, it will use a filter query a standalone table and return a list of maintenances at the hydrant. The only thing that doesn't work is the new line in the list of maintenances. In another map, I have connection points and in the pop-up I have a link to a survey in which I prepopulate a number of fields. This also works as expected.
... View more
02-24-2021
02:52 PM
|
0
|
5
|
5226
|
|
POST
|
Hi @Anonymous User , I have change the code a bit and included some comment that should guide you to create the expression: // get the related records
// change "AST_Inspection" by the name of the relationship class you have
// change "insp_date" by the date field in your related data, add any additional fields you need further on
var relatedrecords = FeatureSetByRelationshipName($feature, "AST_Inspection", ['insp_date'], false);
// get a count of the related records
var cnt = Count(relatedrecords);
// initialize a variable that will contain the information to return
var relatedinfo = "";
// only proceed if you have related records
if (cnt > 0) {
// sort those records by date descending
// change "insp_date" by the date field in your related data
var sortedrecords = OrderBy(relatedrecords, "insp_date DES");
// get the first record of the sorted related info
var latestinfo = First(sortedrecords);
// get the last date and other information if relevant
relatedinfo = Text(ToLocal(latestinfo["insp_date"]), "MM/DD/Y");
} else {
// in case you don't have related info
relatedinfo = "No related information available...";
}
// return the result
return relatedinfo; If you have any questions, feel free to reach out.
... View more
02-24-2021
01:42 PM
|
1
|
9
|
5234
|
|
IDEA
|
Hi @NicholeSalinger , As far as I understand being able to make a REST request and parse the returned JSON is something that is on the roadmap. Unfortunately, I don't have an ETA on when this will be available. Once available, this will open a huge amount of possibilities.
... View more
02-23-2021
12:35 PM
|
0
|
0
|
9643
|
|
POST
|
Hi @CalebMeliesPearce , I am tagging @HusseinNasser2 to see if he can help you with this question.
... View more
02-23-2021
12:32 PM
|
0
|
2
|
4871
|
|
POST
|
Hi @Anonymous User , I wasn't thinking of using Arcade in the layout profile (sorry for the confusion). If this is a single map you could generate the text in a static way and past it in the layout and use numbers as labels of the features that should point to elements in the text. If you work with a map series, this will become more complex and require coding.
... View more
02-22-2021
12:09 PM
|
0
|
1
|
1822
|
|
POST
|
Hi @DatNguyen2 , Just to add a little bit more detail. The HTML used is: <img style="display:{expression/expr12};float:left;" alt="Picnic" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/7d6319bddcd8463fa95072771be2e9b9/data" width="35" />
<img style="display:{expression/expr1};float:left;" alt="Fishing" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/f20a6937189144aebfdeb42217857b37/data" width="35" />
<img style="display:{expression/expr2};float:left;" alt="Hiking" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/45abe00b44484f84946c02efc8c0b6b0/data" width="35" />
<img style="display:{expression/expr3};float:left;" alt="Archery" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/496f45f58b8a483c961c00b1f67efe95/data" width="35" />
<img style="display:{expression/expr4};float:left;" alt="Biking" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/52d5725bf8cf47dc94861d057ac2936d/data" width="35" />
<img style="display:{expression/expr5};float:left;" alt="Boating" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/1313e5abf0ed4ca3965f778359bca3bb/data" width="35" />
<img style="display:{expression/expr8};float:left;" alt="Canoeing" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/1f47ccd6746d4db685e9a33c7f70a4ee/data" width="35" />
<img style="display:{expression/expr9};float:left;" alt="Disc Golf" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/b3442aabaf9649ccaac67b75b61fb1ea/data" width="35" />
<img style="display:{expression/expr10};float:left;" alt="Horse Riding" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/0f7359a8768f40a08ff8cb1fdd3addff/data" width="35" />
<img style="display:{expression/expr11};float:left;" alt="Hunting" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/81fc9360cca549c3857b9931ee1a2b91/data" width="35" />
<img style="display:{expression/expr13};float:left;" alt="Rock Climbing" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/79e50c9df79445c6a8ee5ac9540fc37d/data" width="35" />
<img style="display:{expression/expr14};float:left;" alt="Swimming" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/014308e4c92243b99884eb41a854c1e1/data" width="35" />
<img style="display:{expression/expr15};float:left;" alt="Watchable Wildlife" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/f1be4ca3910d43e0804de06c0bd46639/data" width="35" />
<img style="display:{expression/expr0};float:left;" alt="ATV" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/d01f5eab653e4b57acaf964bc9c66336/data" width="35" />
<img style="display:{expression/expr6};float:left;" alt="Baseball" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/c9cb4f27cb55462bb91daf1a6af73afc/data" width="35" />
<img style="display:{expression/expr7};float:none;" alt="Natural Center" border="0" src="https://otrd.maps.arcgis.com/sharing/rest/content/items/e2a4146936714d1d99d07f95977d0dbc/data" width="35" />
<br /><br /><br />
Address: {FULLADDR}<br />
Telephone: <a href="{POCPHONE}" rel="nofollow ugc" target="_blank">{POCPHONE}</a><br />
Website: <a href="{PARKURL}" rel="nofollow ugc" style="color:blue">Click to access State Park Website</a><br />
{Description} Although you mention that the pop-up works good when displayed on a desktop, it does not behave correctly in every situation. Have a look at "Beavers Bend" in the lower right corner:
... View more
02-22-2021
12:05 PM
|
1
|
0
|
921
|
|
POST
|
Hi @Anonymous User , Have you thought about including the text in the layout (as a text box) and use a number to refer from the location to the corresponding text?
... View more
02-22-2021
11:41 AM
|
0
|
3
|
1827
|
|
POST
|
Hi @Anonymous User , That is a lot of information to show in a label. It is perfectly feasible to include this information in a pop-up though.
... View more
02-22-2021
05:10 AM
|
0
|
5
|
1833
|
|
POST
|
Hi @DougBrowning , IsEmpty will return true if the provided value is null or an empty string. So yes, it should be able to detect them both. https://developers.arcgis.com/arcade/function-reference/logical_functions/#isempty
... View more
02-18-2021
02:23 PM
|
0
|
0
|
685
|
|
POST
|
Hi @HananAli , From what I can see your X and Y are switched. Values in the X field correspond to the Latitude and the values in the Y field correspond to Longitude. The Display XY events in ArcMap will automatically take the X field as X and the Y field as Y, but this needs to be switched. Furthermore, you will have to make sure that the WGS1984 is used as coordinate system in the Display XY events interface.
... View more
02-17-2021
01:31 PM
|
3
|
0
|
1563
|
|
POST
|
Hi @DavidPike , sorry about that, you are absolutely right. I will mark it as a solution since it is the way to go.
... View more
02-16-2021
06:15 AM
|
1
|
0
|
2950
|
| Title | Kudos | Posted |
|---|---|---|
| 6 | 12-20-2019 08:41 AM | |
| 1 | 01-21-2020 07:21 AM | |
| 2 | 01-30-2020 12:46 PM | |
| 1 | 05-30-2019 08:24 AM | |
| 1 | 05-29-2019 02:45 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-26-2025
02:43 PM
|