POST
|
Thanks, Robert! I forgot to mention that I was using 4.6, but once I adjust for that version, it works fine. Much appreciated!
... View more
02-09-2018
01:44 PM
|
0
|
0
|
776
|
POST
|
I have a FeatureLayer, that I would like to render using the same scheme as an existing REST service sublayer. I thought if I made a MapImageLayer based on the REST service, I could use the sublayer's renderer property. However, this property seems to be designed only for overriding the REST service, not for getting the info from the service. (The property shows up as null.) Anyone know a way of getting this info?
... View more
02-07-2018
04:52 PM
|
0
|
2
|
1175
|
POST
|
Thanks for the quick response, Thomas! I'll check out your alternate solution.
... View more
08-02-2017
12:46 PM
|
0
|
0
|
737
|
POST
|
Is there a way to get FeatureLayer to limit features to the current extent? I’m trying to use a FeatureLayer to display some features in 3D. The layer has ~180,000 features. When displaying features, FeatureLayer doesn’t seem to take the current extent into account, and tries to get everything. If I’m zoomed into a small area, this usually means that nothing is displayed, because the server just returns the first 1000 features it finds in the database (maximum # of records returned is 1000), and none of these features happen to be in the current extent! Is there a parameter I need to set? Or is this something that will be addressed in a future API version?
... View more
08-01-2017
10:43 PM
|
1
|
5
|
1614
|
POST
|
Jeff, in response to your question about how long 4.3 will stay around: ESRI seems to keep earlier versions available for a fairly indefinite time. In fact, all versions in the 4.x series are currently still available, all the way back to 4.0.
... View more
07-13-2017
04:26 PM
|
1
|
1
|
769
|
POST
|
Will it be another 3 months before the next release? Or is there a fairly easy workaround in the meantime? I am also having the same issue. This seems like a serious issue that ought to be corrected quickly. I will also have to stay with 4.3 until this is resolved.
... View more
07-11-2017
01:50 PM
|
0
|
0
|
769
|
POST
|
Thank you, Undral. Actually, I had already tried using view.then. Unfortunately, the LayerList hasn't actually loaded yet at the time of the view load event, or at least it hasn't updated with all the layer info. For some context, what I'm trying to do is to have all the nodes of the LayerList expanded at startup. I'm using the following function to do this: function layerList_ExpandAll(expand) {
var ctSpans = document.getElementsByClassName("esri-layer-list__child-toggle");
for (var i = 0; i < ctSpans.length; i++)
ctSpans[i]["data-item"].open = expand;
} When the LayerList is fully loaded, there will be at least one item in ctSpans. However, when called in view.then, these elements haven't been created yet, so the function doesn't work. As a temporary fix, I'm applying the function on extent changes. This works fine, but the user has to pan or zoom before the LayerList expands. .
... View more
07-09-2017
02:12 PM
|
0
|
1
|
680
|
POST
|
Hi Lori, thanks for passing this on, it was helpful! I've found a simpler way to do this, which involves setting one object in the "esri-layer-list__child-toggle" elements. It's called "data-item", which has a property called "open". Set this to true. The LayerList widget responds to this in the background. Here is my sample code: function layerList_ExpandAll(expand) {
var ctSpans = document.getElementsByClassName("esri-layer-list__child-toggle");
for (var i = 0; i < ctSpans.length; i++)
ctSpans[i]["data-item"].open = expand;
} Calling layerList_ExpandAll(true) expands all layers and layerList_ExpandAll(false) collapses all layers.
... View more
06-26-2017
02:16 PM
|
2
|
2
|
1395
|
POST
|
I would like to run some code after a LayerList has loaded, in version 4.3. In 3.2, there is a load event, however 4.3 doesn't seem to have this. LayerList doesn't seem to implement promises, so .then() is not available. And I couldn't find a property I can watch. Is there a way to do this?
... View more
06-26-2017
01:46 PM
|
1
|
3
|
1341
|
POST
|
Thanks! I was thinking of doing it through CSS, but was having trouble figuring out the class name. I didn't know about right click + inspect. That's a great trick, much appreciated!
... View more
06-21-2017
05:14 PM
|
0
|
0
|
506
|
POST
|
I would like to make a widget - such as LayerList or Legend - partly transparent. Is there a way to do this in API 4.3?
... View more
06-21-2017
03:34 PM
|
0
|
2
|
813
|
POST
|
So my problem is actually a little different from Mathew's. If the point feature is close to the edge of the display so that the popup in its original position extends beyond the display, the map pans to fit the popup. I want to keep the original map extent, and move the popup to fit the current extent. (If it makes a difference, the popup is triggered by a mouseover rather than a mouse click, using MapView.hitTest) I tried watching the view.popup.visible property and using the reposition method in the callback, but that didn't work. Question: Will the callback function for view.popup.visible come up before the map extent changes? Alternatively, is there some other setting I can use to prevent the map extent from changing? Thanks.
... View more
04-28-2017
12:56 PM
|
0
|
0
|
1221
|
POST
|
Can you give an example for how to do the same in 4.3? There doesn't seem to be a "show" event for the 4.3 Popup class. Is this accessed in a different way?
... View more
04-25-2017
07:22 PM
|
0
|
2
|
1221
|
POST
|
Ah, that's a much better way. Thank you! I wouldn't have thought of looking under Layer properties rather than LayerList for that.
... View more
04-20-2017
02:10 PM
|
0
|
0
|
2473
|
Title | Kudos | Posted |
---|---|---|
1 | 08-01-2017 10:43 PM | |
1 | 07-13-2017 04:26 PM | |
1 | 06-26-2017 01:46 PM | |
2 | 06-26-2017 02:16 PM |
Online Status |
Offline
|
Date Last Visited |
06-29-2022
10:10 PM
|