|
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
|
1429
|
|
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
|
1543
|
|
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
|
2255
|
|
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
|
2890
|
|
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
|
2263
|
|
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
|
624
|
|
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
|
1422
|
|
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
|
1465
|
|
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
|
1980
|
|
POST
|
There is still a React JSX runtime. The ArcGIS JSAPI widgets have a different jsx runtime that is not compatible with React., The TS compiler doesn't know to not try and compile a custom ArcGIS widget JSX like React and will fail. So, in short, yeah, if you want to mix a custom ArcGIS JSAPI widget with React, those comments are needed. I however would not recommend doing this, just build your components with whatever framework you are using or build web components if you are looking to share them across projects.
... View more
06-02-2022
02:50 PM
|
0
|
2
|
2022
|
|
POST
|
Do you have a repro of this, a codepen or something? I wasn't able to repro.
... View more
06-02-2022
10:27 AM
|
0
|
2
|
1449
|
|
POST
|
I have a utility that might help too if you don't want to manually pull vertices out, will convert polygons to points you can pull lat/lon off too. https://github.com/odoe/explode
... View more
06-02-2022
05:15 AM
|
1
|
0
|
3294
|
|
POST
|
I'm not sure why someone would want that, I suppose it depends. The query would return info about the fields, maybe some other service info, but an empty array of features.
... View more
05-27-2022
02:18 PM
|
0
|
0
|
1892
|
|
POST
|
Are they always individual graphics in a GraphicsLayer or could you put them in a client-side FeatureLayer? If you put them in a client-side FeatureLayer or they are already FeatureLayers, you can have it create a default PopupTemplate for you. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#createPopupTemplate I guess I'm a little confused, if you don't have a PopupTemplate, the layer has no Popup, and there is no content to override? You could do it all manually, using view.hitTest but you would still need a PopupTemplate of some sort for the Popup to display. There is CustomContent for popups you can use too.
... View more
05-25-2022
12:28 PM
|
0
|
0
|
1319
|
|
POST
|
You might want to look at the Feature widget. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html This is the widget used by the Popup to display the contents. There's a couple of samples linked in that page that show various ways you can use it for displaying the content as you wish.
... View more
05-25-2022
09:55 AM
|
0
|
1
|
1332
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 2 | 3 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
11 hours ago
|