|
POST
|
TypeScript doesn't like autocasting used in constructors. You can make it work by specifying new SimpleMarkerSymbol() and new Point() in your code.
... View more
04-30-2021
08:52 AM
|
0
|
0
|
9000
|
|
POST
|
Sounds like what you want to use a StreamLayer. Normally this data would be in a GeoEvent server, but the StreamLayer does support a custom web socket service. It's designed specifically for fast updates like this.
... View more
04-30-2021
08:19 AM
|
1
|
0
|
1373
|
|
POST
|
What does the symbols for your graphics look like? If you are using rgba values for the color, that will add transparency to those graphics on the map.
... View more
04-29-2021
08:16 AM
|
0
|
1
|
1057
|
|
POST
|
add an attribute to your graphic, even if it's an empty object, that might fix it. new Graphic({attributes: {}, geometry});
... View more
04-28-2021
02:00 PM
|
0
|
2
|
3635
|
|
POST
|
You can uninstall the typings and you don't need to reference them in the tsconfig files. The tsconfig in the TypeScript guide is a good reference https://developers.arcgis.com/javascript/latest/typescript-setup/#tsconfig Although it assumes you are using the CDN and need the typings, but still no reference to them in the tsconfig. The same goes for building an app with webpack as well. https://github.com/Esri/arcgis-js-cli/blob/master/templates/webpack/app/tsconfig.json
... View more
04-28-2021
09:24 AM
|
0
|
0
|
3960
|
|
POST
|
Do you have a sample project to repro this with? I tried locally and not seeing this issue. I checked against the CDN as well and that works too. https://codepen.io/odoe/pen/bGgJPRz?editors=0010
... View more
04-28-2021
09:16 AM
|
0
|
1
|
1619
|
|
POST
|
There's a sample in the SDK for Viewshed analysis. https://developers.arcgis.com/javascript/latest/sample-code/geoprocessing-viewshed/
... View more
04-28-2021
07:40 AM
|
0
|
1
|
1577
|
|
POST
|
When using the npm packages for @arcgis/core or arcgis-js-api, you don't need to install the typings separately. They packages already include them. As for the second error, tough to debug without a repro sample to look at. Could be an issue that the element you're using for the map container isn't ready or something else.
... View more
04-28-2021
07:37 AM
|
0
|
0
|
3967
|
|
POST
|
Ok, so slight correction here. This isn't technically supported for visualization, as "cluster_count" is really used for labels and popups, but try this out and we'd love feedback on how well it works or any issues you might find with it. There is an existing idea to provide an API for rendering clusters, so feedback would be welcome there too. We're currently looking at how to best support this in the future.
... View more
04-27-2021
10:44 AM
|
1
|
2
|
4119
|
|
POST
|
Clustered features have a field called "cluster_count" that you can use for visualizations. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html This sample colors clusters based on a TEMP field, but you could change it to "cluster_count" to do it by count. Same for other types of visualizations.
... View more
04-27-2021
08:06 AM
|
0
|
3
|
4132
|
|
POST
|
I've seen this happen if you don't have the CSS for the ArcGIS JSAPI included in your application.
... View more
04-26-2021
08:36 AM
|
2
|
2
|
5370
|
|
POST
|
You might have better luck making an issue on the github repo for this project. https://github.com/Esri/arcgis-rest-js
... View more
04-26-2021
08:34 AM
|
0
|
3
|
2760
|
|
POST
|
The syntax would look like this. import { load, project } from '@arcgis/core/geometry/projection'; You could import the entire module like this. import * as projection from '@arcgis/core/geometry/projection'; However this will load all the methods of projection, even if you don't use them. It's a minimal impact on built javascript, but the first way allows build tools to only include code you use.
... View more
04-26-2021
08:31 AM
|
1
|
1
|
2827
|
|
POST
|
There's nothing in the JSAPI to help with this. There's identity tools for ArcGIS services, hosted and enterprise, but not client encryption. This use case is a little unusual. A case like this is usually handled by proving an API between your postgres and clients. The API can have it's own authentication or a referrer whitelist. But you'd need to manage this yourself in the client side app with JWT or other authentication scheme. But again, these are custom auth workflows outside the scope of the javascript api. Alternatively, you could have a periodic script export from your db to ArcGIS online, publish or update geojson to a featureservice and use ArcGIS auth in your app. Lots of fun options.
... View more
04-24-2021
11:45 AM
|
0
|
1
|
1986
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 2 weeks ago | |
| 1 | 07-17-2026 10:17 AM | |
| 2 | 07-22-2026 11:24 AM | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|