IDEA
|
The last few days, I have been copying layers and I found the current workflow quite slow. First, you have to copy the layer. Second, you have to scroll to the top of the target data frame, right-click on it, and select Paste. Finally, you have to drag the copied layer to where you want it. The scrolling up is a little slow, but the dragging down is very slow if you have a lot of layers. My idea is that after you copy a layer, you would right-click on another layer and there would be an option to Insert Copied Layer. This would imitate Excel. Another alternative would be to have two options, namely Paste Above and Paste Below. The UX experts can figure the details out. My idea is largely just to be able to go to where you want to paste the layer and paste it right there. This is especially relevant when you just want to copy and paste a layer right above or below itself.
... View more
02-09-2022
04:36 PM
|
1
|
1
|
354
|
POST
|
Eventually, I decided that the best solution was just to host the JS 3.x API internally and remove the offending call to clearSelection. That fixed the issue. I still don't know why there is a need to clear a layer the first time it is drawn.
... View more
02-09-2022
04:17 PM
|
0
|
0
|
330
|
POST
|
I'm running into some issues trying to customize the Search widget. The use case is as follows. Refresh the app and open it to the initial extent. Have layers that are not visible at the initial extent. Select features from the invisible layers. Zoom to the selected features. It appears that what is happening is that when you zoom to the selected features, it causes the hidden layers to draw for the first time. This calls resume on the layers, which appears to clear any selections on the layer if it is the first time resume has been called. This basically clears out the selection from step 3. I found similar behavior in the Attribute Table widget. If you double-click on a feature that is not visible, it will zoom to it. If it is the first time that the given layer has been displayed, the zoom ends up clearing the selection. You can see it in how the blue color in the row disappears. If you double-click it again, the blue color stays. The issue is the same with my Search widget. It is only an issue the first time the layer is displayed. After that, it works correctly. Any ideas?
... View more
02-04-2022
01:36 PM
|
0
|
1
|
376
|
POST
|
I have been using the LayerInfos object to write a class that makes it easier to query related records without having to hard code relationship IDs. The reason I like it is because I can access the table feature layers. Is there a way to do this without using LayerInfos? I want to know how to access the tables in a map using just the JS 3.x API. I looked around and found nothing, so I ended up with LayerInfos.
... View more
01-27-2022
11:30 AM
|
0
|
0
|
125
|
POST
|
Does anyone know how LayerInfos relates to adding layers? Can it be used to add a layer? I tried adding a layer with map.addLayer and I noticed two things. First, LayerInfos.getLayerInfoArray() returned the operational layers in the map from top to bottom, whereas the map.basemapLayerIds, map.layerIds, and map.graphicLayerIds all list the layers from bottom to top. Second, after I added a new layer getLayerInfoArray returned the same results. Is it static after the map loads or is there a way to make it update? I noticed an addTable method, but I didn't see an addLayer method. I just want to know if there is a proper way to use LayerInfos to dynamically add, access, and move layers and tables around the map.
... View more
01-27-2022
11:25 AM
|
0
|
0
|
121
|
POST
|
I'm using the ArcGIS API for JavaScript v. 3.x and I want to us the map.addLayer(layer, index) function, however, the documentation is fairly weak. From my experience, I believe it is the index from bottom to top of the layer in all operational layers. However, I don't see a good function to retrieve the index of a layer. Since I am programmatically inserting layers into the map and since I have a large number of layers, I need to be able to look up a layer by its ID and get its index. Is there anything OOTB for this? Also, is the index for all operational layers or just within map.layerIds or map.graphicsLayerIds? I notice it's easier to handle in the 4.x API, so I am guessing this is a weakness in the API or my knowledge. https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#addlayer addLayer(layer, index?)
... View more
01-26-2022
02:11 PM
|
0
|
0
|
610
|
IDEA
|
I am using the 3.X API and I would like to have the ability to set different scale ranges for selected features versus unselected features. For example, we have 26,000 manholes in our service area. Normally, the manholes turn off when you zoom out for performance reasons. However, if I select a hundred or so manholes and I zoom out to our service area, I would like to see the selected features, even if the unselected features are not visible. Obviously, this might create some weird behavior elsewhere, but the idea is that it would be beneficial to see where the selection is in our service area.
... View more
01-25-2022
02:48 PM
|
0
|
0
|
401
|
IDEA
|
I am working with the 3.X API right now and I found it would be beneficial if I could apply a renderer to the selected features. We have complex sewer asset symbology and it would be nice if the selected symbols were similar, but had different properties to show they are selected. I just don't want to collapse our symbology down to one symbol when we make a selection. Also, I would like to do this as part of the feature layer behavior, not with separate graphics layers.
... View more
01-25-2022
02:40 PM
|
0
|
2
|
585
|
POST
|
Also, are you implying that the features returned from getSelectedFeatures can be mutated and the map will update?
... View more
01-25-2022
09:25 AM
|
0
|
0
|
578
|
POST
|
Hi Noah, This is for some custom widgets. I want to select features in a layer. This layer has scale dependencies. I want to highlight the selected features at all scales using a separate graphics layer. At the scales where the layer is visible, I want the selected features in the layer to display normally. I still want the layer to have and store the selection. However, I don't want the layer being selected to change its display at all.
... View more
01-25-2022
09:18 AM
|
0
|
0
|
578
|
POST
|
Good Morning, Is there a way to force selections on feature layers to use the standard renderer instead of a different selection symbol? I just want the selected features to display as usual with no modification. Thanks, Nathan
... View more
01-24-2022
10:37 AM
|
0
|
3
|
595
|
POST
|
I am trying to find a way to perform selections on a feature layer using any method, but have the selection symbol show up at all scales, instead of just the scales at which the layer is visible. The reason is that there are too many features in general to display the layers when zoomed out, but it is important to display all selected records even if the performance is slow. I'm thinking this might require a graphics layer or another feature layer with different scale dependencies. If I were to create layers just for displaying the selection symbols, would it be possible to only display selected records and hide unselected records. Thanks, Nathan
... View more
01-13-2022
12:25 PM
|
0
|
0
|
201
|
POST
|
Good Morning, It's nice to see the problem I have been having for a long-time is an ArcGIS Online issue. I am getting a timeout error with a few thousand point features using the addFeatures endpoint. It seems like it happens 20% of the time. Nathan
... View more
11-24-2021
09:26 AM
|
0
|
1
|
2749
|
POST
|
I just got an email touting the new features of ArcGIS Enterprise 10.9.1. It says that the new Map Viewer is now incorporated into ArcGIS Enterprise. I played with the new Map Viewer a few months ago and it wasn't great for some of my older applications, but I thought it would be extremely valuable on a new application we're building in Web AppBuilder. What I liked were the popups that supported a stacked column of information. We were already planning on implementing something vary similar using JavaScript, but I thought this would save us on customization. My question is do these stacked column popups that you can create in the new Map Viewer required the 4.X JS API to display or can they be displayed in Web AppBuilder using the 3.X JS API. Happy Thanksgiving! Nathan
... View more
11-24-2021
09:03 AM
|
0
|
1
|
375
|
Title | Kudos | Posted |
---|---|---|
1 | 03-08-2024 09:34 AM | |
1 | 10-27-2023 12:17 PM | |
2 | 08-30-2023 01:37 PM | |
1 | 10-11-2023 02:01 PM | |
2 | 08-30-2023 06:23 PM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|