|
POST
|
You should be able to accomplish this by getting the JSON object from the Graphic and then creating a new Graphic using the JSON object. It would look something like this: require(["esri/graphic"], function(Graphic) {
… you code here …
graphicJSON = originalGraphic.toJson()
graphicCopy = new Graphic(graphicJSON)
… you code here …
}); There may be a more elegant way to this, but this approach is the first one that comes to my mind.
... View more
04-21-2016
07:51 AM
|
0
|
0
|
2961
|
|
POST
|
The best spot to submit this enhancement request would be on the Esri ArcGIS Ideas site.
... View more
04-21-2016
07:40 AM
|
0
|
0
|
2212
|
|
POST
|
I just checked my own 10.3 install of GeoEvent and had no problems picking layers from either ArcGIS Online or ArcGIS for Server while importing definitions. The only time I've had similar problems was when the Data Store hadn't successfully synchronized in a while. Try going to GeoEvent's Site > GeoEvent > Data Stores section and: Make sure the corresponding data store is valid (has a green checkmark) Try hitting the synchronize button for the corresponding data store and wait a few minutes for the data to be transfered Also, I've never seen an alphanumerically coded name like that for a Feature Service, how was it created? Can you add the Feature Service to a web map and view it correctly?
... View more
04-20-2016
02:29 PM
|
0
|
2
|
1086
|
|
POST
|
As you are setting the value of "Maximum number of closest matches" to 1, it is returning the single closest feature amongst all input features. My understanding is that this is the intended behavior. If you want to get the distance from the Input feature to ALL Near features, then use a value of 0 for the "Maximum number of closest matches" instead. This will probably give you the result you are looking for: The last scenario is where you want to get the single closest feature for each individual Near point feature class. For this, you will need to keep using a loop to go through each feature class and run the Generate Near Table on each feature class. I don't have access to a 10.0 install and therefore cannot test the previous behavior. However, it is possible the behavior has changes as the Near tools were re-written at 10.2 (http://resources.arcgis.com/en/help/pdf/whats_new_in_arcgis.pdf ).
... View more
04-20-2016
02:16 PM
|
1
|
2
|
2212
|
|
POST
|
You can use the API's geometry engine, which has a cut method: esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript The user will need to draw a line rather than just clicking to create a point, but it works in the same way.
... View more
04-19-2016
11:36 AM
|
0
|
2
|
2382
|
|
POST
|
You can retrieve a features extent by using the Feature Layer's queryExtent method. This will return the full extent of the feature layer, which you can then use to set the extent of the map using its setExtent method. Your code would look something like this: function zoomToLayer(featureLayer) {
query = new Query();
query.where = featureLayer.getDefinitionExpression() || "1=1";
featureLayer.queryExtent(query).then(
function(result) {
map.setExtent(result.extent);
},
function(error) {
console.error("Failed to get query extent", error);
}
)
}
... View more
04-15-2016
06:01 AM
|
0
|
1
|
632
|
|
POST
|
I believe this isn't available yet in the 4.0 API beta. By digging around the objects, the Rotation Info object is still present in the renderer as it was before, but isn't documented and probably isn't implemented or ready for prime-time. It should show up in one of the future releases, keep an eye on our blog for when it does. (Disclaimer, I don't work for the API team)
... View more
04-14-2016
02:32 PM
|
0
|
0
|
1698
|
|
POST
|
I tested both the sample service and in-house services all IE-11, Firefox, and Chrome and they all worked fine for me in ArcGIS Online. If you are still experiencing issues, hit the F12 key in your browser and check the console for an error. As for those who cannot access the Stream Service from any browser, their may be a firewall on your network blocking the websocket connection.
... View more
06-24-2015
10:03 AM
|
1
|
0
|
2347
|
|
POST
|
I've never worked with Electron, but given the error message I'm guessing that there is a conflict between Dojo's AMD loader and Electron's loader (the "require" part). Dojo has a global variable called "require" and it looks like Electron may also have one. If this is the case, one is overwriting the other, which is bad; Dojo is either attempting to use Electron's loader or vice-versa. If you search the web for posts about working with Dojo and other frameworks (like Angular, Ember, or REACT) you'll see that there can be challenges with conflicting loaders. You may be able to derive a solution for your case from these. Although I can't give you a solution for Electron, hopefully I've given you a starting point.
... View more
06-23-2015
02:37 PM
|
2
|
1
|
1544
|
|
POST
|
If you are using the stock browsers on the Samsung devices, you should try Chrome for Android or Firefox. The stock browsers aren't always the best. Otherwise, it could be a spacing issue, if the resolution is smaller on the Samsung device, the basemap selector may be hidden to make room for other elements.
... View more
01-14-2015
11:54 AM
|
0
|
1
|
794
|
|
POST
|
The documentation does seem to support this, there are no objects for each individual legend item, but just a name. You could try to parse the XML's that are created when exporting an MXD to an MSD as documented in this post: arcgis desktop - Creating summary table of symbology of all datasets in multiple MXDs? - Geographic Information Systems …
... View more
01-14-2015
11:08 AM
|
0
|
0
|
605
|
|
POST
|
When editing the Web Map Item properties, have you made sure the "Basemap Selector" option is selected?
... View more
01-14-2015
10:55 AM
|
0
|
3
|
794
|
|
POST
|
Unfortunately, there isn't an easy way to just pass a token and let JavaScript do the rest of the work. The Identity Manager is meant to process the authentication. You need to use the initialize method of the Identity Manager, passing it the Identity Manager properties which look like: {
"serverInfos": [
{
"server": "https://myserver.com",
"tokenServiceUrl": "https://myserver.com/arcgis/tokens/",
"adminTokenServiceUrl": "https://myserver.com/arcgis/admin/generateToken",
"shortLivedTokenValidity": 60,
"currentVersion": 10.3,
"hasServer": true
}
],
"oAuthInfos": [],
"credentials": [
{
"userId": "username",
"server": "https://avl.esri.ca:8013",
"token": "e1jf-6cd-a2whk5_3h4ZWKnCxd1LyVy_eMLsuvxxPd3.",
"expires": 1421264556065,
"validity": 60,
"ssl": false,
"creationTime": 1421260956120,
"scope": "server",
"resources": [
"https://myserver.com/arcgis/rest/services"
]
}
]
} This object can be tricky to build, but most of the info can be obtained from the token request and combining it with the information available from the server information query: http://myserver.com/arcgis/rest/info?f=json
... View more
01-14-2015
10:51 AM
|
1
|
3
|
7774
|
|
POST
|
This is a browser restriction; you cannot make an unsecured request from a secured page in most (if not all) modern browsers. You can bypass this issue by using a proxy (see link below) hosted on your secure server, however this defeats the purpose of having a secured application and is therefore not suggested. Whenever you add non secure content to a secured page, the page becomes unsecured for all intents and purposes. Otherwise, the only other option is to remove SSL from your site or not use that service. Using the proxy | Guide | ArcGIS API for JavaScript
... View more
01-14-2015
10:37 AM
|
0
|
1
|
715
|
|
POST
|
This means that your software is set up to retrieve a license from a License Server, but the address of the server is not set. Given that you have a trial, it is unlikely that it is for a concurrent license (served from a server). Instead, you need to tell ArcGIS for Desktop to look for the license on your computer. To do this, go to Start > All Programs > ArcGIS > ArcGIS Administrator then pick the "Desktop" folder from the folder tree. You will then want to pick the Single Use license you have received and click OK. As long as you authorized your software properly on install, you should now be able to open the software.
... View more
01-14-2015
10:30 AM
|
1
|
0
|
909
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2016 11:31 AM | |
| 1 | 01-15-2021 06:27 AM | |
| 1 | 01-18-2021 06:53 AM | |
| 1 | 01-15-2021 07:08 AM | |
| 1 | 04-22-2016 09:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-07-2025
12:00 PM
|