POST
|
You would listen to the edits event of the Layer you are interested in. The Editor itself will not give you this information.
... View more
6 hours ago
|
0
|
0
|
2
|
POST
|
I think this will work, you can register the OAuthInfo with the IdentityManager before the components load. <!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<title>Map components AMD template</title>
<link rel="icon" href="data:;base64,=" />
<style>
html,
body {
background-color: var(--calcite-ui-foreground-2);
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
}
</style>
<!-- Load the ArcGIS Maps SDK for JavaScript -->
<link rel="stylesheet" href="https://js.arcgis.com/4.29/esri/themes/dark/main.css" />
<script src="https://js.arcgis.com/4.29/"></script>
<!-- Load the Map Components, but defer loading -->
<script defer type="module"
src="https://js.arcgis.com/map-components/4.29/arcgis-map-components.esm.js"></script>
</head>
<body>
<arcgis-map item-id="d5dda743788a4b0688fe48f43ae7beb9">
<arcgis-expand position="top-right">
<arcgis-search></arcgis-search>
</arcgis-expand>
<arcgis-legend position="bottom-left"></arcgis-legend>
</arcgis-map>
<script>
async function load() {
const IdentityManager = await $arcgis.import(
"esri/identity/IdentityManager",
);
const OAuthInfo = await $arcgis.import("esri/identity/OAuthInfo");
// I can register my OAuthInfo here
console.log(IdentityManager, OAuthInfo);
// The custom elements are not defined yet
console.log(customElements.get("arcgis-map"));
}
load();
</script>
</body>
</html>
... View more
11 hours ago
|
1
|
0
|
16
|
POST
|
Hi @MeleKoneya1 you can add IdentityManager the same way you would with a regular ArcGIS Maps SDK app, by importing the IdentityManager and creating your OAuthInfos. The pattern for this can vary slightly depending on how you build your app. For that CDN sample, I would do an AMD require or use the $arcgis.import like in this sample https://github.com/Esri/arcgis-maps-sdk-javascript-samples-beta/blob/main/packages/coding-components/templates/amd-script-tag/index.html#L60 Note: $arcgis.import is a CDN only helper function you can use to Promisify AMD require calls. In order for this to load before the components are loaded, I would do this work in a script tag after loading the maps sdk CDN, but before the arcgis-map-components CDN. I might even place the components CDN as the last tag of the body or add a defer attribute. I haven't tried this in a single page CDN app, but one of these patterns should do the trick, if not, let us know, In a built app, with vite or maybe another framework, you could run the IdentityManager and OAuthInfo code in an entry point file and before calling the defineCustomElements() method from the arcgis/map-components. A built app is a little easier to control the order of operations then in a CDN app, but it could be done.
... View more
yesterday
|
1
|
1
|
77
|
POST
|
Could you provide a codepen, github repo, stackblitz, or codesandbox to repro case to look at. It's possible there is data on the map with empty popup template, or some logic in the app to open the popup on click, but not way to tell otherwise.
... View more
|
0
|
0
|
64
|
POST
|
There is a DirectionalPad widget, it's not in the corners though, not sure if that would meet your needs https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad.html
... View more
|
1
|
0
|
81
|
POST
|
Sogou isn't in the list of supported browsers, but according to the doc, the root in IntersectionObserver can be Element or Document, as long as it has a viewport. This might be an issue in Sogou.
... View more
a week ago
|
0
|
0
|
61
|
POST
|
If you can provide a repro sample in stackblitz or github, would have a better idea, but not able to repro this issue in samples.
... View more
2 weeks ago
|
0
|
0
|
68
|
POST
|
You can use reactiveUtils to watch for when the popup.selectedFeature changes, that should do it. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature
... View more
3 weeks ago
|
1
|
0
|
126
|
POST
|
Can you create a repo app to review. Vue version? Build tooling? Config set up? Can't tell without more details what might be the issue. Does same thing happen if you use the services or webmap in a vanilla app?
... View more
4 weeks ago
|
0
|
0
|
138
|
POST
|
The closest is the view.ready property. This doesn't necessarily mean that everything is done drawing, only that the map and layers have been loaded. Correction, layers are created, but not yet loaded. https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ready
... View more
a month ago
|
0
|
5
|
199
|
POST
|
If you make your loop async, I think you can get the behavior you're looking for. https://codepen.io/odoe/pen/MWRWwax?editors=0010 If I was doing this from scratch, I might set it up a bit different, so that the variable was a returned value and not set on each iteration, but this seems to work.
... View more
a month ago
|
1
|
1
|
240
|
POST
|
Looking at the documentation for UpdateWorkflowData it might have been renamed to "candidates" https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#candidates
... View more
02-26-2024
03:57 PM
|
1
|
1
|
254
|
POST
|
Empty is just treated like 100%. Are you importing with the .css extension in your sass file? I would import the css in your JavaScript file rather than the sass file so it doesn't try to process it.
... View more
02-26-2024
09:06 AM
|
0
|
0
|
58
|
POST
|
Looks like you are adding the features. You want to add the OBJECTID response.features[iii].attributes.OBJECTID You can see this sample here. https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featuretable-popup-interaction
... View more
02-26-2024
09:01 AM
|
1
|
0
|
50
|
Title | Kudos | Posted |
---|---|---|
1 | 11 hours ago | |
1 | yesterday | |
1 | Monday | |
1 | 3 weeks ago | |
2 | 4 weeks ago |
Online Status |
Offline
|
Date Last Visited |
3 hours ago
|