POST
|
Ok so here is a snippet from the code, I tried to pull out anything that would detract from what I am attempting to accomplish. The code itself: const ProjectMap: React.FunctionComponent = () => {
const mapDiv = useRef<null | HTMLDivElement>(null);
const [mapView, setMapView] = useState<null | MapView>(null);
useEffect(() => {
if (mapDiv.current) {
const webMap = new WebMap({
portalItem: {
id: 'c63925bb216a4186980d5a7419a7e918',
},
});
const view = new MapView({
map: webMap,
container: mapDiv.current,
});
view.when(() => {
const lyr = webMap.layers.getItemAt(0);
console.log('layer from webmap:');
console.log(lyr);
lyr.allSublayers.find((sublayer) => sublayer.id === 0);
});
setMapView(view);
}
}, []);
return <div ref={mapDiv} className="mapDiv" />;
};
export default ProjectMap; The errors that I am seeing related to the types are: And the console output of the layer that I initially got from the web map is here (showing the loaded value and type of the item): I really appreciate you helping with this, I watch all your youtube stuff its great!
... View more
12-09-2021
03:31 PM
|
0
|
0
|
947
|
POST
|
@ReneRubalcava I am in a super locked down network and we are using ArcGIS Enterprise. As far as I can tell ArcGIS Online does not allow me to publish a map image layer from ArcPro. Do you just need the code base or would attempting to provide the data be the best option?
... View more
12-09-2021
02:37 PM
|
0
|
2
|
958
|
POST
|
My goal is to load a sublayer from my MapImageLayer into a FeatureTable so that the table will filter with the extent of the view. My problem is that when I am querying for the sub layers I am not able to call things like allSublayers on the MapImageLayer because typescript says that it is a type esri.Layer rather than a MapImageLayer. So something like this: const foundLyr = webMap.layers.find((lyr) => lyr.type === 'map-image'); Does anyone know how to solve this?
... View more
12-09-2021
12:21 PM
|
0
|
5
|
997
|
POST
|
Hi all, I am looking to adjust the Fetch request option when making a request with @esri/arcgis-rest-request, but unfortunately I cannot find any documentation related to this. import fetch from "node-fetch";
import FormData from "isomorphic-form-data";
import arcgisRestRequest from "@esri/arcgis-rest-request";
arcgisRestRequest.setDefaultRequestOptions({ fetch, FormData });
arcgisRestRequest.request("https://www.arcgis.com/sharing/rest/info")
.then(response => console.log(response)); When using the request method I am getting errors regarding the certificate of the NodeJS server: FetchError: request to https://xxx/server/rest/self?token=xxx=json failed, reason: unable to get local issuer certificate I would like to pass something like: const fetchOptions = {
...
agent:new https.Agent({rejectUnauthorized: false}),
...
}; to avoid the certificate error. How can I accomplish this?
... View more
10-27-2021
12:27 PM
|
0
|
1
|
654
|
POST
|
Great news. Looking forward to getting a fix in for this. We are very close to releasing this software and need to have this issue taken care of. Thanks.
... View more
09-24-2021
05:07 PM
|
1
|
0
|
1147
|
POST
|
@AlexCopli Looks like the problem is on version 4.21 as well. @JoseBanuelos Can you please let us know if there is an ESRI recommended workaround for this issue? A vast majority of the data I work on is in the pacific ocean.
... View more
09-24-2021
04:44 PM
|
1
|
2
|
1175
|
POST
|
Is it possible to use the props.token value to get information from the URL https://xxxxxxxxx/portal/sharing/rest/community/self? I am trying to pull specific user data the authenticated user that is using the Experience that I have developed. I have tried to use the props.token in the URL like this: GET https://arcgis.mydomain.com/arcgis/rest/services/SampleWorldCities/MapServer?f=pjson HTTP/1.1
Host: arcgis.mydomain.com
X-Esri-Authorization: Bearer xMTuPSYpAbj85TVfbZcVU7td8bMBlDKuSVkM3FAx7zO1MYD0zDam1VR3Cm-ZbFo- Or as seen here https://enterprise.arcgis.com/en/server/10.8/administer/windows/about-arcgis-tokens.htm but no luck so far.
... View more
08-12-2021
02:41 PM
|
0
|
0
|
335
|
POST
|
Hello all, I am really hoping that someone can help me fix an issue I am having with user authentication with my "Experience" that I developed with the developer edition. Currently when the user hits the Experience at my url everything seems to work fine and the user is prompted to authenticate, but if the user closes the web browser and comes back to the web page the user is not prompted to authenticate and the Experience breaks. Is this a cache issue? If not a cache issue is there a way to ensure that the Experience prompts for sign in each time the user comes back to the page? When I hard reload the Experience (Control + F5) the Experience asks for authentication again. Does anyone know whats going on here?
... View more
08-05-2021
10:05 PM
|
0
|
1
|
676
|
POST
|
The out of the box widgets for Experience Builder are rather slim at the moment, but I think it is possible for you to create a custom layer list widget that will do what you are looking for. Check out some of these examples https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets
... View more
07-22-2021
01:28 AM
|
0
|
0
|
1218
|
POST
|
Hello all, I am really hoping there is a good solution to this. I am having screen size / resolution issues with Map Image Layers that are associated with my experience. When the computer screen is in the 1920 X 1080 resolution everything works perfectly, but when I switch to 2560 X 1440 the Map Image Layer is completely broken. This image is the screen resolution at 1920 X 1080: As you can see this is working perfectly. This image is the screen resolution at 2560 X 1440: As you can see something is very wrong here. Any help or insight with this issue is very appreciated. EDIT: This issue is effecting only 2D maps.
... View more
07-22-2021
12:15 AM
|
0
|
2
|
1104
|
POST
|
I want to lock a widget height and width but the UI for that seems to no be working. What am I doing incorrectly? I tried this lock in the image and it doesnt seem like its doing anything: Or is it possible to get the height and width programmatically? Any help will be greatly appreciated.
... View more
07-15-2021
07:23 PM
|
0
|
1
|
716
|
POST
|
Looks like it was a cache issue for me. Thanks for the help
... View more
07-14-2021
05:06 PM
|
1
|
0
|
2865
|
POST
|
Hello all, Not sure if there is a GitHub repo that I can submit an issue to, but I have noticed that in the 1.4 release of the ArcGIS Experience Builder Developer Edition the command npm run test will fail with the error: my-pc ~/Desktop/ArcGISExperienceBuilder/client
$ npm run test
> exb-client@1.4.0 test C:\Users\user\Desktop\ArcGISExperienceBuilder\client
> jest --runInBand
FAIL your-extensions/widgets/simple/tests/simple-widget.test.tsx
● Test suite failed to run
TypeError: global.systemRegister is not a function
at SystemJS.Object.<anonymous>.System.register (dist/jimu-core/react.js:18:16)
at Object.<anonymous> (dist/jimu-core/react.js:26:12)
at Object.<anonymous> (node_modules/@wojtekmaj/enzyme-adapter-react-17/src/ReactSeventeenAdapter.js:2:1)
at Object.<anonymous> (node_modules/@wojtekmaj/enzyme-adapter-react-17/src/index.js:2:18)
at Object.<anonymous> (jimu-for-test/setup-jest.js:3:17)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 11.737 s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! exb-client@1.4.0 test: `jest --runInBand`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the exb-client@1.4.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2021-07-14T23_39_11_102Z-debug.log After looking around the community board it looks like someone noticed this issue a little while ago and mentions the fix here . It seems like the fix for this is to adjust the client/jimu-for-test/setup-jest.js like the following code: // require('jest-fetch-mock').enableMocks()
// const Enzyme = require('enzyme');
// const Adapter = require('@wojtekmaj/enzyme-adapter-react-17')
// const { System } = require('systemjs');
// Enzyme.configure({ adapter: new Adapter() });
// global.systemRegister = System.register;
require('jest-fetch-mock').enableMocks()
const { System } = require('systemjs');
global.systemRegister = System.register;
const Enzyme = require('enzyme');
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17')
Enzyme.configure({ adapter: new Adapter() }); The commented out code is the code that is originally in the file and the code that is bellow is the adjustment to make tests work. How has everyone been testing their code?
... View more
07-14-2021
05:01 PM
|
1
|
0
|
506
|
POST
|
@ReneRubalcava thanks for pointing that out to me. Would you know if it is possible to make that configuration work with the Experience Builder? The team I am working on has determined that that will be their preferred method of development
... View more
07-12-2021
04:56 PM
|
0
|
1
|
1506
|
POST
|
Hi @JonathanMcDougall , Thanks for responding. I am using the experience Builder developer edition and I was unable to see the map update with a new data source. The environment that I work in is very locked down so about 10 minutes ago we had to stop developing until the morning. So in the morning I will send a video over to show you what I am seeing. Hopefully you can answer my question about what's going on.
... View more
07-11-2021
09:24 PM
|
0
|
0
|
2915
|
Title | Kudos | Posted |
---|---|---|
1 | 06-21-2021 11:26 AM | |
1 | 09-24-2021 05:07 PM | |
1 | 09-24-2021 04:44 PM | |
1 | 07-14-2021 05:01 PM | |
1 | 07-14-2021 05:06 PM |
Online Status |
Offline
|
Date Last Visited |
12-16-2021
12:58 PM
|