|
POST
|
This should be fixed in the "next" release for 4.21 https://www.npmjs.com/package/@arcgis/core/v/4.21.0-next.20210831 And will be in the 4.21 release too. Can you try with "next" to verify? I was hesitant to do a 4.20 patch release just for typings, sorry.
... View more
09-01-2021
08:51 AM
|
1
|
0
|
1942
|
|
POST
|
Yann, lead dev on JSAPI put these demos together a while for custom layers to show how to do contours. https://ycabon.github.io/arcgis-js-api-custom-layers/ It's a few releases behind, but might help you out. https://github.com/ycabon/arcgis-js-api-custom-layers/tree/gh-pages/cached-elevation-contour-layer
... View more
08-31-2021
04:47 PM
|
2
|
1
|
1823
|
|
POST
|
Not seeing any issues in Brave, Chrome, or Firefox. Maybe it's a browser/network related issue. I'm on Linux if that matters.
... View more
08-30-2021
05:46 PM
|
0
|
0
|
2702
|
|
POST
|
This looks like it might be an issue with the Live Server extension. https://github.com/ritwickdey/vscode-live-server/issues/249#issuecomment-497557001 I don't use it, but they provide some work arounds in their repo, maybe there is better solution there. Not related to Esri stuff.
... View more
08-30-2021
09:39 AM
|
0
|
2
|
2711
|
|
POST
|
If that's the case, you can do something like this. view.when(() => {
bgExpand.expandTooltip = `${bgExpand.label} ${basemapGallery.label}`;
}); I think this will help get you there. https://codepen.io/odoe/pen/powJRyM?editors=1000 The widget labels will change with locales, so you can update the expandTooltip from another widget. You do need to widget.watch("label", method) or wait for view.when() to get the labels.
... View more
08-26-2021
09:34 AM
|
0
|
1
|
3051
|
|
POST
|
Sorry, the locales for existing widgets are not extensible at this time.
... View more
08-26-2021
07:40 AM
|
0
|
3
|
3093
|
|
POST
|
Can you provide a demo of the map and layers used? Are there any errors in the console when printing? There's no way to tell what is happening based on what you provided.
... View more
08-26-2021
07:38 AM
|
2
|
0
|
1790
|
|
POST
|
You don't want to replace the graphics, you want to use view.graphics.addMany(graphics). Not sure if this will fix the problem you are seeing, but is something to eliminate. Another option is to try using a client-side FeatureLayer.
... View more
08-24-2021
12:47 PM
|
0
|
0
|
2221
|
|
POST
|
If I understand, in your code you have something where it looks like this maybe? function addToMap(target: MapView | Map) {
// this is what you are trying to do
// target.add(layer)
// but you need to let TypeScript know what type it should expect.
// you can do something like this, I haven't tested
if (!Boolean(target.container)) {
// should work because container is not on Map
// but is on MapView
// now TS knows what it is using
target.add(layer);
}
} That might help, if not, do have a reproducible sample of the issue.
... View more
08-24-2021
09:55 AM
|
0
|
0
|
5046
|
|
POST
|
You don't set the visibility of individual features in a layer. You can set a definitionExpression to filter our features. This will limit what data is downloaded from the service. You can also apply filters on the LayerView if you still want the features downloaded for other purposes, but just don't want them to display.
... View more
08-24-2021
09:20 AM
|
1
|
0
|
1270
|
|
POST
|
Weird, ok. The API is even simpler as you can just pass the DOM Element for the form, and the JSAPI will take care of the rest. https://codepen.io/odoe/pen/Pojobpe?editors=0010 view.when(function () {
view.on("click", function (event) {
view.hitTest(event).then((response) => {
const feature = response.results[0].graphic;
const attachmentForm = document.getElementById("uploadForm");
layer.addAttachment(feature, attachmentForm).then((result) => {
console.log("attachment added: ", result);
})
.catch(function (err) {
console.log("attachment adding failed: ", err);
});
});
});
});
... View more
08-23-2021
09:53 AM
|
1
|
1
|
3911
|
|
POST
|
That documentation has a snippet on how to convert an HTML form to FormData and use the addAttchment method. What errors do you see and do you have a sample showing the errors?
... View more
08-23-2021
07:40 AM
|
0
|
3
|
3918
|
|
POST
|
I set an override for the Location sensor in my devtools This is inside one of the features in your service.
... View more
08-19-2021
12:50 PM
|
0
|
1
|
3684
|
|
POST
|
This worked, try it out https://codepen.io/odoe/pen/eYWqdwp?editors=0010
... View more
08-19-2021
12:27 PM
|
0
|
3
|
3689
|
| 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 |
yesterday
|