|
POST
|
Kevin, Sorry it took me a while to respond. In your case, you should remove "scaleBarOptions" option from the request that going to the printing service. When printing service does not find that element in the request, it does not touch any scale bars elements on the layout. this is how it'd look: {"mapOptions":{"showAttribution":false,"extent":{"xmin":449678.6470890906,"ymin":520631.85906350036,"xmax":632339.5564109093,"ymax":578434.2466682756,"spatialReference":{"wkid":3071}},"spatialReference":{"wkid":3071}},"operationalLayers":[{"id":"lyrBaseEditing","title":"lyrBaseEditing","opacity":1,"minScale":0,"maxScale":0,"url":"http://apwmad0d1600/arcgis/rest/services/PUBLIC/PUBLIC_Base_WTM_INT/MapServer","visibleLayers":null,"layers":[]},{"id":"map_graphics","minScale":0,"maxScale":0,"featureCollection":{"layers":[]}}],"exportOptions":{"outputSize":[500,400],"dpi":96},"layoutOptions":{"titleText":"Test Title","copyrightText":"in R 2013","customTextElements":[{"Title":"Test Title"},{"Compartment":"22"},{"Text 2":"40 Acres"},{"Text 1":"Ashland"},{"Forester":"Smokey Bear"},{"userId":"KG"},{"TRS0":""},{"TRS1":""},{"TRS2":""},{"TRS3":""},{"Property":"LINCOLN COUNTY FOREST"}],"legendOptions":{"operationalLayers":[{"id":"lyrBaseEditing","subLayerIds":[10,14,15,17,21,22,25,29,30,38,39,41,42]}]}}} The 'scaleBarOptions' in ExportWebMap specs (that Printing service uses) is meant to modify unit (on per request basis) of a scalebar in metric and another in non-metric system. e.g. you can have a scalebar to show units in yards and another in meters or miles and km. It is not designed to modify units of scalebars in the same system but two different units (e.g. mi and yards in your case, or another example where you would want to have two scale bars showing units in 'km' and 'meters').
... View more
10-11-2013
09:24 AM
|
0
|
0
|
1200
|
|
POST
|
Oh, just realized you can use either DATE or TIMESTAMP keyword. here is 2 examples: SAMPLING_DATE >= DATE '2010-01-01' AND SAMPLING_DATE <= DATE '2013-10-10' SAMPLING_DATE >= TIMESTAMP '2010-01-01 00:00:00 AM' AND SAMPLING_DATE <= TIMESTAMP '2013-10-10 00:00:00 AM' yes, you are right, by disabling StandardizedQueries you can pass in any database specific (in your case Oracle) functions.
... View more
10-11-2013
08:58 AM
|
0
|
0
|
2089
|
|
POST
|
try one of the following 2 options: a) use a domain account as 'ArcGIS Server Account' b) publish a ExportWebMap Tool with secured ags-server-connection (with user/pwd save) embedded in the tool http://resources.arcgis.com/en/help/main/10.2/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/
... View more
10-11-2013
08:27 AM
|
0
|
0
|
1150
|
|
POST
|
starting at 10.2, by default you can't pass in any database specific query function while querying a layer from a service. your query must conform to the StandardizedQueries specs. http://resources.arcgis.com/en/help/main/10.2/index.html#/About_standardized_queries/015400000641000000/ 1) syntax for TIMESTAMP is actually timestamp 'yyyy-mm-dd hh:mm:ss'. http://resources.arcgis.com/en/help/main/10.2/index.html#/Supported_SQL_functions_in_ArcGIS_Server/015400000686000000/ 2) nope, i don't think so.
... View more
10-11-2013
07:53 AM
|
0
|
0
|
2089
|
|
POST
|
can you please share the json being sent out from your app with me? thanks.
... View more
10-04-2013
10:00 AM
|
0
|
0
|
1200
|
|
POST
|
Harshal, Unfortunately I can't do the skype thing. I'd really appreciate if you could contact Esri Tech Support and have them look into the problem remotely. Thanks a lot. Tanu
... View more
09-09-2013
09:37 AM
|
0
|
0
|
1664
|
|
POST
|
Harshal, if you service is shared publicly, I'd appreciate if could share the new json (with url pointing to your service) with me and I will be more than happy to take a look. thanks. Tanu
... View more
09-03-2013
08:12 AM
|
0
|
0
|
1664
|
|
POST
|
Harshal, the reason you are not seeing anything on the legend is because the sublayer id you specified inside 'legendOptions.opertaionalLayers.sublayerIds' has scale-visibility range set. the scale you are requesting the output is beyond that scale range, as result the layer does not draw, therefore nothing shows up in the legend. here is the modified version (scale is set to 1:50,000) of your json that I tried and got the legends shown up in the output: {"mapOptions":{"showAttribution":true,"extent":{"xmin":-8851509.581441754,"ymin":4234412.018976383,"xmax":-8642683.620166572,"ymax":4296784.63405711,"spatialReference":{"wkid":102100,"latestWkid":3857}},"spatialReference":{"wkid":102100,"latestWkid":3857},"scale":50000},"operationalLayers":[{"id":"layerActiveMonumentsLayer","title":"layerActiveMonumentsLayer","opacity":1,"url":"http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer","layers":[]}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"customTextElements":[{"titleText":"title"},{"projectName":"NC Geodetic Database"}],"scaleBarOptions":{},"legendOptions":{"operationalLayers":[{"id":"layerActiveMonumentsLayer","subLayerIds":[0]}]}}} here is the entire request to the printing service. http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/.... you can also try by removing the subLayerIds to have legends from all layers shown. http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools... Thanks. Tanu
... View more
08-29-2013
08:27 AM
|
0
|
0
|
1664
|
|
POST
|
Lance, Does this mean that the overview map layers cannot be dynamic? That is true with Out of the Box PrintingTools service or any custom printing service based on ExportWebMap tool. You must have layers in the overview dataframe in your template-mxd. if you want to add layers in the overview dataframe dynamically based on some selection that your end users make, then you need to use arcpy based printing solution. here is high level steps how you can do this: - in your arcpy code, call arcpy.mapping.ConvertWebMapToMapDocument(). The input to this function is identical to the input of out of the box printing service - the result of this function contains a mapDocument object - now that you have the mapDocument object, you can find your overview dataframe and add/remove new layers here is the help on the function http://resources.arcgis.com/en/help/main/10.2/index.html#//00s30000006n000000 -Tanu
... View more
08-28-2013
07:55 AM
|
0
|
0
|
2374
|
|
POST
|
Sebastian, My apology, it got fixed in 10.2. http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDkwMjA0 Tanu
... View more
08-27-2013
08:28 AM
|
0
|
0
|
2329
|
|
POST
|
SRRoberts, The problem got fixed in 10.1 SP1. While you are waiting on updating to SP1, Ismael's suggestion is perfectly a valid workaround.
... View more
08-26-2013
09:47 PM
|
0
|
0
|
2329
|
|
POST
|
Ben, that is expected. here is an excerpt from the help (http://resources.arcgis.com/en/help/main/10.2/#/Working_with_legends/00s900000023000000/): "... It is important to remember that this means it will try to make the legend as compact as possible, not that it will try to take up the entire bounding box. Instead of resizing legend item elements to fill the frame; font size, default patch size, and gap measurement values will be used as maximum values. After the entire frame is taken up using these values, legend items will begin to drop....."
... View more
08-26-2013
08:55 AM
|
0
|
0
|
11045
|
|
POST
|
Ben, it works.. please see attached screen shots to see that legends grows or shrinks based on the size of the legend element on the layout. i have also attached the settings of the legend element's properties. -Tanu
... View more
08-23-2013
08:29 AM
|
0
|
0
|
11045
|
|
POST
|
Ben, this is a known limit with the printing service. There is a simple workaround though which is documented in this KB article. http://support.esri.com/en/knowledgebase/techarticles/detail/40538
... View more
08-22-2013
08:47 AM
|
0
|
0
|
919
|
|
POST
|
Lance, I'm not quite sure from your post whether you added any layer in your "Overview" dataframe or not. The Printing Service only adds layers to the active dataframe and leaves other dataframes untouched. So, unless you have layers in those dataframes, they will appear blank in the output. Note: make sure ArcGIS Server Account User has access to those layers. Thanks
... View more
08-15-2013
07:44 AM
|
1
|
0
|
2374
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 03-06-2026 04:33 PM | |
| 1 | 03-05-2026 03:22 PM | |
| 1 | 03-05-2026 03:25 PM | |
| 2 | 03-05-2026 01:53 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|