|
POST
|
I have to wonder if this is related to the update to the Basemap system that occurred last night: http://blogs.esri.com/esri/arcgis/2013/12/17/esri-basemap-system-upgrade-to-arcgis-10-2-for-server/ I read the section about case sensitivity and tried updating the url to what they recommend, but I still get errors with certain tiles. Anyone else having this problem?
... View more
02-21-2014
01:16 PM
|
0
|
0
|
469
|
|
POST
|
Anyone else having trouble accessing some of the tiles in the World_Light_Gray_Reference basemap? When I zoom the map all the way out while this basemap is on, there are a number of tiles that fail to come back (502 Bad Gateway error) and the map is largely unresponsive until the requests fail. This is one of the tile that I seem to be having problem getting to. http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/0/0/0?blankTile=false I was able to replicate the problem in ESRI's sample apps, so I don't think the problem is on my end.
... View more
02-21-2014
10:57 AM
|
0
|
1
|
765
|
|
POST
|
I have a gpServer task running on our 10.11 server. I added a task description when I published the tool and although the description shows up in the REST services directory, it does not show up when I run the tool from ArcMap. See below: [ATTACH=CONFIG]29626[/ATTACH] The service was published from a pyt file. I'm not sure if this is related. Any thoughts?
... View more
12-05-2013
10:20 AM
|
0
|
0
|
827
|
|
POST
|
How are you selecting the line feature? If you're using an identify task, you can set the tolerance on the click event. If using a query task, I think you will need to buffer the point geometry before passing it to the query task.
... View more
11-08-2013
10:45 AM
|
0
|
0
|
2673
|
|
POST
|
I was afraid of that. I'm already using a proxy to generate the token, but I'm trying to avoid sending every single request through the application server. In the past, I've appended the token to every secure URL before making the request. I was hoping esri.setRequestPreCallback might get around this. Guess not. It guess it might be time to wrap my brain around the identityManager.
... View more
08-16-2013
11:55 AM
|
0
|
0
|
673
|
|
POST
|
I am trying to add a token to my map service requests using esri.setRequestPreCallback. This seems to work fine for fetching info from the rest services page, but for some reason the function doesn't fire when the image is requested. Here is a jsFiddle that illustrates the problem: http://jsfiddle.net/SVZPy/ You will notice that the callback fires when the layer created, but not when the layer is added to the map. Nor does it fire if f you pan the map. Any thoughts?
... View more
08-16-2013
10:29 AM
|
1
|
2
|
3059
|
|
POST
|
This for posting Dawen. This is exactly what we needed to get up and running.
... View more
05-02-2013
09:45 AM
|
0
|
0
|
2406
|
|
POST
|
David, Thanks for posting this. It was very helpful. We been jumping through a lot of hoop to manage our Oracle SDE metadata and I think this will definitely simplify the process for us. Cheers! Bill
... View more
01-15-2013
01:43 PM
|
0
|
0
|
2168
|
|
POST
|
Ditto here. Response times have been pretty inconsistent all morning.
... View more
12-19-2012
08:52 AM
|
0
|
0
|
1594
|
|
POST
|
Maybe I'm missing something, but I don't see how your going to hide the credentials if you're sending the request from the client. We use server side page (jsp) to generate a token for a session. We are still on a 9.3.1 server, so I'm not using the identity manager, but I assume the concept will be similar. Here is the javascript code: var getToken = function(onComplete){
dojo.xhrGet({
url: this.basePath + "code/getFwpTokenNew.jsp?ref=" + document.location.protocol + "%2F%2F" + document.location.hostname,
handleAs: "text",
load: function(data){
var jsonData = dojo.fromJson(data);
onComplete(jsonData.token);
},
error: function(error){
console.debug(error);
}
});
}; And our jsp code. Warning, I'm not a java programmer, so some of what you see is scraped together.
<%@page session="false"%>
<%@page import="java.net.*,java.io.*" %>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
String onErrorText = "";
try {
String reqUrl = request.getQueryString();
String onProd = request.getParameter("prodServer");
String refUrl = request.getParameter("ref");
String agsServerUserName = "username";
String agsServerPswd = "password";
String agsServerPath = "http://yourserverpath";
out.clear();
String getTokenUrl = agsServerPath +"/arcgis/tokens/gettoken?request=getToken&username="+agsServerUserName+"&password="+agsServerPswd+"&clientid=ref."+refUrl+"&expiration=1440";
URL tokenRequest = new URL(getTokenUrl);
BufferedReader in1 = new BufferedReader(new InputStreamReader(tokenRequest.openStream()));
String token = in1.readLine();
in1.close();
out.println("{'token':'"+token+"'}");
return;
}
catch(Exception e) {
out.println("{'error':'There was retrieving the token for the map server.'}");
}
%>
... View more
12-14-2012
12:39 PM
|
0
|
0
|
1862
|
|
POST
|
I struggled with this same problem. Eventually, I ended up creating an "empty" cached service on our server. I say "empty" because I didn't actually create any of the tiles. Instead, I followed the instructions at the link below to include a single blank tile that gets displayed at all times: http://support.esri.com/en/knowledgebase/techarticles/detail/36939 There may be a better solution, but this works me.
... View more
12-10-2012
06:35 AM
|
0
|
0
|
665
|
|
POST
|
You won't be able to connect directly to the SQL database using javascript. You will need to use some server side code to make the table information available as a web service. There are a number of ways to do this. If you have access an ArcGIS server, you could create a published python geoprocessing service that queries a SQL server table and returns the table, then use javascript to execute the service and make the data available to the cilent. At ArcGIS Server 10+, you may also be able to access be able to access a table as part of a map service. We are still on 9.3.1, so I can't say for sure.
... View more
12-07-2012
10:22 AM
|
0
|
0
|
1535
|
|
POST
|
You have a trailing comma in your legend parameter on line 31 of tp_dock.html. IE is more susceptible to trailing commas.
map.addLayer(statesLyr);
dojo.connect(map,'onLayersAddResult',function(results){
//add the legend
var legend = new esri.dijit.Legend({
map:map,
layerInfos:legendLayers,
},"legendDiv");
legend.startup();
});
If you're using Aptana, try enabling JSLint validation. It will help you track down a lot of simple issues like that.
... View more
11-13-2012
10:41 AM
|
0
|
0
|
733
|
|
POST
|
I haven't worked with windows authentication, but I don't see why it wouldn't work. As long as you pass valid credentials to the gis server, you should be able to return a valid token. We went through a similar issue on our server. Originally, we were passing every request through the proxy and found that the application server was creating a bottle neck. Instead, we opted to do a single token request when a user first opens the application. You can set the token to expired after a certain amount of time -- we use 24 hours. Here is function we use for requesting the token:
_getToken: function(onComplete){
dojo.xhrGet({
url: "code/getToken.jsp?&ref=" + document.location.protocol + "%2F%2F" + document.location.hostname,
handleAs: "text",
load: function(data){
var jsonData = dojo.fromJson(data);
onComplete(jsonData.token);
},
error: function(error){
onComplete(error);
}
});
},
... View more
10-23-2012
10:52 AM
|
0
|
0
|
1359
|
|
POST
|
Sounds like a perfect use case for tokens. You don't have to manage the tokens. You could use the proxy page to dynamically generate a token and append it when you create the feature layer. I there some reason you don't wan to go the way of tokens?
... View more
10-23-2012
06:03 AM
|
0
|
0
|
1359
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2017 10:00 AM | |
| 1 | 09-11-2015 08:24 AM | |
| 1 | 01-25-2016 12:30 PM | |
| 1 | 05-27-2015 08:12 AM | |
| 1 | 06-09-2015 03:28 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|