|
POST
|
adding graphics quickly increases the size of the request because each geometry must be articulated to ArcGIS Server. this means, that you'll have to follow the pattern in the original published sample and reference a working proxy so that it can be utilized in scenarios when the size of the request requires that it be POSTed across domains. esri.config.defaults.io.proxyUrl = "/location/proxy.ashx";
... View more
06-24-2013
07:21 AM
|
0
|
0
|
1967
|
|
POST
|
printTask includes the method execute(), so you'll definitely be fine working with your synchronous print service heres a little more information from my bug report that should help clarify why the problem only occurs "sometimes". Custom Print Services generates the same 32-character string for all its output files, which causes old print requests to be displayed again. Steps to reproduce: 1. Submit several print requests to the OOTB 10.1 print service and notice that each output filename includes a random 32-character sequence. 2. Publish a Custom Print Service (using existing templates) and notice that the same 32-character string is repeated in all output files. Only incremented numbers appended to the end guarantee the filename is unique (see attached screenshots). This causes a problem in web applications when an additional print request is submitted after previous jobs have already been deleted from the server. Because the response URL can easily be identical, stale content from the cache might be displayed instead of the correct printout. Sample application attached (can also be found at http://[internalserver]/printTask.html). 1. Open the application and click print 2. Pan the map to a different location 3. Wait 15 minutes and send another print request Notice that if the URL is identical, the first printout will be displayed again. It is necessary to force a refresh of the page to display the appropriate output.
... View more
06-21-2013
07:30 AM
|
0
|
0
|
2124
|
|
POST
|
i just wanted to chime in and let you all know that this is a REST bug that I logged a little while back which has been tested and confirmed fixed in 10.2. [NIM090204:When using a custom print service, sometimes old print requests are returned due to the way output files are named] sorry for the inconvenience.
... View more
06-20-2013
01:46 PM
|
0
|
0
|
2556
|
|
POST
|
i wasn't able to reproduce the behavior you describe using the map service below (user1:user1) in IE10 (running in IE8 mode) http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire_secure/MapServer can you test the same?
... View more
06-20-2013
10:06 AM
|
0
|
0
|
1194
|
|
POST
|
much like the featureLayer itself, the geometyService class has its own token property and proxyUrl property. have you tried setting one of these?
... View more
06-18-2013
03:18 PM
|
0
|
0
|
637
|
|
POST
|
you'll need to use something like the IdentityManager. have you seen this sample?
... View more
06-18-2013
03:16 PM
|
0
|
0
|
666
|
|
POST
|
for map2, try setting the map constructor property showAttribution to false map2 = new esri.Map("buttonDiv", {
extent: initExtent,
logo: false,
showAttribution: false
});
... View more
06-18-2013
07:27 AM
|
0
|
0
|
4326
|
|
POST
|
can you try using a hardcoded long term token instead?
... View more
06-12-2013
07:11 AM
|
0
|
0
|
1470
|
|
POST
|
i think Ben is suggesting setting the outSpatialReference to a coordinate system which accurately portrays distance.
... View more
06-12-2013
07:06 AM
|
0
|
0
|
2473
|
|
POST
|
Another option is to set the projection of your print task template map to that of the data if you want to keep the scale bar and have it accurate @ben i dont think thats actually correct. its my understanding that the projection of the print output will be determined by the spatial reference which is passed within the WebMapJSON.
... View more
06-11-2013
09:47 AM
|
0
|
0
|
4226
|
|
POST
|
no problem at all. it wouldn't take long to publish additional services for printing. the steps in the tutorial explain that you are welcome to reuse (and tweak) our installed templates. you can also feel free to navigate to the MXD template our OOTB print services utilize and remove the scalebar from that MXD if you prefer. (ex. .\Program Files\ArcGIS\Server\Templates\ExportWebMapTemplates\A3 Landscape.mxd)
... View more
06-11-2013
08:44 AM
|
0
|
0
|
4226
|
|
POST
|
that isn't a projection that preserves distance accurately, so it wouldn't be appropriate to display a scalebar.
... View more
06-11-2013
08:16 AM
|
0
|
0
|
4226
|
|
POST
|
the user is asking for a dynamicToken in his proxy.config without even specifying credentials. they'll need to hard-code a long-term token in the proxy.config instead and retest directly in the browser before attempting to access within their app. (ie. http://server/proxy.ashx?http://server/arcgis/rest/secure/MapServer). if the proxy can display the secure resource directly in the browser, it should appear in their app as well.
... View more
06-11-2013
07:12 AM
|
0
|
0
|
1470
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|