|
POST
|
Is the "myCustomData" based on information from the feature? Based on the attributes? You could have that method be the content and create the elements when the popup opens. That would be the recommended way. You can tweak that getDynamicContent method if you really need to function getDynamicContent(content) {
return () => {
const div = document.createElement("div");
div.innerHTML = content;
return div;
}
}
... View more
06-15-2022
12:32 PM
|
0
|
1
|
2831
|
|
POST
|
What does "applyEditsToIncidents" look like? Is it passing the options correctly?
... View more
06-15-2022
12:28 PM
|
0
|
7
|
5464
|
|
POST
|
What if you make the content function async? Seems odd that it loads all the images up front. I'd think the method only gets executed when the popup loads.
... View more
06-15-2022
10:51 AM
|
0
|
3
|
2849
|
|
POST
|
Ah, if you're using the globalId, you need to pass the globalIdUsed property as true in the options. There's a snippet in the doc here further down the page https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits
... View more
06-14-2022
01:07 PM
|
0
|
9
|
5477
|
|
POST
|
Looking at the doc, the attachmentForm should be an object with feature and attachment, not just a form, so it knows which feature to attach it. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit I think you need to do this after you do addFeature, because it looks like you need the objectId or globalId to add the attachment. So you would do your edit in two steps.
... View more
06-14-2022
08:17 AM
|
0
|
12
|
5500
|
|
POST
|
You can turn off popup highlights here https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#highlightEnabled
... View more
06-09-2022
09:21 AM
|
0
|
0
|
2138
|
|
POST
|
Ok, I think I see the issue. You want to update the entire padding object, not just a single property. view.padding = {
...view.padding,
left: leftPadding
}; That seems to be much cleaner when I test it in your app.
... View more
06-07-2022
01:54 PM
|
0
|
0
|
1670
|
|
POST
|
Here is an app that uses calcite-components and Vue to help give you an idea. https://github.com/odoe/nearby-app There is a Frameworks integration section to the doc too. https://developers.arcgis.com/calcite-design-system/frameworks/ There is a section on React, using the calcite-components-react, which is a build that has React components to wrap calcite-components, makes it a little easier to pass props and add listeners to the components.
... View more
06-07-2022
09:40 AM
|
0
|
0
|
1680
|
|
POST
|
The story is a little different when using a FeatureLayer, changing the symbol on click requires you to edit the attributes in some way to distinguish it from other features on the map. https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/unique-types/ You may not want that, since you can't or don't want to edit the data. Best option in that case is to create a new Graphic with the symbol you want, add it to a GraphicsLayer, and then use a filter via LayerView filter or Layer definitionExpression to hide the target feature. https://developers.arcgis.com/javascript/latest/query-filter/#layer-and-layerview
... View more
06-07-2022
07:27 AM
|
0
|
1
|
2468
|
|
POST
|
You can turn those off with the Popups visibleElements prop. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visibleElements featureNavigation is an option https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#VisibleElements
... View more
06-07-2022
06:19 AM
|
1
|
1
|
3077
|
|
POST
|
You can replace the symbol with a new one, with a new url. graphic.symbol = newSymbol
... View more
06-07-2022
06:13 AM
|
1
|
3
|
2476
|
|
POST
|
No, but you can use multiple Feature widgets to display data for multiple features. https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature/
... View more
06-07-2022
06:07 AM
|
0
|
0
|
718
|
|
POST
|
When I did the npm install, I had a node-gyp error for node-sass I'm familiar with, so I knew that was a deprecated module and to replace it with regular sass. I also thought it was odd that the arcgis-js-api typings weren't installed, as this an older style TS to AMD build, so those were needed. Basically, I've been there, ha.
... View more
06-06-2022
08:37 AM
|
1
|
0
|
1642
|
|
POST
|
That project is pretty old, but you could bandaid it into shape with these changes. --- a/package.json
+++ b/package.json
@@ -32,11 +32,13 @@
"grunt-run": "^0.8.1",
"grunt-stripcomments": "^0.7.2",
"js-yaml": ">=3.13.1",
+ "sass": "^1.52.2",
+ "tslib": "^2.4.0",
"tslint": "^4.2.0"
},
"dependencies": {
+ "@types/arcgis-js-api": "^4.20.0",
"@types/dojo": "1.9.41",
- "node-sass": "4.14.1",
"typescript": "4.2.4"
}
} --- a/tsconfig.json
+++ b/tsconfig.json
@@ -19,8 +19,8 @@
"baseUrl": ".",
"moduleResolution": "node",
"types": [
- "dojo",
- "./typings/arcgis-js-api-4.20"
+ "arcgis-js-api",
+ "dojo"
]
},
"include": [
... View more
06-03-2022
08:06 AM
|
1
|
2
|
1685
|
|
POST
|
Sorry, when I say Web Components, I'm talking about native Web Components. Our JSAPI widgets are not native Web Components. We use and provide Calcite Components that you can use too. There are a few options out there to more easily build Web Components, but Stencil is very good.
... View more
06-03-2022
07:20 AM
|
1
|
0
|
2217
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM |
| Online Status |
Online
|
| Date Last Visited |
3 hours ago
|