|
POST
|
CORS is always a challenge. Have a look at the documentation to see if you can identify the solution for your particular setup. The easiest (but not always most reasonable) solution is to run your app from the same server as your services.
... View more
02-28-2022
01:45 PM
|
0
|
0
|
3444
|
|
POST
|
Thank you, @VincentLaunstorfer, for your continued updates on this issue!
... View more
02-25-2022
08:17 AM
|
0
|
0
|
3918
|
|
POST
|
Have you read the API documentation for the FeatureLayerView highlight method? There's a sample app there too. If this isn't sufficient, you'll need to be more specific about what you want to do.
... View more
02-23-2022
06:43 AM
|
1
|
0
|
1644
|
|
POST
|
Glad you got it figured out, @Vakhtang_Zubiashvili. Can you post the solution to help other people with a similar problem?
... View more
02-22-2022
06:59 AM
|
0
|
0
|
2554
|
|
POST
|
You can use the Text() function to convert other values to a string. However, it might be easier to just do your evaluation as a number. IIF($feature.PercentCom == 25, 'background-color:#1987bb', 'background-color:#DDDDDD')
... View more
02-18-2022
02:58 PM
|
0
|
1
|
2612
|
|
POST
|
Try setting the MapView highlightOptions. const view = new MapView({
map: webmap,
container: "viewDiv",
highlightOptions: {
color: [255, 255, 0, .9],
haloOpacity: 0.8,
fillOpacity: 0.5
}
});
... View more
02-18-2022
06:37 AM
|
0
|
1
|
1577
|
|
POST
|
You could either save the result from the select-result event to a global variable or call the selectedResult property from your other widget.
... View more
02-17-2022
06:13 AM
|
0
|
0
|
2638
|
|
POST
|
Check out the documentation for the Search widget. There are some properties and events that get the selected result. The select-result event seems easiest: const searchWidget = new Search();
searchWidget.on("select-result", function(event){
console.log("The selected search result: ", event);
});
... View more
02-16-2022
06:42 AM
|
0
|
2
|
2661
|
|
POST
|
You might have to use a graphics layer instead of a highlight.
... View more
02-15-2022
06:30 AM
|
0
|
0
|
2329
|
|
POST
|
Sorry if I'm misunderstanding, but can you loop over all your layers to do the query on line 57 in selectFeatures()? map.allLayers.forEach(layer => {
// query graphics from the csv layer view. Geometry set for the query
// can be polygon for point features and only intersecting geometries are returned
layer.queryFeatures(query)
.then((results) => {
// do something with query results
})
.catch(errorCallback);
});
... View more
02-15-2022
06:26 AM
|
1
|
2
|
2581
|
|
POST
|
In response to your preempted "why" question concerning performance, these two articles might be worth reading. https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/turbo-charge-your-web-apps-with-client-side-queries/ https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/techniques-for-visualizing-high-density-data-on-the-web/
... View more
02-11-2022
01:08 PM
|
0
|
1
|
1768
|
|
DOC
|
@MichaelVolz The Python scripts were scheduled to run with Windows Task scheduler. We chose the option to run the script even if the user is logged out and saved the credentials of the service account user to run as. This is how I knew what user is accessing concurrent use ArcGIS Pro licenses from our license manager on an internal server. As a troubleshooting step, I logged in with that user and attempted to launch ArcGIS Pro and immediately noticed the app was not configured with concurrent use licensing from our license server (despite having already logged in as myself on the same machine and configured concurrent use licensing for ArcGIS Pro. I have also experienced this issue on other users' machines on which I am installing ArcGIS Pro. When I log in as myself to install and configure ArcGIS Pro, the configurations (like setting concurrent use licensing) are not there when the user logs in.
... View more
02-07-2022
06:33 AM
|
0
|
0
|
65373
|
|
POST
|
@文瑞蘇 wrote: How can I proof that This usage is safe for ArcGIS server rest service? Apparently these types of expressions are common in SQL injection attacks. How to Prevent SQL Injection: Attacks and Defense Techniques - Tutorial and Best Practices (ptsecurity.com) I don't know how you would convince your organization's firewall to allow these expressions. You might instead have to find another way to query your data. Maybe there's an ID field in your data that is never null or some other where clause that should always return all rows. Something more specific to your data that isn't 1=1.
... View more
01-26-2022
06:26 AM
|
1
|
1
|
5149
|
|
POST
|
Are you sure it's the 1=1 where clause that's the problem? Can you successfully query with any where clause? objectid > 0
shape is not null You might need to request that your organization create a firewall rule allowing traffic from your application server to the ArcGIS Server on ports 6080 and 6443.
... View more
01-25-2022
06:16 AM
|
1
|
3
|
5180
|
|
POST
|
You can programmatically open the popup again rather than relying on the user to click the feature. Popup | API Reference | ArcGIS API for JavaScript 4.22 | ArcGIS Developer
... View more
01-24-2022
06:32 AM
|
0
|
1
|
1728
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Friday | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |