|
POST
|
Can you provide a git repo of your issue. I copied your codepen into a simple app and the layer works ok. https://github.com/odoe/jsapi-add-featurelayer-issue Not sure what the issue you are seeing is.
... View more
09-15-2021
09:00 AM
|
0
|
0
|
1397
|
|
POST
|
Portal load kicks in the IdentityManager authentication workflow. So you can use the IdentityManager destroyCredentials() method to sign out. https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#destroyCredentials
... View more
09-14-2021
08:16 AM
|
0
|
0
|
3861
|
|
POST
|
You can add it via the "manual" option mentioned in the doc here. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html#add You'll probably need to wrap it in another div and center it like shown here. https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_cookbook/Center_an_element
... View more
09-14-2021
08:09 AM
|
1
|
1
|
6192
|
|
POST
|
Ah ok. Unless the view or viewlayer initiates the request, updating won't be true until you add results to the map. What you can do is show the loader just before you make the query, then leave the whenFalse() on the view and it will hide the loader when the results are added to the map and drawn. If you are not displaying results for some reason, you can hide the loader when the results are returned.
... View more
09-13-2021
10:26 AM
|
1
|
4
|
6212
|
|
POST
|
Here is the documentation for the distance operation. https://developers.arcgis.com/rest/services-reference/enterprise/distance.htm You need to pass the geometries as shown. {
"geometryType" : "esriGeometryPoint",
"geometry" :
{
"x" : -95.23, "y" : 31.71;
}
} There's an example URL at the bottom of the page for reference.
... View more
09-13-2021
08:59 AM
|
0
|
1
|
1681
|
|
POST
|
Odd, that same logics works in this demo. https://codepen.io/odoe/pen/LYLLXwO Could be an odd race condition with jQuery, but still odd. You can try using a whenFalseOnce inside the whenTrue method like this demo. https://codepen.io/odoe/pen/wveeRew?editors=0010 whenTrue(view, "updating", () => {
console.log("updating true")
loader.active = true;
whenFalseOnce(view, "updating", () => {
console.log("updating false")
loader.active = false;
});
});
... View more
09-13-2021
08:33 AM
|
1
|
7
|
6229
|
|
POST
|
Those types are not public and not recommended for users wanting to make custom widgets. We are in the process of updating the custom widget guides and providing another sample in the next couple of releases. The widget source code that is on github was only meant for users to get a better idea of how ViewModels are used, not for creating widgets or extending them.
... View more
09-11-2021
01:30 PM
|
1
|
0
|
1282
|
|
POST
|
Change your anonymous "function()" methods to arrow functions "() =>{}". The context of this isn't the same inside regular functions. You may however run into another issue. view is not in your Vue data prop. But Vue also uses JavaScript Proxy for reactive state management. This isn't compatible with our Accessor class and how we watch for property changes yet. It's on the roadmap to update in the future, but no timeline. I have a blog post here on how to use Vue and the ArcGIS JSAPI together without Vue reactive state management. https://odoe.net/blog/vue-jsapi-calcite
... View more
09-09-2021
09:52 AM
|
0
|
0
|
1892
|
|
POST
|
If you add new ArcGIS imports into modules you're testing or change them, you need to add new mocks as well. The mocks are located here. https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app/src/__mocks__/%40arcgis/core You might be able to use transformIgnorePatterns, but I couldn't get it to work with CRA. https://jestjs.io/docs/configuration#transformignorepatterns-arraystring Might need some more jest config options. It works in this angular demo, but CRA complains about some stuff. https://github.com/andygup/angular-jsapi-jest
... View more
09-08-2021
10:10 AM
|
0
|
0
|
1318
|
|
POST
|
The main popup and Popup widget are the same. Are you trying to open multiple popups? You can only have one popup open at a time. The popup can have multiple features and you can scroll through them, but only one at a time. If you need to show data from multiple features at once, you can use the Feature widget. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html This sample places it in a side panel. https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature-sidepanel/ The Feature widget can display the information from the popup template from a feature, just like a popup, but you have more control over it.
... View more
09-07-2021
12:54 PM
|
0
|
3
|
6451
|
|
POST
|
You can do this via the Popup open() method. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open view.popup.open({
features: [pointGraphic],
location: pointGraphic.geometry
});
... View more
09-07-2021
12:05 PM
|
1
|
1
|
6461
|
|
POST
|
To a FeatureLayer? No. FeatureLayers are a single geometry type, as FeatureServices only support single geometry types. GraphicsLayer can hold mixed geometry types.
... View more
09-06-2021
12:47 PM
|
1
|
0
|
1586
|
|
POST
|
What does you build set up look like? Are you using webpack or some other framework build?
... View more
09-02-2021
08:24 AM
|
0
|
1
|
3905
|
|
POST
|
Are you using applyEdits to add features to the layer or adding them via source when creating it? If that's the case, you can still use layer.queryExtent() and it will work. It's still client-side.
... View more
09-02-2021
08:22 AM
|
0
|
0
|
3728
|
|
POST
|
The LayerView only has features that are currently displayed in the browser. When you query the extent of them, it only has the information to calculate the extent of displayed features. If you need the true extent of the data source, you can use the layer.queryExtentI() method or if defined, layer.fullExtent property of the layer.
... View more
09-02-2021
08:13 AM
|
0
|
0
|
3736
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | a week ago | |
| 1 | a month ago | |
| 2 | 3 weeks ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
9 hours ago
|