|
POST
|
We have a few basemaps that have a reference layer (Navigation Overlay) of highway shields, route names, etc. While configuring the App, this layer is visible and working how we expect (same is true for the 'map' - works fine there as well), however, once the App is saved and viewed, the reference layers no longer exist. Configuring App: Viewing App: ? Where do they go? *everything is shared publicly.
... View more
07-24-2017
01:00 PM
|
0
|
3
|
916
|
|
POST
|
I struggled with something similar recently (10.4.1). I was referencing my data source by absolute path, and even though it was registered with the server, it kept telling me it wasn't and that it needed to copy the data to the server. I don't really understand why this works, but breaking the path into pieces and joining them with os.path.join solved it.... see this page - Authoring geoprocessing tasks with Python scripts—Documentation | ArcGIS Enterprise about 1/2 way down the "Hybrid Example" Specifically for me: lrs = "D:/arcgisserver/tools/GDB_Rail.sde/RAIL_ADMIN.INV_Rail_LRS" did not work lrs = "D:/arcgisserver/tools/GDB_Rail.sde" lrsLyr = os.path.join(lrs,"RAIL_ADMIN.INV_Rail_LRS") worked
... View more
06-02-2017
12:16 PM
|
0
|
0
|
1206
|
|
POST
|
You could group n number of layers into a single service. I have a few services that have 30+ layers in them. I don't know if there is a limit on the number of layers per service. A few years ago I was told 25 was the recommended max. Not sure if that is still true or not. Also, I would set your min instances = max. If you hit a service that isn't active, it will use considerable CPU to spin up the ARCSOC process. If your memory can handle it, keep them alive indefinitely. If you add more layers to a service, you should bump up the min/max instances per machine so it can handle more requests. You could also try low isolation and increase instances per process. There are caveats to this, but it has worked well for us.
... View more
05-18-2017
01:36 PM
|
2
|
3
|
3278
|
|
POST
|
This happened to me when the Committed memory exceeded it's limit. Adding more virtual memory (paging file) to bring the Committed memory below the limit solved it.
... View more
05-27-2016
01:14 PM
|
0
|
0
|
1588
|
|
POST
|
That actually looks OK. Probably not related then. Sorry...
... View more
04-01-2016
07:08 AM
|
0
|
1
|
3318
|
|
POST
|
I had similar error messages while publishing, but it never took 2 hours. Turned out I ran out of virtual memory (not RAM but paging file). Worth a shot to look into.
... View more
03-31-2016
01:18 PM
|
0
|
3
|
3318
|
|
POST
|
I am attempting to add a few more feature layers to our open data portal. I have followed the same procedure as I have done before, except now, the feature layers are under "Items" in the ODP Data Manager page rather than under "Datasets" where things seem to work. These "Items" do not show up in our ODP. What is the difference between "Datasets" and "Items" and why do Items not show up in the ODP? How can I get them to show up. My process is as follows: Add new layer to MXD. Overwrite Feature Service / publish to our ArcGIS Server. Create Feature layer in AGO that points to the REST endpoint of the new layer. Share new layer with ODP enabled group and Everyone.
... View more
01-14-2016
12:38 PM
|
0
|
4
|
3749
|
|
POST
|
Currently we have ArcGIS Server and Web Adapter (iis) sitting on a single machine in our DMZ serving only map/feature services (no applications). I would like to move the ArcGIS Server into our internal network to make use of windows authentication and leave the Web Adapter out in the DMZ for external requests. It sounds like I can do this as long as port 6080 is open between the two servers. In the documentation there is a note stating "The use of a reverse proxy server can potentially add an overhead to requests to your ArcGIS Server services." ArcGIS for Server Help . I'm confused in that sometimes the Web Adapter is referred to as a reverse proxy and sometimes they seem like they are spoken as being mutually exclusive. Is a Web Adapter always considered a reverse proxy and therefore always adding this overhead? Would there be significantly different amounts of overhead in the following two scenarios? ArcGIS Server and Web Adapter on single machine in DMZ vs. Web Adapter in DMZ with ArcGIS Server in internal network. We average about 10,000 request/day and are nearly pushing the limits of our hardware - I am wary of potential performance hits.
... View more
09-02-2015
06:08 AM
|
0
|
1
|
6187
|
|
POST
|
Our IT dept recently implemented ADFS allowing us to migrate to enterprise logins. We have some python scripts to help manage our AGO organization where we need to generate a token like - parameters = urllib.urlencode({'username' : username,
'password' : password,
'client' : 'referer',
'referer': url,
'expiration': 60,
'f' : 'json'})
response = urllib.urlopen(url + '/sharing/rest/generateToken?', parameters).read()
token = json.loads(response)['token'] The REST API calls require a token to fulfill some request. How can we generate a token with enterprise logins? example of script where we need to pass a token - parameters = urllib.urlencode({'token': token, 'f': 'pjson'})
request = Url + '/sharing/rest/community/users/' + user + '?' + parameters
response = urllib.urlopen(request).read()
... View more
08-06-2015
06:04 AM
|
0
|
0
|
3442
|
|
POST
|
I had the same problem and came across this post Javascript API map 3.7 has no coordinates when handling map click Adding the following to the function after the require statement fixed it for me document.dojoClick = false; require(["esri/map",
.
.
"dojo/ready"],
function (Map, .....,ready) {
document.dojoClick = false;
ready(function () {....
... View more
06-26-2015
10:21 AM
|
1
|
1
|
1598
|
|
POST
|
Hi Peggy I've done it like this before. function executeIdentifyTask(evt) {
var attr, template, route;
identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
var deferred = identifyTask.execute(identifyParams);
deferred.then(function (response) {
// If no results, prevent info window from showing
if(response.length > 0)
{
map.infoWindow.show(evt.mapPoint);
}
else
{
map.infoWindow.hide();
}
return array.map(response, function (result) {
var feature = result.feature;
feature.attributes.layerName = result.layerName;
template = new InfoTemplate();
template.setTitle("${SomeTitle}");
template.setContent("some content");
feature.setInfoTemplate(template);
return feature;
});
}).then(function(features){
map.infoWindow.setFeatures(features);
});
}
... View more
04-30-2015
06:54 AM
|
0
|
1
|
1306
|
|
POST
|
Regarding the first question. If your map/feature service is coming from ArcGIS Server, you can set the 'Maximum Number of Records Returned by Server' to 0. So your form will take in submissions but will not show anything on the map. If you were in Server Manager -> Edit your service -> Parameters tab -> under Properties
... View more
03-06-2015
11:10 AM
|
2
|
1
|
1717
|
|
POST
|
We have a WAB (online) template that a bunch of our AGO maps are attached to. Sometime over the past week, the legend stopped working on all them. When you click the legend this happens - This is the error message from chrome network tab: Anyone know why or what happened to Panel.js? Thanks!
... View more
12-17-2014
06:45 AM
|
0
|
0
|
2217
|
|
POST
|
Here's an example from some code I have using dojo/promise/all (dojo/promise/all replacing deferredlist). I trimmed out unnecessary code. Note that the deferreds have a 'promise' property you pass to 'all'.
//Execute 3 query tasks. store into 3 separate deferreds
var pointDeferred = pointQueryTask.execute(query);
var segmentDeferred = segmentQueryTask.execute(query);
var textDeferred = textQueryTask.execute(query);
// pass the an array of promises to all
all([pointDeferred.promise, segmentDeferred.promise, textDeferred.promise]).then(function(results){
// results are returned as an array with the same order as the promises were passed
var points = results[0].features;
var segments = results[1].features;
var text = results[2].features;
console.log(results);
},
function(err){
console.log("error");
});
... View more
12-02-2014
01:24 PM
|
0
|
0
|
1695
|
|
POST
|
(edit - cant figure out how to format code...) The spatial reference of the returned routes is different than that of the map.
"spatialReference" : {
"wkid" : 26912,
"latestWkid" : 26912
},
Also, maybe it has something to do with the M geometry? I don't really know much about that, but it is different than the example ESRI uses.
"geometry" : {
"hasM" : true,
"paths" : [[[385257.9112999998, 3703188.5214000009, 0], [385237.77309999987, 3703187.1098999996, 0.013684333276748657],
Your code works fine when adding a graphic with map.spatialReference and no M values in the paths. So, I would look into configuring your feature service differently (changing spatial ref and maybe disabling the M values) as an example, this one will show up in San Francisco near the bay bridge.
//routeGraphicLayer.add(route);
routeGraphicLayer.add(new Graphic({
"geometry": {
"paths": [
[
[
-13626301.5909,
4548855.381700002
],
[
-13626306.0602,
4548859.846299998
],
[
-13626310.513,
4548864.071800001
],
[
-13626336.1165,
4548888.016599998
],
[
-13626402.9082,
4548957.034100004
],
[
-13626419.6061,
4548972.527900003
],
[
-13626454.1152,
4549027.460600004
],
[
-13626469.699900001,
4549158.455300003
],
[
-13626500.8693,
4549282.408699997
],
[
-13626399.568599999,
4549300.7201000005
],
[
-13626217.0046,
4549327.483000003
],
[
-13626205.636300001,
4549242.3728
]
]
],
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"attributes": {
"0": "Start at Location 1",
"1": "Go northwest on 5th St toward Mint Plz",
"2": "Turn right on O'Farrell St (Ofarrell St)",
"3": "Turn right on Stockton St",
"4": "Finish at Location 2"
},
"infoTemplate": {
"title": "Attributes",
"content": "${*}"
}
}));
... View more
07-24-2014
12:57 PM
|
0
|
1
|
956
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-10-2013 08:11 AM | |
| 1 | 06-26-2015 10:21 AM | |
| 1 | 08-11-2017 11:02 AM | |
| 2 | 01-03-2019 10:31 AM | |
| 2 | 05-18-2017 01:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|