|
POST
|
Hi there, Would you be able to provide a simple test case for this? At the very least can you please provide the code for how you are setting up the popup template? Without a test case it is hard to say why this is happening. Thanks, -Undral
... View more
04-12-2021
01:49 PM
|
0
|
2
|
1557
|
|
POST
|
Hi there, You should use MapView.popup.close or MapView.popup.visible properties to hide visible popups on the map. Hope this helps, -Undral
... View more
04-12-2021
09:00 AM
|
1
|
0
|
1943
|
|
POST
|
Hi there, Yes it can be done with the JS API. I can think of couple of ways doing this. Others may have better suggestions. I created a very simple test app for you to show how it can be done. In this app, you can click on a state on the map, the app will filter cities that intersect with the state geometry and the state will be highlighted on the map. You can also click on Select pacific cities button. It will filter out pacific states and cities. To do this, I am using geometry engine to union pacific states then use the unioned geometry to query cities of pacific states. I also commented out a code where I was querying cities one state at a time (second approach). In the app, I used layer view queries, layer view filter and layer view highlights to show case different approaches so that you can pick and choose. All of this happens on the client side. I added the querying part just in case you need to get additional information associated with the selected/filtered features. Hope this makes sense and is helpful, -Undral
... View more
04-09-2021
04:30 PM
|
0
|
0
|
2612
|
|
POST
|
Have you deleted the objectId column from the csv file you are using for the real site? Once I deleted it the column, I started seeing the multiple items.
... View more
04-09-2021
03:39 PM
|
0
|
1
|
7725
|
|
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
|
2291
|
|
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
|
7736
|
|
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
|
2315
|
|
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
|
5476
|
|
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
|
5176
|
|
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
|
8162
|
|
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
|
1095
|
|
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
|
4500
|
|
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
|
1939
|
|
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
|
4634
|
|
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
|
4640
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2025 03:29 PM | |
| 1 | 07-09-2025 08:48 AM | |
| 2 | 07-08-2025 08:09 AM | |
| 2 | 07-07-2025 03:57 PM | |
| 1 | 06-11-2025 03:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-01-2025
08:03 AM
|