|
POST
|
Hi there, FeatureLayer.definitionExpression should work. When set correctly, the app will only fetch features that meet the definitionExpression requirements. For subsequent queries or your other queries, generate your query object by calling FeatureLayer.createQuery() method as this method creates a query object that honors your layer settings.
... View more
02-25-2022
01:43 PM
|
0
|
1
|
3975
|
|
POST
|
Hi there, You can only pass in long/lat as an array of numbers for the MapView.center. But in your case, it won't work. To center your map in your coordinate system, you need to set the mapView.center to a point object in the spatial reference of your view. You can do this and it will work. const view = new MapView({
container: "viewDiv",
map: map,
center: {
type: "point",
x: 2657560,
y: 1194592,
spatialReference: {
wkid: 2056
}
},
scale: 1500000,
spatialReference: {
wkid: 2056
}
});
... View more
02-23-2022
03:57 PM
|
0
|
0
|
3060
|
|
POST
|
Hi there, We have an enhancement plan for this. However, I do not know when we will install the enhancement. In meantime, you could hide the components using css classes as shown below. Please note that this is not supported and you may run into issue. .esri-time-slider__animation,
.esri-time-slider__min,
.esri-time-slider__max,
.esri-time-slider__previous,
.esri-time-slider__next{
display: none;
}
... View more
02-23-2022
03:48 PM
|
0
|
1
|
1180
|
|
POST
|
Hi there, This cannot be done and goes for all layers. You'd have to create a new instance of GeoJSONLayer for each unique URLs.
... View more
02-23-2022
03:37 PM
|
1
|
0
|
2846
|
|
POST
|
Not sure what you mean by the service url is broken. You can do this the following to achieve what you are asking in 3.38 var tiled = new ArcGISTiledMapServiceLayer("https://wi.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer");
map.addLayer(tiled);
var vtl = new VectorTileLayer("https://www.arcgis.com/sharing/rest/content/items/a70340a048224752915ddbed9d2101a7/resources/styles/root.json");
map.addLayer(vtl);
... View more
02-23-2022
01:16 PM
|
1
|
0
|
7921
|
|
POST
|
Hi there, Looks like the issue exists when you initialize the GeoJSONLayer with geojson features that have string feature.ids. In this case, features will have string objectIds. Then you are passing in graphics without attributes and applyEdits return inconsistent and incorrect results. We created an issue for this and I will update you here once it is fixed. This issue will go away if you remove the string feature.ids from your initial geojson feed. This app shows this scenario: Or set up your geojson objects to be added via applyEdits to match the geojson objects from the initial feed. This app shows this scenario. Hope this helps, -Undral
... View more
02-23-2022
10:31 AM
|
2
|
0
|
1729
|
|
POST
|
Hi there, This item is NOT a VectorTileLayer: https://www.arcgis.com/home/item.html?id=898f58f2ee824b3c97bae0698563a4b3 If you scroll down on the description page, you will see the URL to the service: As you can see this a cached map service and you need to use TileLayer to add this your map. const tiledLayer = new TileLayer({
url: "https://wi.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"
});
... View more
02-22-2022
12:04 PM
|
0
|
0
|
7934
|
|
POST
|
Hi there, 4.17 is a quite old version of the API. Would you be able to test your app with version 4.22 since this is the latest version? Thanks
... View more
02-18-2022
07:08 AM
|
0
|
1
|
1149
|
|
POST
|
OK I see what you are saying. We will create an issue for this and will let you know once we resolve it. -Undral
... View more
02-16-2022
08:44 AM
|
0
|
0
|
1373
|
|
POST
|
Hi there, You can hide the sublayers in the layerList by setting the KMLLayer's listMode to hide-children.
... View more
02-16-2022
08:37 AM
|
0
|
0
|
1374
|
|
POST
|
Hi there, At 4.22, we added GeoJSONLayer.editingEnabled property on GeoJSONLayer and by default it is set to false. GeoJSONLayer did not editingEnabled property in previous versions of 4.21 and editing was allowed without this check. Please set the editingEnabled to true in your GeoJSONLayer constructor and it should solve the problem you are running into.
... View more
02-15-2022
08:21 AM
|
0
|
2
|
1810
|
|
POST
|
There is no difference between 2D and 3D TimeSlider. The same settings for the timeslider will work in 3D. I tried your service with timeSlider in 3D and the time slider is set up correctly. However, I could not figure out the time interval for your service. const layer = new FeatureLayer({
url: "https://services8.arcgis.com/Dxp0iiM83fijnVoI/ArcGIS/rest/services/Tree_D/FeatureServer/0"
});
const map = new Map({
basemap: "gray-vector",
layers: [layer]
});
const view = new SceneView({
map: map,
container: "viewDiv",
zoom: 18,
center: [-79.4554618, 43.643389]
});
// time slider widget initialization
const timeSlider = new TimeSlider({
container: "timeSlider",
view: view,
loop: true,
mode: "instant"
});
view.whenLayerView(layer).then((lv) => {
timeSlider.fullTimeExtent =
layer.timeInfo.fullTimeExtent;
timeSlider.stops = {
interval: {
unit: "months",
value: 3
}
};
});
... View more
02-02-2022
07:19 AM
|
1
|
0
|
3132
|
|
POST
|
Hi there, Sprites does work in 4.x. I am not sure how to reproduce the issue with code provided as it is not complete. I can take a look at it if you provide a reproducible case. Thanks,
... View more
02-02-2022
07:08 AM
|
0
|
1
|
1543
|
|
POST
|
I updated the codepen. You need to set the spatialReference of the FeatureLayer when initializing it.
... View more
02-02-2022
07:00 AM
|
0
|
0
|
2496
|
|
POST
|
Hi there, The popup order is decided by response time of layers. This is the behavior at this time. We have an enhancement to show popup results in the render order. I will update you once this is installed. I don't have any info when this will be installed.
... View more
01-28-2022
10:02 AM
|
0
|
0
|
2529
|
| 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
|