POST
|
Hello Jared, Maybe the following thread can get you closer to what you are looking for: https://community.esri.com/thread/92354 I hope it helps!
... View more
03-26-2019
07:15 AM
|
1
|
0
|
2329
|
POST
|
Hello Angus, Are you working with Portal for ArcGIS or ArcGIS Online? Are you able to test your 1.4.8 script again and see if it still works as expected? Also, are you able to test with the arcgis module that is available through Anaconda rather than the one installed by ArcGIS Pro and see if there is any difference? Thanks!
... View more
03-01-2019
05:39 AM
|
0
|
0
|
647
|
POST
|
Hello Bobo, Robert's solution works very well if you have a feature layer! I thought I should also mention this in case it could be of use to you: GeometryService | API Reference | ArcGIS API for JavaScript 4.10 There is a 'generalize' method that might get you what you are looking for. I hope it helps!
... View more
02-14-2019
11:43 AM
|
0
|
1
|
2168
|
POST
|
Hello Abdul, As Robert asked, I am also not sure about why you are using a list on line 12 for Draw. However, playing with the sample code from the ArcGIS API for JavaScript Sandbox I was able to get something that I think is what you are looking for. Below is the edited code from the sandbox. It is different from yours in structure but accomplishes the same thing: map.on("load", createToolbar);
//---Define your symbols as needed (marker symbol, lineSymbol, fillSymbol)---//
function createToolbar() {
toolbar = new Draw(map);
toolbar.on("draw-end", addGraphic);
// event delegation so a click handler is not
// needed for each individual button
on(dom.byId("buttons"), "click", function(evt) {
if ( evt.target.id === "buttons" ) {
return;
}
var tool = evt.target.id.toLowerCase();
map.hideZoomSlider();
toolbar.activate(tool);
});
}
function addGraphic(evt) {
//deactivate the toolbar and clear existing graphics
toolbar.deactivate();
map.showZoomSlider();
// figure out which symbol to use
var symbol;
if ( evt.geometry.type === "point" || evt.geometry.type === "multipoint") {
symbol = markerSymbol;
} else if ( evt.geometry.type === "line" || evt.geometry.type === "polyline") {
symbol = lineSymbol;
}
else {
symbol = fillSymbol;
}
map.graphics.add(new Graphic(evt.geometry, symbol));
}
}); Below is what the HTML might look like: <div id="buttons">
<div>Select a shape then draw on map to add graphic</div>
<button id="Point">Point</button>
<button id="Polyline">Polyline</button>
</div> I hope it helps!
... View more
02-06-2019
06:26 AM
|
0
|
1
|
1239
|
POST
|
Hello Gaius, Maybe one way of doing it would be to have multiple select by attribute tools each selecting by month. That would select the polygons for a single month but for all years. After that you can run the intersect tool on the feature class itself (input the same feature class twice for the intersect tool). This assumes that each feature class contains information for a single animal. If not, you should create a selection on the animal first, then create month attribute selections from the existing animal selection. Another way of doing this might be using a python script if you are familiar with python. It would allow you to easily iterate over your data which Model builder allows you to do but has a limit of one iteration tool per model. I hope that helps!
... View more
01-24-2019
07:31 AM
|
0
|
1
|
815
|
POST
|
Hey MR, You might be looking for how to send an HTTP request using JavaScript. Below is a link that might be useful to get you started. I hope it helps! Popular ways to make HTTP requests in JS from FreeCodeCamp
... View more
01-23-2019
06:24 AM
|
0
|
0
|
1342
|
POST
|
Hey Brad, Are you working in a scene view? If so, there is a known limitation when working in scene views with lines which vertices are close together.
... View more
01-23-2019
06:08 AM
|
1
|
0
|
560
|
POST
|
Hello Ruben, Would the ArcGIS Online Assitant be useful? ArcGIS Online Assistant You can click on 'I want to...' at the top and select veiw JSON. I hope it helps!
... View more
12-18-2018
05:55 AM
|
0
|
3
|
2730
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2019 06:08 AM | |
1 | 03-26-2019 07:15 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|