|
POST
|
I would echo @JeffreyWilkerson comments. Spot on. With the scale dependency set in the map view, the layers won't load data, but they will send requests for details if referenced as item ids, things like title, name, basically stuff needed for layer list or other resources. I have worked with customers that have had to work with large numbers of layers in their applications and there are some methods that have helped. Group layers by theme Not all users need all layers at once, they are usually looking for certain pieces of information. You can add a button or dropdown that allows them to turn on all layers, say related to "Utility Assets" or something like that. Then you programatically add the desired layers to the map. A custom layer list/data add tool. Provide a way to let users choose the layers they want to see via your own tool so you can control when they are loaded. Dropdown or picklist type component. In both these cases, you probably have a base set of layers like parcels or boundaries always on, but you can now better control when and what layers are loaded to help alleviate the load.
... View more
06-20-2023
08:22 AM
|
1
|
1
|
2483
|
|
POST
|
That d3Layer is written for a very old version of the 3x JavaScript library. It would need to be rewritten for 4x without all the dojo modules. As far as I know, no one has undertaken this task. If you are interested, you can look at this Custom WebGL LayerView sample that shows how to extend a GraphicsLayer to create the custom LayerView. https://developers.arcgis.com/javascript/latest/sample-code/custom-gl-visuals/
... View more
06-16-2023
11:02 AM
|
2
|
1
|
1348
|
|
POST
|
GeometryEngine won't autocast your point object to a Point instance. Try creating a "new Point()" and see if that works.
... View more
06-13-2023
04:26 PM
|
0
|
1
|
1495
|
|
POST
|
It depends if you're building your app or using TypeScript and using the CDN. If using the CDN, you can do "npm install --save @types/arcgis-js-api@4.18.0" If building the app, like @AddisonShaw mentioned, if you are installing the arcgis-js-api or @arcgis/core packagers, you don't need to install the types separately.
... View more
06-13-2023
08:40 AM
|
1
|
1
|
1910
|
|
POST
|
Arbitrary object properties are not supported in GeoJSONLayer, listed under known limitations. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html Using Object as attribute value for GeoJSON features is not supported.
... View more
06-12-2023
08:03 AM
|
2
|
0
|
2765
|
|
POST
|
Adding some HTML tags directly in the content will be sanitized, like links or click events. You can work around this in your app a couple of ways, like returning a function in the content or using CustomContent. https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/using-html-with-popups-in-the-arcgis-api-for-javascript/ https://developers.arcgis.com/javascript/latest/sample-code/popup-customcontent/ https://odoe.net/blog/custom-popup-content
... View more
06-09-2023
09:57 AM
|
0
|
0
|
900
|
|
POST
|
If you just care about when the popup is closed, you don't need to capture when it's opened. You could, but it just depends on what you want to do. when(
() => view.popup?.visible,
() => {
whenOnce(() => !view.popup.visible).then(() =>
console.log("Popup closed after opened")
);
}
);
// just capture when it closes
when(
() => !view.popup?.visible,
() => console.log("Popup closed")
); https://codepen.io/odoe/pen/MWPNEyV?editors=1000
... View more
06-02-2023
08:04 AM
|
1
|
1
|
2426
|
|
POST
|
You can use the projection engine to convert the geometries. https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#project https://developers.arcgis.com/javascript/latest/sample-code/client-projection/ The only time you will automatically get the lat/long is when the spatial reference is web mercator.
... View more
05-25-2023
07:11 AM
|
0
|
0
|
718
|
|
POST
|
If you provide a reproducible sample in codepen, GitHub, or stackblitz, would have a better idea. I'm going to guess the ArcGIS css is not being loaded correctly. https://developers.arcgis.com/javascript/latest/get-started/
... View more
05-18-2023
05:31 AM
|
0
|
1
|
2428
|
|
POST
|
Do you have a repro application in codepen or stackblitz? Using your camera properties in this Sample App works, so it could be something else, maybe an issue with the scene layer and basemap. I just saw you have this other question here related to your scenelayer, so I'm going to guess it's probably related to that.
... View more
05-11-2023
07:38 AM
|
1
|
1
|
2315
|
|
POST
|
You can set "includeDefaultSources" to false. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#includeDefaultSources
... View more
05-10-2023
09:15 AM
|
0
|
0
|
2042
|
|
POST
|
I broke it. Try with latest 4.25.2 patch just updated. Note, this uses the 4.25 release of the Maps SDK. It will be updated for 4.27 at the next release as some other changes are coming as well.
... View more
05-09-2023
02:09 PM
|
0
|
0
|
882
|
|
POST
|
Edit: Beaten by Undral! You don't need to use CSS for this. You can use the listItemCreatedFunction to iterate through the items in the LayerList and determine which ones you want open by default. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction Demo https://codepen.io/odoe/pen/PoyKwyw?editors=100
... View more
04-28-2023
12:56 PM
|
2
|
0
|
2884
|
|
POST
|
The ArcGIS Maps SDK for JS doesn't support offline. There's not an official React Native SDK for ArcGIS, but some people have done stuff to create wrappers using the Runtime SDK.
... View more
04-17-2023
06:00 AM
|
0
|
0
|
1132
|
|
POST
|
You can use reactiveUtils to watch those properties. I don't really have a way to check a bad basemap, but that would be the next step to try. https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html
... View more
04-14-2023
10:48 AM
|
0
|
1
|
3130
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 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 |
a week ago
|