|
POST
|
You can a take a screenshot https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=sceneview-screenshot
... View more
01-26-2022
12:45 PM
|
2
|
0
|
1174
|
|
POST
|
This isn't as simple as converting from AMD to ESM. If you want to convert this to a React component, you'll need to learn the basics of React. FreecodeCamp is a good resource. https://www.freecodecamp.org/news/react-tutorial-build-a-project/ egghead has some free videos as well. some of them are a little dated, but the basics are the basics. https://egghead.io/q/react?access_state=free We also have a React sample using ArcGIS JSAPI on github. It doesn't teach you React, but provides a start of how you can integrate React with the JSAPI. https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app
... View more
01-19-2022
08:06 AM
|
1
|
0
|
4553
|
|
POST
|
You can iterate over the array and add them to the source of the FeatureLayer. const data = [
{ latitude: 59.441193, longitude: 24.729494 },
{ latitude: 59.432365, longitude: 24.742992 },
{ latitude: 59.431602, longitude: 24.757563 },
{ latitude: 59.437843, longitude: 24.765759 },
{ latitude: 59.439644, longitude: 24.779041 },
{ latitude: 59.434776, longitude: 24.756681 },
];
const featureLayer = new FeatureLayer({
geometryType: "point",
objectIdField: "OBJECTID",
source: data.map((a) => ({
geometry: {
type: "point",
...a,
},
})),
});
... View more
01-13-2022
01:47 PM
|
0
|
0
|
1405
|
|
POST
|
Can you provide a service URL to testify against? Not seeing this behavior with current ones used in samples, could be something in how the capabilities are parsed for some services.
... View more
01-12-2022
08:23 AM
|
0
|
1
|
2913
|
|
POST
|
Can't tell by the error. If you have a sample application, could take a look.
... View more
01-11-2022
05:04 PM
|
0
|
1
|
8319
|
|
POST
|
It looks like it's only used in the demo, the "Styled" comp isn't part o ExB, just for demo purposes. It's basically a styled component just created for the storybook.
... View more
01-11-2022
08:38 AM
|
0
|
0
|
1225
|
|
POST
|
This is part of the Styled components that ExB provides https://developers.arcgis.com/experience-builder/guide/widget-ui/#2-styled-components Not sure what Styled does in this case, but it probably has some predefined styles for nav links.
... View more
01-10-2022
12:33 PM
|
0
|
0
|
1244
|
|
POST
|
I wrote something that can help with this just recently. https://www.npmjs.com/package/@odoe/explode const lines = explode(polygon);
const points = lines.map(explode).flat(); You are going to get some duplicate points though, because the end vertex for one line is the start vertex for another, so you'll need to do some filtering. I might be able to add some options to do this in the method in the future, but I didn't need it for what I was doing.
... View more
01-09-2022
12:19 PM
|
0
|
0
|
1766
|
|
POST
|
You'll need to adjust some css to handle your layout. You can look at flexbox for example. I wouldn't apply it directly to the body, but would a container instead. This is how you can do it with the body. body {
display: flex;
flex-direction: column;
}
... View more
01-06-2022
11:29 AM
|
2
|
1
|
1977
|
|
POST
|
Well, I haven't used ASP in years, so I spun up a new project locally and it looks like the default app uses a local jquery and bootstrap. This is where the error comes from because jquery has a require method it uses. We can work around this in the "Pages/Shared/_Layout.cshtml" file with a dojoConfig to define where the local packages can be loaded from. <script>
var dojoConfig = {
packages: [
{
name: "jquery",
location: location.pathname.replace(/\/[^/]+$/, "") + "lib/jquery/dist",
main: "jquery.min",
},
{
name: "bootstrap",
location:
location.pathname.replace(/\/[^/]+$/, "") + "lib/bootstrap/dist/js",
main: "bootstrap.bundle.min",
},
],
};
</script>
<script src="https://js.arcgis.com/4.22/"></script> Then in your "wwwroot/js/site.js" file, when you load the JSAPI and require the modules, you can load the jquery and bootstrap stuff. require([
"esri/WebMap",
"esri/views/MapView",
"jquery",
"bootstrap"
], function (...) {...}) This fixed the issue in my local app, should fix the issue for you too. Now I feel like I should do something with dotnet...
... View more
01-06-2022
08:15 AM
|
0
|
1
|
2803
|
|
POST
|
You would need to publish a Locator service specific for what you need.
... View more
01-05-2022
07:56 AM
|
1
|
0
|
1842
|
|
POST
|
You need to specify the "urls" string so the interceptor knows which URL should be intercepted. the way you have it set up the "urls" is null or undefined, so the first one overwrites the second.
... View more
01-04-2022
09:17 AM
|
1
|
1
|
2604
|
|
POST
|
It takes an array of interceptors, each can intercept a different URL, so yes, it can. https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request
... View more
01-04-2022
07:29 AM
|
0
|
3
|
2608
|
|
POST
|
Could be related to this issue found here. https://community.esri.com/t5/arcgis-api-for-javascript-questions/feature-effect-and-labeling-issue/m-p/1129839#M75742
... View more
01-03-2022
09:51 AM
|
0
|
0
|
2622
|
|
POST
|
You can use the createPopupTemplate method on the layer. view.when(() => {
const popupTemplate = featureLayer.createPopupTemplate();
featureLayer.popupTemplate = popupTemplate;
});
... View more
01-03-2022
09:46 AM
|
0
|
0
|
1750
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | yesterday | |
| 1 | 3 weeks ago | |
| 2 | 2 weeks ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Online
|
| Date Last Visited |
3 hours ago
|