POST
|
Hi Robert, thanks for the help, I didn't know that I could directly call the refresh function. I noticed that I still have to add and remove the dummy layer for the refresh to take effect, but it's not a big deal. Thanks again, Marco
... View more
05-09-2019
11:49 PM
|
0
|
0
|
1350
|
POST
|
Hi, I am trying to modify the Save Session widget to save changes made by the user in the order of the layers, but I am stuck. I succeeded in reorder the layers in the map, but the LayerList still shows the previous order. Is there a simple way to force the LayerList to refresh? I tried to add and then remove a dummy layer, with the following results: - if the LayerList is not loaded when I load the session, everything works fine - if the LayerList is already loaded when I load the session, the LayerList does not refresh To add and remove the layer I simply used addLayer and removeLayer: var dumLayer = new ArcGISDynamicMapServiceLayer(layer.url);
this.map.addLayer(dumLayer);
this.map.removeLayer(dumLayer); Did I forget something? I also noticed that if I comment the removeLayer line, the LayerList does not refresh. I also tried to destroy and recreeate the layer, but I don't undesrstand how to use the WidgetManager createWidget method. Thanks in advance, Marco
... View more
05-09-2019
03:54 AM
|
0
|
5
|
1643
|
POST
|
Hi, thank you for this wonderful widget! I have noticed that, when I try to export a map using the Print Widget, in the resulting PDF the lines are missing the arrow marker. Is it a bug of the Print Widget? Thanks, Marco
... View more
07-31-2018
03:17 AM
|
0
|
0
|
1099
|
POST
|
Hi, I would like some help with the Add Data Widget. I have to add to my map all the layers included in this WMS service: http://servizigis.regione.emilia-romagna.it/wms/areeprotette_natura2000 If I add it in ArcGIS Desktop, I get two group layers, one ("Aree_protette") containing four layers and another one ("Rete_Natura_2000") containing three group layers. When I add it using the Add Data Widget, the group layer "Aree_protette" is loaded perfectly, while "Rete_Natura_2000" appears as closed, but it's empty. I tried with other WMS services, and they get added perfectly, so I think that the problem resides in the WMS service. Maybe the three-levels group layer is a bit too much to handle? I don't think that it's relevant, but I didn't understand how to configure the proxy to add a WMS layer (by the way, can someone show me how to do it?), so to make it work I simply added the server name to the esriConfig.defaults.io.corsEnabledServers list. Thanks, Marco
... View more
06-22-2018
07:56 AM
|
0
|
1
|
485
|
POST
|
Nothing to do: it keeps redirecting me to the same page. Probably I am missing something somewhere... But thank you anyway, Rafael: you have been really kind!
... View more
11-14-2017
02:17 AM
|
0
|
0
|
711
|
POST
|
Anyway I think that I missed something, because these parameters should grant me direct access to the app, avoiding the login prompt... But it pops-up anyway.
... View more
11-13-2017
06:59 AM
|
0
|
2
|
1817
|
POST
|
Yes, I have got it. I will list all of the changes that I made to the files: - In the app config.json: "portalUrl": "https://myorganizationsite/arcgis", "appId": "111111111111111", "httpProxy": { "useProxy": true, "alwaysUseProxy": false, "url": "", "rules": [ { "urlPrefix": "https://myorganizationsite/arcgis/sharing", "proxyUrl": "https://myorganizationsite/proxy-oauth/proxy.ashx" }, { "urlPrefix": "https://myorganizationsite/arcgis/rest", "proxyUrl": "https://myorganizationsite/proxy-oauth/proxy.ashx" } ] } (I followed this guide: Setting up a proxy with Web AppBuilder Developer Edition | Support Services Blog I also tried with "alwaysUseProxy": true, "url": "https://myorganizationsite/proxy-oauth/proxy.ashx", "rules" : [] without luck.) - in the proxy Web.config: <appSettings> <add key="permitted_referer" value="https://myorganizationsite/*"/> <!-- appid's and secrets--> <add key="111111111111111111" value="22222222222222222222222222222"/> <add key="your_appid" value="your_secret"/> </appSettings> in the proxy proxy.config: <serverUrl url="https://myorganizationsite/arcgis/sharing/generateToken" matchAll="true"></serverUrl>
... View more
11-13-2017
06:16 AM
|
0
|
0
|
1817
|
POST
|
Hi Rafael, thanks for the suggestion. I am working on it, but it keeps redirecting me to the normal Portal authentication page. I suppose that I am missing something in the proxy configuration... Can you please give me some directions?
... View more
11-13-2017
03:03 AM
|
0
|
5
|
1817
|
POST
|
Robert, we have to host the app on our server because we want to call it from another app using a more user friendy URL. I thought that using the Web AppBuilder embedded in Portal was the normal workflow, but I understand that having to do with minified code is a pain. I will follow your suggestion and restart from the scratches with Web AppBuilder for developer. Is your web map and data that the app is using shared publicly? No, all of our data is hosted in ArcGIS server using secured services. When a user tries to view our app, he is redirected to the Portal standard login page, with all the links (home, gallery, map, scene, group) in the high part of the page and the OAuth form in the middle. I would like to show him only the OAuth form, so that he doesn't get confused.
... View more
11-10-2017
07:46 AM
|
0
|
7
|
1817
|
POST
|
Thank you very much, Ken. I will look into your code and let you know if I can manage to replicate it. I would have preferred a solution without the use of a widget, but I suppose that it will work just fine.
... View more
11-10-2017
05:55 AM
|
0
|
0
|
711
|
POST
|
Hi Robert, I wanted to say that I developed the app using the version of Web AppBuilder that is embedded in Portal, downloaded it, hosted it in IIS and then registered it in Portal.
... View more
11-10-2017
05:49 AM
|
0
|
9
|
1817
|
POST
|
Hi everyone, I am trying to integrate the OAuth functionality in a simple app developed with the Web AppBuilder embedded with Portal and then deployed. I have obtained the AppID and I have looked into the OAuth 2 basic sample, but I don't understand how to integrate it in my app. I suppose that I have to modify the index.html, but I don't know how. Can anyone point me in the right direction? Thanks, Marco
... View more
11-08-2017
11:33 PM
|
0
|
14
|
4535
|
POST
|
Hi everyone, I am trying to implement some custom layouts in the fantastic Print Plus Widget. Everything works fine, except for the Custom Text Elements: I am not able to add them in the "advanced" dropdown. I am quite sure that both the "Export Web Map" and the "Get Layout Template Info" are correctly configured, because the standard Print Widget works perfectly. Can someone tell me how to modify the widget in order to make it work? Many thanks, Marco
... View more
09-27-2017
10:31 PM
|
0
|
0
|
410
|
POST
|
Thanks, Robert. I managed to do it. Almost. I created a TextBox (I wasn't able to create a NumberTextBox: I don't know why), but when I use the numeric pad to input a scale, the map pan in the direction of the arrows. Is there a way to prevent this behaviour? Thanks again, Marco
... View more
08-25-2017
08:01 AM
|
0
|
2
|
472
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|