|
POST
|
Set the source of your embedded content widget to your Bike Pathways layer with the URL property set to the field that contains the link. On the properties page for your Map widget, on the "Layer actions" tab, turn on the "Select feature" option under the "When map is clicked" heading. Then under the "Layer actions" for your Bike Pathways layer, configure a filter action on the embedded content widget when the selection changes. That seems to work for me.
... View more
02-27-2024
11:29 AM
|
0
|
0
|
2264
|
|
POST
|
Are the URLs to the images stored as an attribute in your Bicycle Paths layer?
... View more
02-27-2024
10:39 AM
|
0
|
1
|
2268
|
|
POST
|
Hi, I haven't worked with it but would a combination of the Filter and GroupBy functions be helpful? This sample has an example of the kind of output you're looking for - Aggregate by Day of Week
... View more
02-27-2024
09:13 AM
|
1
|
0
|
1468
|
|
POST
|
Hi, I'm not totally clear on what you want to do but you can set the source of the embedded content widget to the layer, pulling the URL of the image from a field in the layer. Then configure an action that filters the embedded content widget when the layer selection changes. The example below filters the widget from a list but I think applying the filter from the map would be similar. Jill
... View more
02-27-2024
08:57 AM
|
0
|
0
|
2276
|
|
POST
|
Ah yes, now I see how those tools are meant to be used. Thanks!
... View more
02-27-2024
08:48 AM
|
0
|
0
|
2915
|
|
POST
|
Hi Calling the _hydrate method didn't seem to do the trick. The code block still took 24 minutes. I inspected the network traffic and I didn't realize that certain properties weren't returned by a search and that a subsequent request was required to retrieve them. It makes sense to me now why it takes so long and I can't think of a workaround. Even if I was accessing the REST endpoint directly, there is an "exclude" fields parameter but not an "include" fields parameter. Thanks for your help! Jill
... View more
02-21-2024
11:29 AM
|
0
|
0
|
2427
|
|
POST
|
@EarlMedina- A follow up question... I integrated your syntax for creating the dataframe from query results into my script and it kind of works but accessing the size property takes forever. In this example, I'm querying ArcGIS Online content and dumping it into a dataframe. If I leave out size, it takes 3 seconds. If I include size, it takes 24 minutes. I ran this against an ArcGIS Enterprise org and I finally had to kill the script after 4 hours. It never finished and never generated an error. Any ideas for a workaround? Thanks!
... View more
02-20-2024
01:28 PM
|
0
|
0
|
2435
|
|
POST
|
That syntax works! Thank you, really appreciate the help.
... View more
02-15-2024
02:51 PM
|
0
|
0
|
2535
|
|
POST
|
Hi, Thank you so much for your reply. When I use this method of populating the dataframe, I don't get the size populated at all, not even in the first row. I will look more at accessing the dictionary, instead of the object. Thanks!
... View more
02-15-2024
12:49 PM
|
0
|
1
|
2540
|
|
POST
|
I am stuck on a weird issue. I am searching for some items, adding them to a pandas dataframe and saving them to a csv. This is all working except that the size value is only populated for the first item. I can inspect the size property for each item and see that it has a value. In fact, once I access the size property, it shows up in the dataframe. Why does this happen and what is the workaround? Thanks!
... View more
02-15-2024
09:46 AM
|
0
|
7
|
2613
|
|
POST
|
I finally got this working and am leaving my solution here in case it helps someone else. I added the following to the constructor of the settings page of my custom widget. const outputDsJsons: DataSourceJson[] = [{
id: `${props.id}-output`,
type: DataSourceTypes.FeatureLayer,
label: "QlikView Layer",
originDataSources: [],
schema: {
idField: "__OBJECTID",
fields: {
__OBJECTID: {
jimuName: "__OBJECTID",
name: "__OBJECTID",
alias: "__OBJECTID",
type: JimuFieldType.Number,
esriType: EsriFieldType.OID
},
Route: {
jimuName: "Route",
name: "Route",
alias: "Route",
type: JimuFieldType.Number,
esriType: EsriFieldType.Integer
},
.....
}
},
isDataInDataSourceInstance: true
}]
this.props.onSettingChange({
id: this.props.id,
useDataSources: []
}, outputDsJsons); Then I added the output datasource as a new sheet in my attribute table widget. In my widget source I used the following to populate the records: const dataRecords = [];
const dataSourceManager = DataSourceManager.getInstance();
const outputDsId = this.props.outputDataSources[0]
dataSourceManager.createDataSource(outputDsId).then(ods => {
csvLayer.queryFeatures().then((results) => {
results.features.forEach((f) => {
const rec = ods.buildRecord(f)
dataRecords.push(rec);
});
ods.setSourceRecords(dataRecords)
ods.setStatus(DataSourceStatus.Unloaded)
ods.setCountStatus(DataSourceStatus.Unloaded)
})
}); No idea if this is the proper way to do this. I found it incredibly frustrating trying to implement this with the available documentation. I managed to piece something together from samples and community posts. Jill
... View more
02-13-2024
01:57 PM
|
3
|
1
|
2965
|
|
POST
|
Hi, I am trying to add a feature layer in a geodatabase on a network share to a map. Using the following tool works without issue: The layer is added to the current map. If I attempt to do this using Python, I get the following error about credentials. Any ideas on how to resolve this? Thanks! Jill
... View more
02-12-2024
12:21 PM
|
0
|
4
|
3261
|
|
POST
|
Hi, I'm not sure I understand. Do you need to query the REST endpoint directly, or can you use the ArcGIS API for Python to query the item? https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer has some examples. Jill
... View more
02-08-2024
09:21 AM
|
0
|
0
|
841
|
|
POST
|
I have inherited a custom widget that grabs a csv from a dynamic location, creates a JSAPI CSVLayer and adds it to the map. This is working without issue in ExB 1.13. I need to integrate this layer with the attribute table widget. I've seen a few posts suggesting that the way to accomplish this is to create an output datasource for the widget in the settings page. I've done this using the following code: const outputDsJsons: DataSourceJson[] = [{
id: `${props.id}-output`,
type: DataSourceTypes.FeatureLayer,
label: "Test Layer",
originDataSources: [],
schema: {
idField: "objectid",
fields: {
objectid: {
jimuName: "objectid",
name: "objectid",
alias: "OBJECTID",
type: JimuFieldType.Number,
esriType: EsriFieldType.OID
},
state: {
jimuName: "Route",
name: "Route",
alias: "Route",
type: JimuFieldType.Number,
esriType: EsriFieldType.Integer
},
clicks: {
jimuName: "Bus",
name: "Bus",
alias: "Bus",
type: JimuFieldType.Number,
esriType: EsriFieldType.Integer
}
}
},
isDataInDataSourceInstance: true
}]
this.props.onSettingChange({
id: props.id,
useDataSources: []
}, outputDsJsons); I can see this output in the settings page of other widgets. So, for example, I can add it as a "New sheet" to the Attribute Table widget and the configured schema looks correct. However, I can't figure out how to access this datasource and update it's records at run time. I can get a reference to the DataSourceManager and see all of the other datasources in the app but my custom output datasource doesn't appear. I'm not sure what I'm missing or where to go from here. Any insight is greatly appreciated. Jill
... View more
02-01-2024
02:18 PM
|
1
|
2
|
3095
|
|
POST
|
Hi Vicky, I am using the ArcGIS Pro ribbon tools. I can turn the footprints and camera locations on and off in the TOC but the "Show" buttons in the ribbon don't do anything. Thanks!
... View more
01-31-2024
02:30 PM
|
0
|
1
|
3039
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-11-2018 10:05 AM | |
| 1 | 04-21-2023 11:03 AM | |
| 1 | 08-22-2024 12:12 PM | |
| 1 | 06-17-2022 08:38 AM | |
| 2 | 05-23-2023 07:45 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|