POST
|
Here's one way to adapt the Cluster Layer while feature Reduction is set. Extract the JS file in the attached zip. Two ways to call it : In a Widget : define([
"./ClusterManagerExtented"
], function(ClusterManagerExtented
) {
postCreate : function(){
ClusterManagerExtented._initExtension();
}, In an hosted application : require([
"./ClusterManagerExtented"
], function(ClusterManagerExtented
) {
ClusterManagerExtented._initExtension(); After the call you will be able to add new options to the setFeature Reduction : - "count" : is a boolean. Set to True to enable cluster count label. Default is false. -"symbol": is an JSON Object. Set a "text symbol" as JSON. Example below : layer.setFeatureReduction: {
type: "cluster"
clusterRadius:"80",
count:true,
symbol:{ "color": [0, 0, 0, 127],
"type": "esriTS",
"verticalAlignment": "middle",
"horizontalAlignment": "center",
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"text": z.attributes.cluster_count,
"rotated": false, "kerning": true, "font": {
"size": 9,
"style": "normal",
"weight": "bold",
"family": "Arial"}
}
... View more
03-10-2021
05:13 AM
|
0
|
0
|
1002
|
POST
|
You should take a look at this thread: https://community.esri.com/t5/arcgis-experience-builder/many-issues-solved-unsolved-on-offline-installation-of-exb-and/m-p/1029131#M1525 Indeed this product is not available for using in 10.7.X, but do not forget EXB has been introduced under ArcGIS Enterprise 10.8.X : https://enterprise.arcgis.com/en/experience-builder/latest/get-started/what-is-arcgis-experience-builder.htm So the developer edition allows us to use it on 10.7.1 to test but is not "made for" version under 10.8.
... View more
02-25-2021
08:20 AM
|
0
|
0
|
1175
|
POST
|
Indeed HOSTNAME and HOSTNAME:PORT are considered as different domains for requests. It still is strang that WebAppBuilder Developper doesn't need CORS to acces API while using a different domain. Thank you for the answer, but would you mind to developp "for security reason" pls ?
... View more
02-22-2021
07:37 AM
|
0
|
0
|
3073
|
POST
|
Could you try to create a new experience from scratch and try to add your own widget inside ? It may give some leads on what is failing ?
... View more
02-22-2021
01:34 AM
|
0
|
1
|
1197
|
POST
|
The only way , I could reproduce your error was to delete/empty the manifest file into the Widget. Are you Widget in the client/your-extensions/widget repository ? Is your client side started on NPM ?
... View more
02-19-2021
07:10 AM
|
0
|
1
|
1914
|
POST
|
Hi, I am using ArcGIS Enterprise10.7.1 on IIS (Windows).
... View more
02-19-2021
06:16 AM
|
0
|
1
|
3120
|
POST
|
Dears, I have installed EXB v1.3 , in Offline mode connected to a portal. Problem 1 : Solved : First i couldn't access the interface, an error message was displayed : "Experience Builder developer Edition requires an ArGIS organization account with user type that includes privileges to create content" (From client/dist/jimu-core : roleError2). I was trying to connect with Portal administrator account (so full rights) on the experience Builder. I tried 3 accounts with various permissions but none was able to connect. Solution : After some digging, i just found out in the file : client/dist/jimu-core/index.js On line 28, Col 134408 there is a request on portal to "ValidateAppAccess" : var a = 0.portal+"/oauth2/validateAppAccess?clientId="+t; The t variable in the request is a string which contains the NAME of the application (printed in the console : "experienceBuilder"). The rest request "ValidateAppAccess" requires an AppID. So by changing the t variable with o.clientId : var a = 0.portal+"/oauth2/validateAppAccess?clientId="+o.clientId; The Interface showed up. Problem 2 : Solved : After those steps, i tried to create an application, when I added the map widget and tried to load a WebMap already prepared (from Portal). The Widget keep spinning loose. I had the same issue as @DaveFullerton on the CMD prompt (only once) : server error read ECONNRESET I had several Error Message in my Browser Console (look at the attached file : Console_error_COR.png). Solution : After looking in the documentation, I've seen that API 4 assumes that CORS is enabled on server. I have enabled CORS requests on my IIS (Config_XML_CORS.png) and the problem was solved, but two points intrigues me : - Why do we need CORS for the same domain : https://HOSTNAME:3001 https://HOSTNAME/arcgis_api_js/library/4.18 - Why would the builder need CORS to load the API files (when the WebAppBuilder Dev Edition doesn't need it) ? Problem 3 : Unsolved : When the map widget is initiated with various Webmapps, the switch icons are not well set (look at the attached file : WebMap_icon_fail.png). It appears that the source image is a request on the portal rest but the request is false : https://HOSTNAME/portal/sharing/rest/content/items/0686a4a2477d42c19ba838a317386875/info/null?token=XXXXXXXXXXX. (Where token is an available token) The request return an error 404 : I stopped digging, but i suspect many requests to be false when trying to reach portal informations. So here are my questions : Is it an issue that API JS 4.X can't load in the experience Builder or is it a normal behavior which need CORS enabled or proxy set-up ? Why are the requests wrong, are they made for Online set-up ? ----------------------------------------------------- The last thing I'd like to report, it's the slowness of the refreshing layers when the experience is started or when the extent/zoom is reset. Best regards, A.C
... View more
02-18-2021
07:35 AM
|
1
|
5
|
3206
|
POST
|
I had a similar issue with the same prompt error message. But it seems to be different in your case. I may ask a basic question but, are the file from the 404 error accessible from file explorer in client/dist/widgets ?
... View more
02-18-2021
01:31 AM
|
0
|
3
|
1936
|
POST
|
Good afternoon, Look in your browser console if the loading of the API isn't blocked du to CORS request. https://HOSTNAME/arcgis_api_js/library/4.18/dojo/dojo.js I had the same issue, until i enabled CORS requests on my server.
... View more
02-16-2021
08:28 AM
|
0
|
11
|
1957
|
POST
|
Hi, I'm sorry to dig-up this thread, I need more precisions on wich API betwen the 3.X and the 4.X will have the cluster attributes implemented. It seems to be in beta on the API 4, but not in the API 3. Will the cluster attributes/calculations for features reductions be implemented in the API 3 ? Thank you. A.C
... View more
02-10-2021
01:49 AM
|
0
|
0
|
1040
|
POST
|
Robert, Thank you for your confirmation. I wasn't sure about editing manually the config.json inside the app's folder. Thank for you time, Sincerely, Alexis.
... View more
08-25-2020
05:33 AM
|
0
|
0
|
953
|
POST
|
Dear Community, Since WebAppbuilder Developper Edition 2.16 (avaible for 2.17 too), I found some very strange behaviour of config files. I am aware that there is two config.json for each widgets : - One in the Widget Folder named "config.json" (I will calll it Widget JSON ) - One in the "configs" folder in the app named "config_<label>.config.json" (I will call it App JSON ) I found a strange behaviour in the eDraw Widget, when calling this.config i expect this one to reach the Widget Json but it seems to call the App Json. (I tried to modifiy the default Symbols ). When there is no setting folder in a Widget, this.config is calling the Widget Json but when there is settings, this.config is calling the App Json. So here's my questions : - Is it normal ? If it is,what is the "Esri" way to access te Widget Json when there is settings inside a widget. - Is it existing only since Wab 2.16 or did i missed it before ? PS : I made 2 customs widgets test for some tests, i add them to this post. Tetsasup reach the configs/testasup/config_testasup.sjon when using this.config and in testasup_nosetting this.config reach the config.json inside the widget folder. Thank you in advance for you time, Alexis Cuicui.
... View more
08-25-2020
03:06 AM
|
0
|
2
|
1006
|
Title | Kudos | Posted |
---|---|---|
1 | 02-18-2021 07:35 AM |
Online Status |
Offline
|
Date Last Visited |
12-15-2023
02:21 AM
|