|
POST
|
What is getMetaData? Doesn't look like a method in the ArcGIS JSAPI.
... View more
05-24-2022
07:04 AM
|
0
|
0
|
887
|
|
POST
|
Whatever app you're using has defined the PopupMobile like that sample.
... View more
05-23-2022
08:39 AM
|
0
|
1
|
1123
|
|
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
|
1126
|
|
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
|
1260
|
|
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
|
982
|
|
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
|
1139
|
|
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
|
730
|
|
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
|
1063
|
|
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
|
1282
|
|
POST
|
Usually this is related to babel and the browserlist settings noted here https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app#misc But without a test repo, no way to tell.
... View more
05-19-2022
09:16 PM
|
0
|
1
|
1276
|
|
POST
|
You can use the Home widget or save the initial extent and apply it on a button click if you want to DIY. https://developers.arcgis.com/javascript/latest/sample-code/widgets-home/
... View more
05-18-2022
01:09 PM
|
1
|
0
|
1125
|
|
POST
|
// change this
if (!view.graphics.length) {
// check if layer where you clicked
// with hitTest
view.hitTest(evt).then(({results}) => {
if (results.length) {
view.graphics.removeAll();
view.graphics.add(graphic);
}
});
}
// to this
// check if layer where you clicked
// with hitTest
view.hitTest(evt).then(({results}) => {
if (results.length) {
view.graphics.removeAll();
view.graphics.add(graphic);
}
});
... View more
05-18-2022
08:10 AM
|
1
|
3
|
1912
|
|
POST
|
That error you're getting means the layer doesn't support editing, but could you try using your layer in this simple sample and see if you can edit the features https://codepen.io/odoe/pen/dydvvaB?editors=1000 Try to edit, add, delete, and see if it works there.
... View more
05-17-2022
09:01 AM
|
0
|
1
|
5147
|
|
POST
|
Remove the check on graphics length and that will do it.
... View more
05-16-2022
08:12 AM
|
0
|
5
|
1918
|
|
POST
|
Sorry, I misunderstood what you were looking for. You can use a hitTest to check if your layer where you clicked. I would normally do more checks for the layer id or title, but in this case just checking for results is ok. if (!view.graphics.length) {
// check if layer where you clicked
// with hitTest
view.hitTest(evt).then(({results}) => {
if (results.length) {
view.graphics.removeAll();
view.graphics.add(graphic);
}
});
} I updated the codepen in my previous post.
... View more
05-13-2022
10:32 AM
|
0
|
7
|
1935
|
| 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 |
15 hours ago
|