POST
|
If the services are in a webmap then you will already have it when loading the map, if not then you'll need to author it on either portal for ArcGIS or ArcGIS Online. Then if you view the webmap details you will see the I'd in the URL and you can use that. If you aren't using a webmap though then you can use the print task Print | ArcGIS API for JavaScript
... View more
11-21-2014
09:48 AM
|
1
|
0
|
448
|
POST
|
Since the proxy needs to run in the server context it is easier to just use the .NET one if you already have a .NET web app. If you want a purely JS one you could write one using node and run that on your server though there isnt a node proxy provided by Esri as yet.
... View more
11-21-2014
09:41 AM
|
1
|
2
|
775
|
POST
|
You just need to set the default geometry service url in the esriConfig So define define([ 'esri/config', 'esri/tasks/GeometryService', ], function ( esriConfig, GeometryService ) { and then before you initialise your LocateButton dijit esriConfig.defaults.geometryService = new GeometryService(url);
... View more
11-12-2014
10:16 AM
|
2
|
1
|
431
|
POST
|
Throwing my 2 cents in, here's a simple configurable app using server side config. Joosh on GitHub and a sample here or with a different config here. Cheers, Dave
... View more
07-14-2014
02:30 PM
|
1
|
0
|
766
|
POST
|
I've created a basic proxy that will insert tokens into the webmap_as_json request parameter. It's using NancyFx and the code is on GitHub if you want to take a look.
... View more
07-08-2014
05:30 PM
|
0
|
0
|
790
|
POST
|
If you want to use the Esri way then you can look at using the IdentityManager which will manage the token for you. If you want to do it yourself and keep the token off the client then you can use the proxy page to generate and add tokens to the requests as needed. To be more secure you should also restrict unauthenticated or unauthorized access to the proxy. I've got a sample app for routing all secure requests through the server proxy at http://arcmap.azurewebsites.net/ and the code is on GitHub https://github.com/davetimmins/Joosh if you want to take a look.
... View more
07-08-2014
05:20 PM
|
0
|
0
|
363
|
POST
|
Sure, I adapted one of the esri print samples http://jsfiddle.net/3Jj8P/ Click print and it will work, click on a city such as Baton Rouge so that it is highl;ighted then click print and it will fail. Cheers,
... View more
01-07-2014
02:47 PM
|
0
|
0
|
813
|
POST
|
Hi, if you have a point feature selected then the print task fails. Since it's a default graphic I would expect it to work. The print task returns the following failure {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool.: Layer \"map_graphics\": ??\nERROR: code:400, , Invalid URL, Bad syntax in request.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}} and I've attached the graphic. Can this please be fixed? Cheers,
... View more
01-07-2014
12:52 PM
|
0
|
5
|
2969
|
POST
|
Hi Jian, thanks for that, so as I understand it now the resampling is only useful for services that have varying coverage at larger scale levels. Not that clear that it works that way from the documentation plus since SL and Flex can do intermediate resampling I was hoping this would be the same. Nevermind. Cheers,
... View more
01-06-2014
01:28 PM
|
0
|
0
|
569
|
POST
|
Hi Jian, as I mentioned, specifying the LODs or not makes no difference. If you look at the available LODs for those services, the one that I have enabled resampling for only goes down to 1:25,000 whereas the basemap goes to 1:2,500 so from what you have said it sounds like if I zoom in beyond 1:25,000 I should see the second tiled service albeit blurred. is that correct? If so what is stopping it from working that way for intermediate scale levels where the second service doesn't match the basemap? Do you have an example that works as you have mentioned? Cheers,
... View more
01-06-2014
11:42 AM
|
0
|
0
|
569
|
POST
|
Hi, I have a question regarding the resampling option that was added at v3.6 as per the documentation at https://developers.arcgis.com/en/javascript/jsapi/arcgistiledmapservicelayer-amd.html#arcgistiledmapservicelayer1. My question is does it work? I put together a jsfiddle at http://jsfiddle.net/vVUF6/ that has 2 tiled services in the same projection but with differing LODs. They are both served by the same ArcGIS Server running v10.2.0. I have explicitly set the LODs for the map (though not setting this makes no difference) and you can see that the only scale that both services display is the 1:50,000 scale. This is the only one where the LODs match. I can also see that at this scale the query parameter for blankTile is appended to the second tiled service with a value of false. Any ideas or comments? Cheers,
... View more
01-06-2014
10:29 AM
|
0
|
4
|
2123
|
POST
|
Hi Dominique, thanks for that. Using AddCredential works (so long as the challenge method is set for the IM). I guess what I'm wondering now is why that couldn't be done automatically. I'm also not sure why the challenge method needs to be set since you can still set the request credentials in the generate token call anyway, seems redundant to me. Cheers,
... View more
11-25-2013
10:06 AM
|
0
|
0
|
224
|
POST
|
Hi, if you use IdentityManager.Current.GenerateCredentialTaskAsync and specify a Referer value by setting it in the GenerateTokenOptions then the token is generated correctly. If you then set the token for a layer though the request fails saying that the token is invalid. I believe this is due to the referer value not being set as a HTTP header for subsequent requests. The only place I've seen this documented is at http://resources.arcgis.com/en/help/arcgis-rest-api/#/Accessing_services/02r3000000nm000000/ though if I use the composer in fiddler to send the request with the token and I manually enter the referer as a header the request succeeds. Cheers
... View more
11-20-2013
01:36 PM
|
0
|
2
|
2028
|
POST
|
Hi, just thought I'd post a quick note about generating tokens with the IdentityManager. The IdentityManager tries to determine the url to use for generating a token based on the url you supply and this works so long as you have /rest/services or /sharing in your url var credential = await IdentityManager.Current.GenerateCredentialTaskAsync(@"http://serverapps10.esri.com/arcgis/rest/services", "user1", "pass.word1"); However if you just try creating one for the server url like http://serverapps10.esri.com/arcgis it will fail. You can get around this by registering the server first though var serverInfo = new ESRI.ArcGIS.Client.IdentityManager.ServerInfo { ServerUrl = @"http://serverapps10.esri.com/arcgis" };
IdentityManager.Current.RegisterServers(new[] { serverInfo });
var credential = await IdentityManager.Current.GenerateCredentialTaskAsync(@"http://serverapps10.esri.com/arcgis", "user1", "pass.word1");
... View more
11-14-2013
12:31 PM
|
0
|
5
|
3470
|
POST
|
Hi Jennifer, yea I'd already done that as a workaround but thanks for confirming the bug.
... View more
11-14-2013
11:07 AM
|
0
|
0
|
204
|
Title | Kudos | Posted |
---|---|---|
1 | 07-14-2014 02:30 PM | |
1 | 11-21-2014 09:48 AM | |
6 | 09-02-2012 08:30 PM | |
1 | 11-21-2014 09:41 AM | |
2 | 11-12-2014 10:16 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|