|
POST
|
Do you have access to an ArcGIS Server? If so you could create a model that uses tools from the Linear Referencing toolbox and then publish it as a Geoprocessing Service. If ArcGIS Server is not an option, and you need to do everything client-side, you might want to look into Turf. I haven't had a chance to try this library yet, but the along and lineSlice functions might work to get you a line segment.
... View more
06-28-2016
10:40 AM
|
1
|
2
|
1635
|
|
POST
|
You should be able to use Visual Studio Code for this purpose. This is a good resource: Using TypeScript with EsriJS 4 - odoenet
... View more
06-15-2016
10:11 AM
|
1
|
0
|
1382
|
|
POST
|
Or perhaps the SDE capability could be some sort of add on, so that only people who need this capability would have to download it.
... View more
05-27-2016
12:49 PM
|
0
|
0
|
1399
|
|
POST
|
Do I need to add a destroy() or refresh() every time I change a layer? Yes, that is exactly what you need to do. I have heard that this will no longer be necessary at v. 3.17 of the API, though.
... View more
05-24-2016
11:11 AM
|
0
|
2
|
1071
|
|
POST
|
I just noticed a bunch of other replies were added between when I started typing and when I submitted my reply. Oops.
... View more
05-18-2016
01:43 PM
|
0
|
0
|
5992
|
|
POST
|
The first thing I would do is open up the network tab in the debugging window and reload the page. Look for the request to the week.geojson file and examine the response. Since the error message mentions the '<' character, I suspect that you are getting an error page instead of the JSON text, and the '<' is the beginning of an HTML response. It's possible you may need to add the 'application/json' mime type to your server configuration before it will serve out JSON files. (The method for doing so will depend on what web server you are using.)
... View more
05-18-2016
01:42 PM
|
1
|
2
|
5992
|
|
POST
|
You'll need to write code that converts the output from the Census API into a GraphicsLayer.
... View more
05-17-2016
12:50 PM
|
0
|
0
|
3933
|
|
POST
|
It looks like they might actually have a map service: Census TIGERweb GeoServices REST API
... View more
05-17-2016
09:10 AM
|
0
|
2
|
3933
|
|
POST
|
Is there a way to create a WebMap using ArcGIS REST API formatted JSON? What I would like to do is construct a map using a webmap defined in a JSON file on the same server as the web application rather than getting the JSON from ArcGIS Online (by providing an AGOL item id corresponding to a webmap). Obviously, when you construct a WebMap object by providing an AGOL webmap item id, there must be code in the API that is parsing the returned JSON, but I am not finding any documented way to construct a webmap without hosting the map on ArcGIS Online or on a Portal.
... View more
05-13-2016
01:33 PM
|
0
|
3
|
5374
|
|
POST
|
You'll need to change the value of the Show Messages setting of the Print GP service if you want the service to return error messages to the client. (For security reasons, no messages are returned by default.)
... View more
05-04-2016
09:48 AM
|
1
|
0
|
2231
|
|
POST
|
The first thing I would try is to open the web developer tools in either Chrome or Firefox (press F12) and open the network tab before clicking the print button. After clicking the print button, to you see calls to the print service? If you see no activity there then the problem is with the button event (e.g., the call to the print service is never occurring when the button is clicked).
... View more
05-03-2016
10:51 AM
|
0
|
3
|
2231
|
|
POST
|
Richard Moussopo, you are correct when you state that the FeatureTable does not update when you update your FeatureLayer. I contacted Esri customer support in February about this and was told to use the workaround that you are trying, to destroy and recreate the table each time the feature layer is updated. I asked them to create an enhancement request to keep the features in sync, which they did: #ENH-000094524 [Enhancement] Update Featuretable when the underlying Featurelayer's definition query changes Below is the function I used to create the table, which will destroy the previous table each time it is called. var table;
function createTable() {
// Destroy existing table.
if (table) {
table.destroyRecursive();
registry.byId("tablePane").domNode.innerHTML = '<div id="table"></div>';
}
/**
* Resizes the table panel as the table is collapsed or expanded.
* @param {Event} e - Table close button click event.
*/
function resizeTablePanel(e) {
var gridHeaderNode = registry.byId(table._gridHeaderNode || table._gridMenu).domNode;
var tableNode = registry.byId("tablePane").domNode;
var borderContainer = registry.byId("borderContainer");
var isOpening = e.target.classList.contains("toggleClosed");
if (isOpening) {
tableNode.style.height = tableNode.dataset.openHeight || "50%";
} else {
// Store the old height.
tableNode.dataset.openHeight = tableNode.style.height || [tableNode.clientHeight, "px"].join("");
// Set to "closed" height.
tableNode.style.height = [gridHeaderNode.clientHeight, "px"].join("");
}
borderContainer.resize();
}
// Create the feature table
table = new FeatureTable({
featureLayer: layer,
outFields: outFields,
editable: false,
syncSelection: false,
zoomToSelection: false,
// These fields are hidden by default, but user can turn them back on.
hiddenFields: [
"Direction_Ind",
"RouteID",
"Begin_ARM",
"End_ARM",
"SRMP_Begin_AB_Ind",
"SRMP_End_AB_Ind",
"SRMP_Date",
"LRSDATE",
"RelRouteType",
"RelRouteQual",
"Mid_Arm",
"Mid_Mile_Post",
"Project_List",
"LOC_ERROR"
],
showGridHeader: true,
map: map
}, "table");
table.startup();
// 3.15 event handler setup.
/**
*
* @param {DGridRow[]} rows - The rows that were selected
*/
table.on("dgrid-select", function (rows) {
selectOrDeselectFeatures(rows);
});
/**
*
* @param {DGridRow[]} rows - The rows that were unselected
*/
table.on("dgrid-deselect", function (rows) {
selectOrDeselectFeatures(rows, true);
});
// 3.16 event handler setup
/////**
//// *
//// * @param {DGridRow[]} rows - The rows that were selected
//// */
////table.on("row-select", function (rows) {
//// selectOrDeselectFeatures(rows);
////});
/////**
//// *
//// * @param {DGridRow[]} rows - The rows that were unselected
//// */
////table.on("row-deselect", function (rows) {
//// selectOrDeselectFeatures(rows, true);
////});
// resize panel when table close is toggled.
table.tableCloseButton.addEventListener("click", resizeTablePanel);
}
... View more
04-28-2016
04:30 PM
|
4
|
3
|
4308
|
|
POST
|
You'll need to register your data with the server, as described here: Make your data accessible to ArcGIS Server—Documentation | ArcGIS for Server
... View more
04-28-2016
04:13 PM
|
2
|
0
|
3577
|
|
POST
|
dojo/text - This is the documentation for what Robert Scheitlin, GISP mentioned. JSON.parse() - Use this to convert the results from dojo/text into a JavaScript object.
... View more
04-11-2016
04:55 PM
|
1
|
0
|
904
|
|
POST
|
One thing you can do is see if there is any non-UI code that you can do on another thread using Web Workers. (Web Workers should be supported in IE 11.)
... View more
04-05-2016
09:20 AM
|
0
|
1
|
998
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2025 08:56 AM | |
| 2 | 03-05-2024 05:10 PM | |
| 1 | 04-30-2013 08:23 AM | |
| 1 | 05-03-2022 09:45 AM | |
| 1 | 06-30-2015 10:55 AM |