POST
|
Sorry for the delay. It has been a crazy month. In case you didn't have any solution yet (or for other users from future): How does it understand which basemaps and layers should be turned on and off? e.g. the layers are hosted in ESRI map, even some layers will be uploaded by users in WebApp. That is the logic you need to have in the arcpy script. A fairly easy way to get started to write arcpy based print service is to take a look at the python source code behind the Export Web Map tool in ArcGIS Pro. At a high level, you need to do 3 things in your code: call arcpy.mp.ConvertWebMapToArcGISProject(...) function to create an in-memory project & map out of the webmap_json gets passed from web client's print widget/task get the map or the layout export the map or the layout to a pdf Here are some arcpy functions/classes that will help you change a map's basemap layer, setting layers visibility, add layers etc. https://pro.arcgis.com/en/pro-app/arcpy/mapping/map-class.htm https://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm Here is help on the ConvertWebMapToArcGISProject(...) function. It has some very useful samples too. https://pro.arcgis.com/en/pro-app/arcpy/mapping/convertwebmaptoarcgisproject.htm Also, check arcpy.mp.PDFDocumentXXXX(...) functions to find out who to open & append pages in a pdf file. hope you will find this helpful.
... View more
12-09-2020
10:47 PM
|
0
|
0
|
60
|
POST
|
Hi, I have made a new Print widget (attached) which prints multiple maps, instead of one map, with different layers and basemaps. However, one of my generated maps should have a specific scale (force scale), while the rest of the maps should preserve the map scale. For example, the scale for Figure 1 should be 300,000, and for the rest whatever the scale is in the map viewer. How can I add this to the code?
... View more
11-19-2020
05:59 AM
|
0
|
0
|
93
|
POST
|
See this thread: https://community.esri.com/thread/237619-change-default-symbology-for-add-data-widget-in-dev
... View more
10-16-2020
05:26 AM
|
0
|
0
|
47
|
POST
|
Hi Erfan, No existing app / template I am aware of. You can easily build a custom widget for your needs. You can lookup the print widget documentation here: https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-print.htm In the same link for print widget, on the left side bar menu you will find all you need to quickly build your widget requirements. Also the below forum thread discussed in past about how to publish your widget for others to use https://community.esri.com/thread/205211-publishing-custom-widget-in-arcgis-online
... View more
10-09-2020
09:11 AM
|
0
|
0
|
55
|
POST
|
Hi, I have a strange issue, I created a web app, and added few infographic widgets to it. When I want to run the app on my PC, and many other PCs, the whole app works perfectly on Chrome and Firefox. Now the issue is on some of my clients' PCs, when they want to run the app, the whole app works and loads perfectly, but the infographics cannot be loaded. The allotted space for the infographic widgets is blank and empty. We have tested this on their Firefox and chrome, and didn't work on their PCs. However, interestingly, if they open the app with Microsoft Internet Explorer, it works perfectly. Does anyone know what would be the issue? I attached picture I compared what it should actually look like (left image) and how it is shown on my some other machines (right image)
... View more
07-17-2020
08:33 AM
|
0
|
0
|
62
|
POST
|
Similar to the figure below, I have two widgets, one is a grouped layer list (combined of multiple layer list) and one classical layer list (which shows all the layers in one layer list). I was wondering how can create something like this figure, where there two tabs that can switch between these two widgets? As Grouped layer list itself is a combination of multiple layer list widget, the whole cannot be combined again with another separate layer list widget:(
... View more
04-13-2020
12:20 PM
|
0
|
0
|
125
|
POST
|
When I start the app it seems it wants to load it as I want (we expect), but suddenly it goes wrong:((
... View more
02-27-2020
06:11 AM
|
0
|
0
|
37
|
Online Status |
Offline
|
Date Last Visited |
11-19-2020
12:28 PM
|