POST
|
You'd need to post all your code if you can, but at a glance your output shouldn't be a dictionary I don't think. What is your return statement?
... View more
02-20-2024
05:05 AM
|
0
|
1
|
504
|
POST
|
Sorry I don't have time to check if this actually works, but I think you want something that looks like this. If it doesn't work it hopefully gets you close to a solution. // Build SQL to query against Pole Layer. LatLong is in the pole field. feature.LatLong is the cable's LatLong field
var sql = Concatenate("LatLong = ", $feature.LatLong)
// Filter your pole layer get to only return features where the LatLong fields are equal between Cable and Pole
var features = Filter(FeatureSetByName($map, "Pole", ['LatLong','PoleID']), sql)
// If return is not empty. get the first feature and build your return text
if (!IsEmpty(features)) {
var pole_data = First(features)
return {
type : 'text',
text : `This cables Start/End Pole is: ${pole_data.PoleID}`
}
}
... View more
02-19-2024
06:54 AM
|
0
|
1
|
962
|
POST
|
I can't see a clever way to change the cluster size based on the value rather than point count, but would adding the revenue field as a cluster field, then customizing the label work as far as the display? My example is pretty dumb since it uses latitude but it gets the gist across:
... View more
02-16-2024
07:39 AM
|
0
|
0
|
505
|
POST
|
I think its that mediaInfos should be an array since you can have multiple charts: return {
type: "media",
attributes:Values,
mediaInfos:[{
type: "barchart",
title: 'Room type sqare footage',
value: {
fields: pieNames
}
}]
}
... View more
02-16-2024
05:11 AM
|
1
|
1
|
485
|
POST
|
Clustering really is for aggregating points for display. Instead of that would changing the style based on the revenue field work?
... View more
02-15-2024
05:34 AM
|
0
|
1
|
525
|
POST
|
There's not really a lot of options via arcade for that. If you enable search on your polling place you could use the find parameter to add a URL to the summary window, but that basically opens the same map at the same place in a new tab with the polling place selected, which feels redundant. If its a good enough work around, just append &find=856 or whatever the polling place precinct number is.
... View more
02-14-2024
05:44 AM
|
0
|
0
|
427
|
POST
|
It's a bit of a challenge to do without your data, but maybe something like // Build query that gets takes your polygon precinct id and compares it against the polling place PRECINCTCODE
var ident = Concatenate("'%",$feature.PRECINCTCODE,"%'")
// Build Query polling place where code matches with a wildcard
var sql = Concatenate("PRECINCTCODE LIKE",ident)
// Get your polling place feature based on query. Update with your Polling Place layer name
var features = Filter(FeatureSetByName($map, "Polling Places"), sql)
// DESCRIPTION Should be whatever your polling place name is or whatever other fields you want to build as your output. Really this will just return 1 feature. You should include some error checking here if features are empty.
For (var f in features) {
var polling_place = f.DESCRIPTION
}
var str_output = Concatenate("My polling place for this precinct is: ",polling_place)
return {
type : 'text',
text : str_output
}
... View more
02-13-2024
10:43 AM
|
1
|
1
|
448
|
POST
|
If you have any additional details or layers to share, that may help; there's not too much to go on here. Did you just drag the CSV into the map viewer? Is your CSV a data table? If not, it should be. Your workflow should be to create a data table from your CSV, create a view of that data table, set the view to public, then use that view in your map so there are no sharing/permissions issues. The sign in box is possibly because your data table is not public. Unable to create map may resolve itself by making sure there are no permission issues.
... View more
02-09-2024
07:15 AM
|
0
|
0
|
197
|
POST
|
Someone in your organization probably saved an old view or a copy at some point; idpgis was deprecated awhile ago and its content is now hosted elsewhere: https://mapservices.weather.noaa.gov/eventdriven/rest/services/radar/radar_base_reflectivity/MapServer
... View more
02-08-2024
09:22 AM
|
0
|
0
|
271
|
POST
|
I believe yes as long as you set a refresh interval on your Joined Feature Layer view. You Join your District boundaries Feature Layer to your contact information table. When you update your table weekly, your Joined view will update.
... View more
02-06-2024
05:51 AM
|
0
|
0
|
401
|
POST
|
Would something like this work for your arcade pop up expression? var pipe_mtrl = $feature.Pipematerial // Replace with your pipe material field name
var pipe_diam = $feature.Pipediameter // Replace with diameter field
// Add below asbestos cement for more materials. Not provided is your catch all; change to whatever default return is needed
var pipe_abbrv = When(
pipe_mtrl == 'Mid Steel', 'MS',
pipe_mtrl == 'Unknown', 'UNK',
pipe_mtrl == 'Asbestos Cement', 'AC',
'Not Provided'
)
return {
type : 'text',
text : `${pipe_abbrv} ${pipe_diam}`
}
... View more
02-06-2024
04:35 AM
|
0
|
1
|
694
|
POST
|
Try returning popupString in an object? return { type: 'text', text: popupString } The formatting of your anchor tab looks a little off also since you're wrapping the field in quotes. Maybe something like: var maddress = f.MediaAddress popupString += `<a href = ${maddress }>Media Address</a>` + TextFormatting.NewLine
... View more
02-05-2024
06:47 AM
|
1
|
0
|
573
|
POST
|
Setting up the search parameter is done at the map item level, so whatever item webmap=xxxx is, go to the settings and scroll down to set the layer and field you want to use to find https://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm As far as I know you can't do 2 but I've been wrong more times than I've been right.
... View more
02-05-2024
06:06 AM
|
1
|
1
|
757
|
POST
|
You need something that will post a link below your content if it exists, or else post nothing? Maybe something like: // URL Field
var nav_url = $feature.ADS_Link_to_Recording_Report
// True/False to determine if field is empty
var record_link_exists = IsEmpty(nav_url)
// Holds results
var my_text = ''
// If Link is empty, Do not post a link, else Post the text with the link
If (record_link_exists) {
my_text = `<p>My content without a link goes here</p>`
} else {
my_text = `<p>At the end of this content is a link since it exists.</p><p>My Link: <a href=${nav_url}>Click Here To View the Recording Report</a>`
}
// Show Data
return {
type : 'text',
text : my_text
}
... View more
02-02-2024
08:54 AM
|
1
|
0
|
1932
|
POST
|
I believe the return for a popup needs to be an object now, so you have to return: return { type : 'text', text : 'my text here' } instead of just null or a features property. var return_text
IIf (IsEmpty($feature.ADS_Link_to_Recording_Report),return_text = null, return_text = $feature.ADS_Link_to_Recording_Report)
return {
type : 'text',
text : return_text
} Should work.
... View more
02-02-2024
05:37 AM
|
1
|
1
|
1120
|
Title | Kudos | Posted |
---|---|---|
1 | 01-08-2024 07:28 AM | |
1 | 02-05-2024 06:47 AM | |
1 | 05-24-2024 07:09 AM | |
2 | 01-05-2024 11:15 AM | |
1 | 05-07-2024 10:03 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|