|
POST
|
I think I follow what you are saying. I updated the codepen to at least reflect what I think you are asking for: https://codepen.io/U_B_U/pen/poLMEdW?editors=1000 You need to use the immediate-click event instead of the click event to see if user clicked once or dragging the mouse.
... View more
08-30-2022
12:11 PM
|
1
|
1
|
4520
|
|
POST
|
You don't need to listen to view's click event if you are using SketchViewModel. Instead you should listen to SketchViewModel's create event. This is what the sample does. You can repurpose the sample for your needs as it uses SketchViewModel. I am not sure what you mean by select features without querying. You need to query features to highlight the features that intersect with your rectangle. That is what the sample does. In any case, you should be able to move your code that runs in response to view.click event to the SketchViewModel's create event. // Once user is done drawing a rectangle on the map
// use the rectangle to select features on the map and table
sketchViewModel.on("create", async (event) => {
if (event.state === "complete") {
// rectangle is created
// remove the rectangle and select features
}
}); Here a codepen that highlight (which you must query features that intersect your geometry/rectangle) features that intersect a rectangle and it removes the rectangle from the view once highlight is complete: https://codepen.io/U_B_U/pen/poLMEdW?editors=100
... View more
08-29-2022
04:21 PM
|
0
|
1
|
4544
|
|
POST
|
Hi there, This sample does what you are asking for: https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/ -Undral
... View more
08-29-2022
02:14 PM
|
0
|
1
|
4550
|
|
POST
|
Hi there, This guide topic explains why you are getting this error and the three ways to handle this: https://developers.arcgis.com/javascript/latest/cors/ -Undral
... View more
08-24-2022
07:47 AM
|
1
|
0
|
1722
|
|
POST
|
Hi there, We were able to reproduce the issue you reported where frames being dropped when panning a map over 100 map image layers. I will let you know once we have an update. Thanks for reporting this issue, -Undral
... View more
08-24-2022
07:43 AM
|
0
|
0
|
2589
|
|
POST
|
Hi there, It should work! It is hard to tell why it is not working without a reproducible case. In any case, I tested the following code snippet in 4.24 and it works. view.when(()=>{
const extXY = new Extent({
xmin: -9177811,
ymin: 4247000,
xmax: -9176791,
ymax: 4247784,
spatialReference: {
wkid: 102100
}
});
view.goTo({ target: extXY.expand(1.33) }, { duration: 2000 });
});
... View more
08-24-2022
07:40 AM
|
1
|
0
|
1182
|
|
POST
|
Hi there, You can set the SkethcViewModel.defaultCreateOptions.mode to freehand or can set the mode when you call create method: const sketchViewModel = new SketchViewModel({
view: view,
layer: polygonGraphicsLayer,
defaultCreateOptions: {
mode: "freehand"
}
}); Or you can do: sketchViewModel.create("rectangle", { mode: "freehand" }); Both options should work in your case.
... View more
08-22-2022
07:56 AM
|
1
|
0
|
2851
|
|
POST
|
Hi there, Are you still experiencing this issue? If so, can you please provide an info for the following questions? 1. Which version of the 4.x API are you using? 2. Have you tested it with 4.24? 3. Are you comparing the exact same set of layers in 3.x? 4. Can you please take a look at in your network request to see if the export request either GET or POST request? 5. Lastly, is it possible for you to share your app with me so we can take a look at what is happening? Thanks, -Undral
... View more
08-18-2022
04:59 PM
|
0
|
0
|
2638
|
|
POST
|
I think you are asking if it is possible to display a part of a tile layer that intersects with a given polygon geometry. If that is the case, then yes you can with the use of destination-in effect. Please take a look at the this sample as it shows what you are asking for: https://developers.arcgis.com/javascript/latest/sample-code/effect-blur-shadow/ https://developers.arcgis.com/javascript/latest/sample-code/effect-blur-shadow/
... View more
08-17-2022
08:11 AM
|
0
|
0
|
847
|
|
POST
|
Hi there, Have you seen FeatureLayer.queryTopFeatures() method SDK doc? Seems like it is what you are looking for. This sample shows how to use this method in action.
... View more
08-17-2022
07:59 AM
|
0
|
0
|
851
|
|
POST
|
This WMS service has WGS84 projection so it can only be displayed over basemaps that are in WGS84 or the MapView.spatialReference needs to be in wgs84. const layer = new WMSLayer({
url: "https://ows.terrestris.de/osm/service",
sublayers: [{
name: "OSM-WMS"
}]
});
const map = new Map({
basemap: new Basemap({
portalItem: {
id: "02b1f120c3674bfe896ac81731be1739"
}
}),
layers: [layer]
});
const view = new MapView({
container: "viewDiv",
map: map
}); Here are ArcGIS online basemaps that are in WGS84: https://www.arcgis.com/home/group.html?id=4c790318395940c18a16e8acd721de25&view=list&focus=maps-webmaps#content
... View more
08-16-2022
08:29 AM
|
1
|
0
|
3133
|
|
POST
|
Hi there, I hope I am following what you are asking here. In any case, just set the TimeSlider.stops to your desired interval steps (e.g 1 year). const timeSlider = new TimeSlider({
...
stops: {
interval: {
value: 1,
unit: "years"
}
}
});
... View more
08-16-2022
08:13 AM
|
1
|
1
|
1424
|
|
POST
|
Hi there, The maxRecordCount property needs to be set at the time of feature service publishing: https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm If you are using Query class to query features from your FeatureLayer then use the Query.num property to specify the number of features to retrieve: https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#num
... View more
08-11-2022
08:16 AM
|
0
|
1
|
1096
|
|
POST
|
Hi there, I think the map and feature services are working as expected in this case. Seems like the map service has some advanced cartographic settings that could not be translated into a feature service. So the feature service renderers have different symbols than the map service itself. The map service legend shows transparent fills here: https://hydro.nationalmap.gov/arcgis/rest/services/wbd/MapServer/legend However, if you check the service layer rest end point you can see that the simple renderer has a black fill: https://hydro.nationalmap.gov/arcgis/rest/services/wbd/MapServer/6 but the layer itself has 55% opacity. So you can set the fill color of the layer's renderer to null when the layers load in the app. You can do the following: view.whenLayerView(layer).then(()=> {
const renderer = layer.renderer;
renderer.symbol.color = null;
}); This codepen shows how it works: https://codepen.io/U_B_U/pen/OJvwYJg?editors=1000 If you have questions about why this is happening you can direct your question in this community: https://community.esri.com/t5/arcgis-enterprise/ct-p/arcgis-enterprise
... View more
08-10-2022
02:55 PM
|
1
|
0
|
1193
|
|
POST
|
Hi there, This issue will be fixed at version 4.25 which will be released in October. In meantime, you can test the fix by pointing your app to our `next` version: https://github.com/Esri/feedback-js-api-next -Undral
... View more
08-08-2022
11:43 AM
|
0
|
2
|
2948
|
| 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
|