|
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
|
2262
|
|
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
|
1692
|
|
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
|
3597
|
|
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
|
2143
|
|
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
|
1476
|
|
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
|
1489
|
|
POST
|
What is getMetaData? Doesn't look like a method in the ArcGIS JSAPI.
... View more
05-24-2022
07:04 AM
|
0
|
0
|
987
|
|
POST
|
Whatever app you're using has defined the PopupMobile like that sample.
... View more
05-23-2022
08:39 AM
|
0
|
1
|
1280
|
|
POST
|
That looks like the PopupMobile for 3x. It does fullscreen like that because it's meant to be used on mobile devices. https://developers.arcgis.com/javascript/3/jssamples/widget_mobilepopup.html
... View more
05-23-2022
08:34 AM
|
0
|
3
|
1283
|
|
POST
|
Looks like this will be fixed in 4.24, it's currently working in the "next" build. You can test by changing the script tag url. <script src="https://js.arcgis.com/next/"></script>
... View more
05-23-2022
07:07 AM
|
1
|
0
|
1384
|
|
POST
|
Either set the zoom and center or the extent, but don't try to do both or the map has to move from one location to another.
... View more
05-23-2022
06:51 AM
|
0
|
0
|
1123
|
|
POST
|
You can't use renderers with a GraphicsLayer, but you can create a client-side FeatureLayer with your collection of graphics and use all the same renderer features with it. Here is a sample using a client-side FeatureLayer. https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/ Once it's a FeatureLayer, you can use all the same capabilities, editing, renderers, filters, effects, all of it.
... View more
05-22-2022
07:41 PM
|
1
|
1
|
1335
|
|
POST
|
Currently, no. There is no fix. But, based on this comment here, this will work in an upcoming release of Parcel, so eventually should work in codesandbox down the road.
... View more
05-20-2022
01:55 PM
|
0
|
0
|
849
|
|
POST
|
You can use Popup custom content and programmatically change routes based on what router you're using. https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html Something like this, but in the custom popup content. https://github.com/odoe/nearby-app/blob/main/src/components/common/Footer.vue#L22
... View more
05-20-2022
08:41 AM
|
0
|
0
|
1219
|
|
POST
|
Does the graphic or source layer have a popupTemplate defined? If not, pass true to the method to try and have one created for you. https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#getEffectivePopupTemplate Whether support for default popup templates is enabled. When true, a default popup template may be created automatically if neither the graphic nor its layer have a popup template defined.
... View more
05-19-2022
09:22 PM
|
0
|
1
|
1420
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks 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 |
Offline
|
| Date Last Visited |
yesterday
|