|
POST
|
HI there, Please take your time looking at the sample code and its description. Also the SDK documents. FeatureLayerView | ArcGIS API for JavaScript 4.14 The sample I provided above does query features within one mile of cursor location as shown below. You can also adjust the function (queryStatsOnDrag) that is called from view's click event to be called whenever user searches for address. view.whenLayerView(layer).then(function(layerView) {
watchUtils.whenFalseOnce(layerView, "updating", function(val) {
// Query layer view statistics as the user clicks
// or drags the pointer across the view.
view.on(["click", "drag"], function(event) {
// disables navigation by pointer drag
event.stopPropagation();
queryStatsOnDrag(layerView, event)
.then(updateCharts)
.catch(function(error) {
if (error.name !== "AbortError") {
console.error(error);
}
});
});
});
});
// query set when user clicks on the view or drag
const query = layerView.layer.createQuery();
query.geometry = view.toMap(event); // converts the screen point to a map point
query.distance = 1; // queries all features within 1 mile of the point
query.units = "miles";
... View more
03-17-2020
11:57 AM
|
0
|
1
|
3996
|
|
POST
|
Hi there, You can achieve this by running a query by distance which does not involve geometryEngine which can be heavy to load. Please take a look at the following SDK doc and samples how to query features by distance (in essence select features by buffer). Query | ArcGIS API for JavaScript 4.14 Query statistics client-side by distance | ArcGIS API for JavaScript 4.14 -Undral
... View more
03-17-2020
08:17 AM
|
0
|
2
|
4001
|
|
POST
|
Hi there, Unfortunately, Query.groupByFieldsForStatistics does not support multiple fields on client-side layers and layerviews. We have an issue for this. I will let you know when we fix it. -Undral
... View more
03-16-2020
03:42 PM
|
0
|
0
|
1401
|
|
POST
|
Hi there, Please take a look at this simple app how to do this at 4.14.
... View more
03-16-2020
02:58 PM
|
1
|
0
|
6970
|
|
POST
|
Hi there, I want to let you know that this issue is fixed at 4.15. You can test the fix for the issue with the next version. Please let me know if you run into problems. Please use this test app to check the fix. Thanks, -Undral
... View more
02-24-2020
02:08 PM
|
2
|
0
|
8508
|
|
POST
|
Hi there, GeoJSONLayer is not a refreshable layer at 4.14. We plan on making this layer refreshable in the future release. So at 4.14, you have to recreate the GeoJSONLayer at your specified interval add it to your map. You can also set the timeInfo information on the layer whenever you initialize layer. This will help you to do time query on the layer. I created a simple test app that applies FeatureEffect to the GeoJSONLayer based on the timeExtent. In this example app, the only earthquakes features that were added will have the layer's renderer applied while the older features will have effects applied. Hope this helps, -Undral
... View more
02-24-2020
01:59 PM
|
2
|
1
|
2412
|
|
POST
|
Hi there, Are you trying to zoom and pan on the touch devices? If so then it is not possible to do so when you are creating graphics with hybrid or freehand create modes. You need to set the create mode to click as shown below and you should be able to pan and zoom in/out while creating the graphic. sketchViewModel.create("polygon", {mode: "click"}); -Undral
... View more
02-13-2020
08:52 AM
|
2
|
0
|
2400
|
|
POST
|
Hi there, You should listen to WMSLayer.update-end event for this.
... View more
02-12-2020
07:59 AM
|
1
|
0
|
1416
|
|
POST
|
Hi there, Thank you for reporting this issue. We will this issue fixed in a future release. I will let you know once we install a fix for this. Thanks, -Undral
... View more
02-07-2020
01:57 PM
|
1
|
0
|
1258
|
|
POST
|
Hi there, This test app shows how to remove highlights from several layersviews at a time. Hope this helps, -Undral
... View more
02-03-2020
11:11 AM
|
2
|
1
|
6884
|
|
POST
|
Hi there, It is working as designed. If the view is initialized with the zoom, it just start out at that zoom. It does not change to it. Hence, you will not see the view.zoom changing at the initial load. If you need to catch this initial zoom then you can use watchUtils.init() method as shown below: watchUtils.init(view, "watch", function(){
console.log("view's init zoom", view.zoom)
}); -Undral
... View more
01-30-2020
11:02 AM
|
0
|
1
|
3389
|
|
POST
|
Hi there, That is because MapView's lods are set to use ArcGIS Online tiling scheme for WKID:102100 by default. This WebTileLayer has Web Mercator (wkid:102100) spatial reference. That is why you did not have to set the LODs. For example, I updated your app to use TileLayer with Web Mercator SpatialReference. As you can see it behaves as same as your WebTileLayer. If your cached layer's spatialReference is not WebMercator then you have to do what I suggested above. Hope this makes sense, -Undral
... View more
01-29-2020
01:48 PM
|
1
|
3
|
3389
|
|
POST
|
Hi there, The MapView.constraints.lods property should be specified when no basemap is being set or when using a dynamic service for a basemap. Setting MapView.zoom is meaningless without setting LODs. You can set the LODs by by either explicitly setting the lods within this property, or create the lods via the create() method on the TileInfo class. This method is used to create a new TileInfo instance with preset properties for lods. Because you are adding a MapImageLayer with a spatialReference of 4326, you create the LODs as shown below: var view = new MapView({
container: "viewDiv",
map: map,
spatialReference: {
wkid: 4326
},
zoom: 4, // <-- initial zoom is 4
center: [15, 65],
constraints: {
lods: TileInfo.create({
spatialReference: {
wkid: 4326
}
}).lods
}
}); I also updated your test app to use this approach. Hope this helps, -Undral
... View more
01-29-2020
09:04 AM
|
1
|
2
|
3389
|
|
POST
|
Hi there, I have tested the issue you reported and confirmed that this issue no longer exists at 4.15. At 4.15, the native promises will be enabled by default. You can check the fix for this issue on our "next" version. I have updated your app to use the next version. You should see that the error is gone. Here is your updated app to use the "next" version of the api. Please let me know if this fixes your issue, -Undral
... View more
01-28-2020
02:45 PM
|
0
|
1
|
972
|
|
POST
|
Hi there, I should have checked for the map update events when the basemap is vector tile layer. I confirmed that map update events are indeed not firing for vectortilelayer basemaps. This issue will be fixed at our next release (3.32). Thank you for reporting this issue, -Undral
... View more
01-24-2020
08:18 AM
|
0
|
0
|
8830
|
| 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
|