|
POST
|
Thanks you! it's working! Apparently Arcgis Experience Builder already add interceptor at file client\dist\jimu-arcgis\index.js (it's built minified) (e=re.request.interceptors)||void 0===e||e.push({after:e=>{var t,i;(null===(t=null==e?void 0:e.url)||void 0===t?void 0:t.indexOf("/rest/info"))&&(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.owningSystemUrl)&&this.registOAuthInfo(e.data.owningSystemUrl)}}), but they add interceptor without urls property so even if I add urls esriConfig.request.interceptors.push({
urls: /FeatureServer\/\d+/,
after: function (response) {
response.data.supportedQueryFormats = "JSON";
}
}); It's not intercept. I tried to add urls to the first interceptor esriConfig.request.interceptors[0].urls = /.*?/ or esriConfig.request.interceptors[0].urls = /.*/ also not working But when tried esriConfig.request.interceptors[0].urls = /blalba.*/ It's seems like if hit the first interceptor it's not continue to the second one. Meanwhile I do esriConfig.request.interceptors.push({
urls: /FeatureServer\/\d+/,
after: function (response) {
debugger;
response.data.supportedQueryFormats = "JSON";
}
});
esriConfig.request.interceptors.reverse(); Any suggestions?
... View more
01-04-2022
10:18 AM
|
0
|
0
|
1959
|
|
POST
|
Hi, This is also what I thought but unfortunately it does not work.. Here is an pen example. https://codepen.io/Dvirus/pen/GRMdzLW?editors=1001
... View more
01-04-2022
08:36 AM
|
0
|
2
|
1964
|
|
POST
|
Hi, Arcgis 4.x JSAPI esriConfig.request.interceptors support multiple interceptors?
... View more
01-04-2022
06:02 AM
|
0
|
4
|
1975
|
|
POST
|
Hi, ArcGIS Experience Builder already use Interceptor. I tried to add another one esriConfig.request.interceptors.push({
urls: /FeatureServer\/\d+$/,
after: function (response) {
response.data.supportedQueryFormats = "JSON";
}
}); But it's not working. esriConfig.request.interceptors support multiple interceptors?
... View more
01-04-2022
06:00 AM
|
0
|
0
|
402
|
|
POST
|
Hi, What does it mean <Styled(_NavLink) at Nav in storybook: https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-ui-index-nav--with-icons How can we use it? <Nav className="mb-5">
<NavItem>
<Styled(_NavLink)
active
href="#"
icon="<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M2 5.055V11h2V8a1 1 0 011-1h2a1 1 0 011 1v3h2V4.969L6.043 1 2 5.055zM1 6.058l-.149.15a.497.497 0 01-.705 0 .501.501 0 010-.708L5.338.293a.995.995 0 011.41 0l5.106 5.121a.501.501 0 010 .707.497.497 0 01-.705 0L11 5.971V11a1 1 0 01-1 1H2a1 1 0 01-1-1V6.058zM5 11h2V8H5v3z" fill="#000" fill-rule="nonzero"></path></svg>"
>
Link 1
</Styled(_NavLink)>
</NavItem>
</Nav>
... View more
01-02-2022
04:07 AM
|
0
|
0
|
471
|
|
IDEA
|
Adding FastRefresh to ArcGIS Experience Builder Developer Edition. FastRefresh is now part of create-react-app https://github.com/facebook/create-react-app (https://reactnative.dev/docs/fast-refresh) ArcGIS Experience Builder (DE) is not running on webpack-dev-server But there is React Refresh Webpack Plugin https://github.com/pmmmwh/react-refresh-webpack-plugin supporting ts-loader And can be use also as webpack-hot-middleware Just need to check if it's also working on Koa😉 https://koajs.com/
... View more
12-31-2021
03:28 PM
|
0
|
0
|
1115
|
|
POST
|
Hi, Same issue here. ArcGIS 10.9.1 Enterprise PBF return negative numbers for Y. Json return fine. The problem is how can I set default to use JSON instead PBF? Or how can I control queryFeatures method to change the format? Br, Dvir.
... View more
12-22-2021
01:42 AM
|
0
|
1
|
2092
|
|
POST
|
Hi, Same issue here.. Its appear that missing files.
... View more
11-01-2021
04:38 AM
|
0
|
0
|
1146
|
|
POST
|
Hi, I got that message from REST service: { error: { code: 498, message: 'Invalid Token', details: [] } } The problem is that it's disconnecting the WAB client. Request: For testing, I make a request loop for every 2 minutes, that's the results: [8/17/2021, 12:08:15 AM] {
objectIdFieldName: 'id',
globalIdFieldName: '',
geometryType: 'esriGeometryPolyline',
spatialReference: { wkid: 102100, latestWkid: 3857 },
transform: {
originPosition: 'upperLeft',
scale: [ 9.55462853563444, 9.55462853563444 ],
translate: [ 34.80142300000006, 32.10266900000005 ]
},
features: []
}
[8/17/2021, 12:10:17 AM] {
objectIdFieldName: 'id',
globalIdFieldName: '',
geometryType: 'esriGeometryPolyline',
spatialReference: { wkid: 102100, latestWkid: 3857 },
transform: {
originPosition: 'upperLeft',
scale: [ 9.55462853563444, 9.55462853563444 ],
translate: [ 34.80142300000006, 32.10266900000005 ]
},
features: []
}
[8/17/2021, 12:12:21 AM] { error: { code: 498, message: 'Invalid Token', details: [] } }
[8/17/2021, 12:14:16 AM] {
objectIdFieldName: 'id',
globalIdFieldName: '',
geometryType: 'esriGeometryPolyline',
spatialReference: { wkid: 102100, latestWkid: 3857 },
transform: {
originPosition: 'upperLeft',
scale: [ 9.55462853563444, 9.55462853563444 ],
translate: [ 34.80142300000006, 32.10266900000005 ]
},
features: []
}
[8/17/2021, 12:16:15 AM] {
objectIdFieldName: 'id',
globalIdFieldName: '',
geometryType: 'esriGeometryPolyline',
spatialReference: { wkid: 102100, latestWkid: 3857 },
transform: {
originPosition: 'upperLeft',
scale: [ 9.55462853563444, 9.55462853563444 ],
translate: [ 34.80142300000006, 32.10266900000005 ]
},
features: []
} As you can see the token is valid. Arcgis 10.8.1 - all patches are installed - Federated Portal 10.8.1. Postgres DB. Any suggestions? Thanks.
... View more
08-16-2021
11:00 PM
|
0
|
0
|
619
|
|
POST
|
Hi @MichaelGinzburg Thanks for reply, I think that overviews are generated as Tiff (I checked the folder content) and that why in some of scale (the very first ones) are showing. Any suggestion why it's happen?
... View more
08-11-2021
12:57 PM
|
0
|
0
|
1810
|
|
POST
|
Hi, Attached screenshot is ImageServer service with MosaicSet with 2 rasters in same folder! the top one is SID and Bottom is ECW. As you can see it's displays as checkers (black and white) Any suggestion?
... View more
08-11-2021
12:36 PM
|
0
|
3
|
1821
|
|
POST
|
Hi, Can you please show the full request? Assume that you refer this endpoint: arcgis/sharing/rest/generateToken I don't how many request you did but in portal 10.8 I can confirm that I can make 300/minute requests without any problem var data = new FormData(); data.append("username", "X"); data.append("password", "X"); data.append("client", "referer"); data.append("referer", "portalurl"); data.append("expiration", ""); data.append("f", "json"); var xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("POST", "https://portal/arcgis/sharing/rest/generateToken"); xhr.send(data); assume that arcgis is your webadaptor.
... View more
07-19-2021
08:06 AM
|
0
|
0
|
893
|
|
POST
|
Hi, I am sorry under namespace Esri.ArcGISRuntime.Location in version 100.09 there isn't AdditionalSourceProperties It's been add at 100.10
... View more
03-16-2021
02:17 PM
|
0
|
1
|
2795
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-04-2024 05:17 PM | |
| 1 | 03-14-2022 02:12 PM | |
| 2 | 12-24-2020 11:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-18-2024
09:29 AM
|