POST
|
Hi Maggie, You can use pixelFilter to colorize each pixel. Please call redraw method on ImageryLayer to redraw the layer if the pixelFilter is updated at runtime. Please take a look at this example. Will this work for you?
... View more
04-09-2021
01:23 PM
|
0
|
1
|
708
|
POST
|
Hi Don, OK I looked at your app and thank you for the simple reproducible case. I had to recruit couple my coworkers to figure why it wasn't working especially the first one. I would have never caught it. 😀 So there are couple of issues in the app. First issue is the following. Notice that outfields has lower case f. You need to change it to outFields. const template_dot = new PopupTemplate({
title: "Site {SiteName}",
outfields: ["*"],
content: ...
}); That still did not solve the problem. I narrowed this down to a data issue. CSV file has a field called __ObjectId. This is causing the same issue as the above. To workaround this issue, please rename this field to Id or just remove it. CSVLayer assign objectID to your features. I have created an issue for this. Will let you know once we fix it. Here is your app in a codepen and is working expected now. Please do not hesitate to reach out to me if you have more questions. -Undral
... View more
04-09-2021
11:10 AM
|
0
|
1
|
3524
|
POST
|
Hi there, You can render ImageryLayer on the client-side using renderer or pixelFilter properties provided that you requested the images in lerc format. In the overview section of ImageryLayer class you will see a section of different ways of rendering ImageryLayer. The doc also explains when and how you can render your imagery on the client side. The following samples show you how interact with ImageryLayer on the client side. Client-side rendering rules Client-side pixelFilter Client-side charting for ImageryLayer Hope this helps, -Undral
... View more
04-08-2021
10:51 AM
|
0
|
3
|
732
|
POST
|
Hi there, I am able to reproduce the issue and thanks for reporting this issue. In meantime, at 4.18, you can use Polygon.fromExtent method to workaround this issue. I have updated your test app use this method and the results are returned as expected. I will update you once we have a fix for this issue. Hope this helps, Undral
... View more
04-06-2021
03:47 PM
|
0
|
1
|
1200
|
POST
|
Hi there, Can you please test your app with JS API version 4.18? Is it working as expected? Thanks, -Undral
... View more
04-01-2021
09:02 AM
|
0
|
0
|
3068
|
POST
|
Hi there, I am writing to let you know that this issue issue is addressed at 4.18. -Undral
... View more
04-01-2021
09:00 AM
|
0
|
0
|
4007
|
POST
|
Hi there, That is the current behavior of popup. We are working on changing this behavior so that popup is only displayed for visible features. I will update you once it is implemented. -Undral
... View more
03-31-2021
09:13 AM
|
0
|
0
|
489
|
POST
|
Hi there, You can do couple of things. If you are using JS API version 4.18, then you can take advantage of FeatureLayer.customParameters property as it was introduced for cases like this one. You can do this: var layer = new FeatureLayer({
url: serviceUrl,
customParameters: {
"token": yourToken
}
}); If you are using a version older than 4.18, then you can use interceptors to modify the request before it is sent. You can do this: const interceptor = {
urls: [
"url to the service",
],
before({ url, requestOptions }) {
requestOptions.query.token = "yourTOKEN";
},
after({ data, url, requestOptions }) {
console.log("after", data, url, requestOptions);
}
};
esriConfig.request.interceptors.push(interceptor);
const layer = new FeatureLayer({
url: "service url"
}); Hope this helps, -Undral
... View more
03-31-2021
09:05 AM
|
4
|
5
|
2152
|
POST
|
Hi there, This issue will be fixed at 4.19. You can already test the fix using our `next` version. You can use this test app to see the fix. Please let me know if you run into issues. Thanks, -Undral
... View more
03-16-2021
06:23 PM
|
0
|
0
|
754
|
POST
|
Try setting the polygon geometry's spatialReference. By default, the Graphic's spatialReference is WGS84. You may also have to check if your polygon is a simple polygon. If it is not then you have to simplify it. Here is a simple test app that add polygon from points. https://codepen.io/U_B_U/pen/JjbaoqR?editors=100 Hope this helps,
... View more
03-05-2021
12:50 PM
|
0
|
7
|
1831
|
POST
|
Hi there, Looks like you are assigning SimpleLineSymbol to a polygon graphic. You should assign SimpleFillSymbol to your polygon graphic.
... View more
03-05-2021
08:15 AM
|
0
|
9
|
1837
|
POST
|
Hi there, This feature is not supported at 4x at the moment. But we are planning to support for it in a near future. I will be sure to update you once it is supported. Thanks, -Undral
... View more
02-25-2021
08:29 AM
|
0
|
1
|
1100
|
POST
|
Hi there, John's suggestion is spot on. You have to replace the entire symbol or clone it when you are updating the Graphic's symbol. It was working at 4.17 by "accident". In any case, I will update the Graphic.symbol document to indicate that needs to be cloned and reassigned to the graphic. -Undral
... View more
02-23-2021
11:14 AM
|
1
|
0
|
1020
|
POST
|
Hi there, I updated your app and added SketchViewModel and geometryEngine to create a circle with 5km radius with a transparent style. This should get you started. This sample shows how to use SketchViewModel and geometryEngine to resize circle on the fly. Hope this helps, -Undral
... View more
02-17-2021
10:17 AM
|
1
|
0
|
1239
|
POST
|
Hi there, I can reproduce the issue and created an issue for it. I will update you here as soon as we get it fixed. -Undral
... View more
02-16-2021
09:58 AM
|
0
|
0
|
877
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 2 weeks ago | |
1 | 2 weeks ago | |
2 | 2 weeks ago | |
1 | 2 weeks ago |
Online Status |
Offline
|
Date Last Visited |
yesterday
|