POST
|
So finally i get this thing to work! The layerList with Legend was causing the slowness. Apparently, there is a bug or something that cause the slowness once you exceed a certain number of layers. I added a normal layerList widget and a legend wdget and the slowness was significantly reduced
... View more
12-16-2019
12:29 PM
|
0
|
0
|
1547
|
POST
|
Its an island webmap so it contains roads, civic features, contours, attractions, parcels etc. The heaviest is the parcel layer, but as you rightly point out, the smaller layers add up. There is no editing but we do query some of the layers. Note that the 15 layers one contains the parcels and other necessary layers. I also utilized groupLayers in the 50+ app but there weren't any significant improvements
... View more
11-13-2019
04:46 AM
|
0
|
0
|
426
|
POST
|
So... I found that the map itself is slow. I have one version with 15 layers and another with 54 layers. The 15 layer version zooms to extents in less than 1/2 sec. The 50+ layer one zooms in 4 secs. This suggests that its not necessarily the multiple layerlists that are problematic. Is there a limit on the number of layers?
... View more
11-12-2019
12:58 PM
|
0
|
2
|
1121
|
POST
|
Robert, That works. However, if i draw a polygon then select it and click delete features, it deletes the text. i have to select and delete again to delete polygon. That's why I wanted to know when delete features button click so I could do a removeAll
... View more
10-29-2019
11:40 AM
|
0
|
0
|
765
|
POST
|
Thanks Robert. Is there a way to determine when the delete feature (trash icon) is clicked? I would need this to clear all features as currently, on click doesnt clear the labels
... View more
10-29-2019
06:11 AM
|
0
|
2
|
765
|
POST
|
Is there a way to calculate and display the area of the polygon sketched?
... View more
10-23-2019
12:15 PM
|
0
|
5
|
928
|
POST
|
Hi Kristian, I have used group layers : /ADD TRANSPORTATION NETWORK GROUP LAYER var transportationNetworkGroupLayer = new GroupLayer({ title: "Transportation Network", visible: true, visibilityMode: "independent", layers: [otherRoadsLayer, townRoadsLayer, classCRoadsLayer, classBRoadsLayer, classARoadsLayer, highwayLayer, railwayLinesLayer] }); map.add(transportationNetworkGroupLayer); However, there are still alot of layers to show in one layerList. The thought was to have multiple layerlists for easier access and aesthetics.
... View more
10-09-2019
12:05 PM
|
0
|
0
|
1121
|
POST
|
Matt... They are filtered using the example here : https://community.esri.com/thread/239738-multiple-layerlists-in-web-app
... View more
10-09-2019
11:57 AM
|
0
|
0
|
1121
|
POST
|
Hi Matt, 4.13 is actually worse: 4.12 averages out at 18 secs 4.13 averages out at 24 secs
... View more
10-09-2019
05:42 AM
|
0
|
0
|
1121
|
POST
|
I have close to 50 layers in my web app. I thought, for easier access and aesthetics, i would employ multiple layerlists. However, this has made the map extremely slow. It takes upwards of 20 seconds to zoom each extent. I presume that since I have 5 layerlist with filtered layers, this essentially equates to 250 layers? How do I improve performance of the map without losing the multiple layerlists?
... View more
10-04-2019
07:22 AM
|
0
|
12
|
1825
|
POST
|
Issue resolved by putting the code outside view.when()
... View more
09-12-2019
07:58 AM
|
1
|
0
|
1581
|
POST
|
I am trying with the expand but not getting the desired result : var layerList2 = new LayerList({ view: view, container: document.createElement("div"), listItemCreatedFunction: function (event) { item = event.item; item.panel = { content: "legend" }; } }); var expandLyr = new Expand({ view: view, content: layerList2.domNode, expandTooltip: "Layers With Legend", collaseTooltip: "Layers With Legend", expandIconClass: "esri-icon-layers" }); view.ui.add(expandLyr, "bottom-right"); watchUtils.when(layerList2, 'operationalItems.length', function () { setTimeout(function () { var lis = query('li[aria-labelledby $= "__title"]', expandLyr.domNode); console.log("LIS ", lis); lis.map(function (li) { console.log(li.innerText); }); }, 0) }); Results : Notice that only subs have a innerText. How do I get around this as I need to remove these from the layerList I do not have this issue with the layerList by itself; only with Expand
... View more
09-12-2019
06:56 AM
|
0
|
1
|
1581
|
POST
|
That doesn't seems to work: //configure customer layer list for other risks var otherLayer = new LayerList({ view: view, container: "oRisk", listItemCreatedFunction: function (event) { item = event.item; item.panel = { content: "legend" }; }}); view.ui.add(otherLayer, "manual"); //workaround for making sure layerlist is ready watchUtils.when(otherLayer, 'operationalItems.length', function(){ console.log("in function"); var lis = query('li[aria-labelledby $= "__title"]', "oRisk"); console.log("LIS ", lis); lis.map(function(li) { console.log("in li ", li); } Results: Only 2 of 3 logs show
... View more
09-11-2019
07:16 AM
|
0
|
2
|
516
|
Title | Kudos | Posted |
---|---|---|
1 | 09-05-2019 11:39 AM | |
1 | 09-12-2019 07:58 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|