|
POST
|
Hi @RobStauder, Sorry for the belated reply. I logged an bug for this issue, I'll let you know once it is resolved. https://github.com/Esri/calcite-components/issues/3099 Thanks, Ben
... View more
09-23-2021
01:03 PM
|
1
|
2
|
1873
|
|
POST
|
I suggest using this sample as a starting point for your app: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/webpack If your issue is still reproducible in that sample we can take a closer look.
... View more
08-09-2021
03:01 PM
|
0
|
0
|
1590
|
|
POST
|
There are some great JavaScript and interview resources online. Here are some general computer science interview ones: https://github.com/jwasham/coding-interview-university https://github.com/yangshun/tech-interview-handbook And some specific to JavaScript interviews: https://github.com/yangshun/front-end-interview-handbook https://github.com/lydiahallie/javascript-questions https://github.com/denysdovhan/wtfjs These ones aren't specific to interviews but contain technical JavaScript concepts that may come up: https://github.com/leonardomso/33-js-concepts https://github.com/metagrover/ES6-for-humans
... View more
08-09-2021
12:12 PM
|
0
|
0
|
1833
|
|
POST
|
Here is a sample I put together: https://codepen.io/benesri/pen/dyWmRvv?editors=1001 It uses the Extent's contain method and prints true (extent contains point) or false in the console. It rechecks every time after zooming/panning.
... View more
07-28-2021
03:22 PM
|
2
|
1
|
891
|
|
POST
|
Glad I could help! This post was moved into the JavaScript section, so if you still have .NET questions I suggest posting separately in those communities as well. ArcGIS Pro SDK https://community.esri.com/t5/arcgis-pro-sdk-questions/bd-p/arcgis-pro-sdk-questionshttps://community.esri.com/t5/arcgis-pro-sdk/ct-p/arcgis-pro-sdk ArcGIS Runtime SDK for .NET https://community.esri.com/t5/arcgis-runtime-sdk-for-net-questions/bd-p/arcgis-runtime-sdk-dotnet-questions ArcObjects SDK https://community.esri.com/t5/arcobjects-sdk-questions/bd-p/arcobjects-sdk-questions
... View more
07-28-2021
10:23 AM
|
1
|
0
|
3204
|
|
POST
|
There are some great free options out there too. JavaScript https://www.codecademy.com/learn/introduction-to-javascript HTML/CSS https://www.freecodecamp.org/learn/responsive-web-design/ ArcGIS API for JavaScript https://developers.arcgis.com/javascript/latest/display-a-map/ Edit: The ones listed above are interactive and walk you through coding step by step. Udemy is great if you enjoy lectures, it really depends on an individual's learning style.
... View more
07-28-2021
09:18 AM
|
2
|
2
|
3233
|
|
POST
|
In order to load the data into the JS API it needs to be in the form of one of the layers described in this doc: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html The doc has a table that describes the capabilities of the different layers. For most of the layer options you will need to use ArcGIS Pro to publish the layer to ArcGIS Online or Enterprise. There are a few options that allow you to host a file on your own web server (CSVLayer, GeoJSONLayer, etc)
... View more
07-09-2021
10:48 AM
|
0
|
2
|
3645
|
|
POST
|
I second Andy's suggestion to use ArcGIS REST JS. Here is the API Reference for updateFeatures: https://esri.github.io/arcgis-rest-js/api/feature-layer/updateFeatures/
... View more
07-08-2021
06:57 PM
|
0
|
0
|
2478
|
|
POST
|
I got the codepen sample to work by setting type to "fields" for the fieldContent: var fieldContent = {
type: "fields",
fieldInfos: [{
fieldName: "NAME",
label: "Name",
type: "text"
}, {
fieldName: "CONDITION",
label: "Condition"
}]
} So at least we know that the functionality is possible. It does sound like an asynchronous issue which can be hard to debug, especially over a forum. Here is an article that has some recommendations for debugging asynchronous issues. Here is ArcGIS JS API specific documentation about async programming patterns. If your code is somewhere public like github I can take a closer look as well.
... View more
06-15-2021
03:02 PM
|
0
|
0
|
4453
|
|
POST
|
Before making the sample can you try adding the layer inside of the layer.when promise right after setting the popupTemplate? const fieldInfos = await this._getFieldInfo(layerRef);
layer.when(function(layer: TileLayer){
const featsSublayer: Sublayer = layer.findSublayerById(0)
featsSublayer.load();
featsSublayer.popupEnabled = true;
const fieldContent = new FieldsContent({
fieldInfos: fieldInfos
})
featsSublayer.popupTemplate = new PopupTemplate({
title: layerRef.name,
content: [fieldContent],
outFields: ["*"]
});
this._addToMap([layer]); // MOVE IT HERE
});
... View more
06-13-2021
11:43 AM
|
0
|
2
|
4480
|
|
POST
|
Glad we fixed the type errors. If you can create a simplified sample that reproduces the popup functionality I can take a closer look. Just add the layer and popup on codepen or jsbin, no typescript needed. It sounds like it may now be an asynchronous issue somewhere.
... View more
06-13-2021
11:33 AM
|
0
|
3
|
4481
|
|
POST
|
So the first snippet looks like it fixed the FieldsContent issue but there is a similar issue with the PopupTemplate. Can you try explicitly declaring the PopupTemplate class as well? const fieldInfos = await this._getFieldInfo(layerRef);
layer.when(function(layer: TileLayer){
const featsSublayer: Sublayer = layer.findSublayerById(0)
featsSublayer.load();
featsSublayer.popupEnabled = true;
const fieldContent = new FieldsContent({
fieldInfos: fieldInfos
})
featsSublayer.popupTemplate = new PopupTemplate({
title: layerRef.name,
content: [fieldContent],
outFields: ["*"]
})
});
... View more
06-11-2021
04:55 PM
|
0
|
5
|
4513
|
|
POST
|
This is likely an autocasting issue that happens occasionally when using TypeScript. I suggest explicitly declaring the FieldsContent class: https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html
... View more
06-11-2021
12:18 PM
|
0
|
7
|
4558
|
|
POST
|
You can use the Expand widget: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html
... View more
06-03-2021
12:21 PM
|
0
|
0
|
2052
|
|
POST
|
A similar question was asked and answered in this thread
... View more
06-01-2021
10:13 AM
|
0
|
0
|
872
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-22-2021 10:22 AM | |
| 1 | 01-19-2023 11:10 AM | |
| 1 | 08-30-2022 04:09 PM | |
| 2 | 08-22-2022 03:20 PM | |
| 1 | 08-22-2022 03:57 PM |
| Online Status |
Offline
|
| Date Last Visited |
02-03-2023
03:22 AM
|