POST
|
Hello, I have a layer list with dragEnabled set to true. This is a nice feature but one of my apps I would like to lock this down so that users can't drag children of a group layer outside of the group layer. Is this possible? If not could, I would like to request this feature be added.
... View more
01-01-2025
12:49 PM
|
0
|
2
|
263
|
POST
|
I see the flickering in the first codepen (ESM), but not in the second codepen (AMD modules).
... View more
07-19-2024
11:38 AM
|
1
|
0
|
2138
|
POST
|
Thank you for looking into this. I have a react app that I updated to 4.30 and it doesn't have the issue.
... View more
07-19-2024
07:11 AM
|
0
|
0
|
2154
|
POST
|
I'm using sveltekit and arcgis js api v4.30. The legend is flickering whenever a new layer is added (see gif below). This wasn't an issue in v4.28. Any ideas on how to fix this? Below is a repository with an example of the issue. To test: clone that repo, run "npm install", run "npm run dev", open http://localhost:5173/ in your browser, click the "Add Layer" button several times to see the flicker. https://github.com/cschwinderg/svelte-legend-flicker
... View more
07-18-2024
02:30 PM
|
0
|
9
|
2225
|
POST
|
Is there a way to have the rectangle and lasso selection tools show up in 3D? They show up in 2D and work fine, but they are hidden in 3D. I created a couple of codepens to illustrate the issue. The code is exactly the same except the 3D codepen uses SceneView instead of MapView. https://codepen.io/cschwind/pen/KKGvwrm - 2D works as expected https://codepen.io/cschwind/pen/VwEzYxg - 3D selection tools not visible
... View more
04-28-2023
01:02 PM
|
0
|
2
|
680
|
POST
|
I'm having issues with highlighting features on a FeatureLayer that is clustered. The problem that I am seeing is the highlighting only works if the feature is on the top of the cluster. Below is a link to a codepen that demonstrates the issue. When you mouse over items in the list view, on the right, you should see the associated feature on the map be highlighted. With the "Enable Clustering" checkbox on only the graphics on the top of the cluster are highlighted, so if the clustering results in two clusters on the map then the highlighting will only work for two items in the list. With the "Enable Clustering" checkbox off then the highlighting works for all items in the list. Is there some workaround for this? I was originally thinking of querying the feature layer to get the cluster graphics and highlight the cluster graphic if it is associated with the feature the user is hovering over. Unfortunately, the `featureLayer.queryFeatures()` and `featureLayerView.queryFeatures()` functions do not return the cluster graphics. Is there some other way that I can just get the clustered graphics? https://codepen.io/cschwind/pen/gOvXvZJ?editors=1000
... View more
05-31-2022
02:21 PM
|
0
|
0
|
463
|
POST
|
I wrote some JavaScript code to save a client side feature layer to a feature service on ArcGIS Online. I'm running into an issue where if I navigate to the layer from ArcGIS Online, it overwrites my minScale and maxScale values. This causes my graphics to not always show up when the map viewer loads or the graphics disappear if the user zooms in (most graphics are on a building level of scale). I want the minScale and maxScale values set to 0, so the graphics are always visible and the user doesn't have to change the visibility range. I'm using the addToDefinition REST service (Add to Definition (Feature Service)—ArcGIS REST API: Services Directory | ArcGIS for Developers) for saving the layer to the feature service. When I make this call I'm setting the maxScale and minScale to 0. I've included the JSON that I'm passing in to the addToDefinition call below. If I navigate to the layer via a url formatted like https://services5.arcgis.com/<owner id>/arcgis/rest/services/<feature server name>/FeatureServer/<layer id>?token=<token>, I can see that minScale and maxScale are 0 as expected. If I navigate to the layer through ArcGIS Online, the minScale and maxScale get overwritten. The screenshot below shows that an updateDefinition call is being made on my layer, which sets the maxScale to 564 and the minScale to 4514. I have noticed that I can make a updateDefinition (Update Definition (Feature Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers ) call to the layer and reset minScale and maxScale back to 0. I have noticed that if I visit ArcGIS Online and then make the call to updateDefinition, my minScale and maxScale values will stay 0. So it seems like I'm missing some setting on the layer, that triggers ArcGIS online to update minScale and maxScale. Is there a setting that I can set in the addToDefinition call (or elsewhere) that will prevent ArcGIS Online from overwriting my minScale and maxScale settings? addToDefinition: { "layers": [{ "type": "Feature Layer", "editFieldsInfo": { "creationDateField": "CreationDate", "creatorField": "Creator", "editDateField": "EditDate", "editorField": "Editor" }, "editingInfo": { "lastEditDate": 1455126059440 }, "geometryType": "esriGeometryPolygon", "maxScale": 0, "allowGeometryUpdates": true, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeNone", "hasM": false, "hasZ": false, "objectIdField": "OBJECTID", "globalIdField": "GlobalID", "fields": [{ "name": "OBJECTID", "type": "esriFieldTypeOID", "actualType": "int", "alias": "OBJECTID", "sqlType": "sqlTypeInteger", "length": 4, "nullable": false, "editable": false, "domain": null, "defaultValue": null }, { "name": "PERMANENT_IDENTIFIER", "type": "esriFieldTypeGUID", "alias": "PERMANENT_IDENTIFIER", "sqlType": "sqlTypeOther", "length": 38, "nullable": false, "editable": true, "domain": null, "defaultValue": "NEWID() WITH VALUES" }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "sqlType": "sqlTypeOther", "length": 38, "nullable": false, "editable": false, "domain": null, "defaultValue": "NEWID() WITH VALUES" } ], "supportedQueryFormats": "JSON", "hasStaticData": false, "maxRecordCount": 1000, "standardMaxRecordCount": 4000, "tileMaxRecordCount": 4000, "maxRecordCountFactor": 1, "capabilities": "Create,Delete,Query,Update,Editing,Extract,Sync", "exceedsLimitFactor": 1, "name": "Scenario18_Testing", "description": "jklj", "extent": { "spatialReference": { "latestWkid": 3857, "wkid": 102100 }, "xmin": -8815056.763641614, "ymin": 4604215.222325314, "xmax": -8815041.647920694, "ymax": 4604232.558750913 }, "minScale": 0 } ] }
... View more
04-07-2020
12:42 PM
|
0
|
0
|
870
|
POST
|
I was able to get the KML file import working, using this method. Some of my KMLs are more complex, but I think I can use the results from https://utility.arcgis.com/sharing/kml to get what I need that is missing from the kml to geoJSON conversion. Thank you!
... View more
01-09-2020
07:47 AM
|
1
|
0
|
4844
|
POST
|
Unfortunately, I don't have a back-end that I can add to.
... View more
01-08-2020
04:55 AM
|
0
|
0
|
4844
|
POST
|
I can directly call the https://utility.arcgis.com/sharing/kml web service with the contents of the file that I loaded in, but I don't see any way to make a KMLLayer from the response. When I do this I get the following response: The last post in Is it possible to load KML from a file? shows how to create the KMLLayer from the above response in the 3.X api, but the KMLLayer in 4.X doesn't have the parameters necessary to use this method.
... View more
01-07-2020
06:41 AM
|
0
|
2
|
4844
|
POST
|
I just tried using URL.createObjectURL, but the https://utility.arcgis.com/sharing/kml?url=<generatedUrl> web service ,that is called when the KMLLayer is initialized, immediately returns an "Invalid URL" error. The url that is generated looks like "blob:http://mysite.com/56f7c728-05d6-4fb1-8a4e-0e76714ca57c". If I remove the "blob:" part of the url, then the https://utility.arcgis.com/sharing/kml service will spin for a while and eventually return a "File not found. Wrong url or out of memory" error. It looks like the web service that supports the KMLLayer rejects any url with something before "http".
... View more
01-07-2020
06:25 AM
|
0
|
3
|
4844
|
POST
|
Hi Egge-Jan Pollé, The sample shows how to load a KMLLayer using a url. Is there a way to display a KMLLayer from local files on the user's machine in 4.x? In my app, I've added the ability for a user to select local files and have them displayed on the map.
... View more
01-06-2020
06:47 AM
|
1
|
5
|
4844
|
Title | Kudos | Posted |
---|---|---|
1 | 01-02-2025 06:13 AM | |
1 | 07-19-2024 11:38 AM | |
1 | 01-06-2020 06:47 AM | |
1 | 01-09-2020 07:47 AM |
Online Status |
Offline
|
Date Last Visited |
04-23-2025
08:30 AM
|