|
POST
|
You can add your layer names as an additional Javascript file to your app with all the layer names stored in a JSON object or array. So in your HTML you add (in the header <head>): <script src="showlayers.js"></script> and the showlayers.js file content would be something like: var visibleItems = [
"City Limits",
"Land",
"Parcels",
...
]; And when checking for the layers to make visible: for(i = 0; i < myItems.length-1; i++){
var item = myItems[i];
if(visibleItems.indexOf(item.title) != -1){
item.visible = true;
}
}
... View more
08-09-2017
11:40 PM
|
1
|
5
|
2432
|
|
POST
|
You could quite easily retrieve the data by ID with esri.request: esri/request | API Reference | ArcGIS API for JavaScript 3.21. So when you click on the feature, maybe set the popup window content to a load spinner image, and when the request completes, parse the XML and populate the popup window with the new content.
... View more
07-10-2017
04:06 AM
|
1
|
0
|
1356
|
|
POST
|
Is the spatial reference properly defined for your bounding box? And what other parameters are you modifying for the export? Combinations of DPI and Map Scale can have unexpected effects on the resulting KML.
... View more
07-10-2017
03:17 AM
|
0
|
0
|
1189
|
|
POST
|
I checked and you're right - it looks buggy. I can't say what the issue might be, but I tested on a circle added from user input using the drawing toolbar and then the editing works - see Draw & Edit - JSFiddle . So it looks like the circle object is problematic when adding it progammatically. The browser debug console outputs a bunch of errors on the circle move event:
... View more
06-29-2017
01:10 AM
|
0
|
0
|
867
|
|
POST
|
Do you have control over the WMS? If you do then it is probably better to create a new layer for the labels of which you can toggle the visibility on the client side. Otherwise I don't think it is possible.
... View more
06-21-2017
01:07 AM
|
2
|
0
|
2041
|
|
POST
|
You could try the ArcGIS Server link library: google-maps-utility-library-v3-read-only/arcgislink at master · printercu/google-maps-utility-library-v3-read-only · Git… ArcGIS Server Link for Google Maps API: Examples
... View more
06-20-2017
05:48 AM
|
1
|
0
|
4123
|
|
POST
|
Yes just change the workspace and output folder on your side.
... View more
06-14-2017
10:45 PM
|
0
|
5
|
1935
|
|
POST
|
The short answer is yes. HTTP(S) prefixes are required to generate automatic hyperlinks in the popup. See this page https://blogs.esri.com/esri/arcgis/2016/08/24/url-parameters-in-pop-ups/ and Supported HTML—ArcGIS Online Help | ArcGIS
... View more
06-14-2017
03:05 AM
|
2
|
1
|
2854
|
|
POST
|
I would also like to see how the esri.request compares to the jQuery Ajax request.
... View more
06-14-2017
01:54 AM
|
0
|
0
|
6172
|
|
POST
|
It works on Feature Classes too. The input table does not necessarily have to be a table object.
... View more
06-14-2017
01:51 AM
|
2
|
3
|
3651
|
|
POST
|
You can try this code, taking into account that Excel files are limited to 65,535 (XLS) or 1,048,576 (XLSX) rows: import arcpy
arcpy.env.workspace = r'D:\MyfolderOrGDB'
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
rows = int(arcpy.GetCount_management(fc).getOutput(0))
if rows < 65535:
desc = arcpy.Describe(fc)
xlsfile = '{}{}{}'.format('D:/OutputFolder/', desc.name, '.xls')
arcpy.TableToExcel_conversion(fc,xlsfile)
... View more
06-14-2017
12:56 AM
|
2
|
9
|
2710
|
|
POST
|
Yes that's the idea, but only for more complex content parameters that are also JSON objects. Why not try the request with a jQuery Ajax or standard XMLHttpRequest instead?
... View more
06-12-2017
10:51 PM
|
2
|
3
|
6172
|
|
POST
|
Have you tried JSON.stringify on the individual JSON-format parameters in the request content? And also throw in a f: "json" in the content.
... View more
06-09-2017
12:40 AM
|
0
|
5
|
6172
|
|
POST
|
Check out this post: https://community.esri.com/message/524470
... View more
05-31-2017
02:25 AM
|
2
|
0
|
2194
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
20 hours ago
|