setWhere callback is not called
See original GitHub issueChanging the where condition on a newly created layer doesn’t let the callback to be executed.
var layer = L.esri.featureLayer({
url: "link",
where: "1=1",
});
layer.addTo(map);
layer.setWhere("1=2", function(){
console.log("callback called");
});
The callback is correctly executed if the setWhere is executed after a few seconds.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
setWhere callback is not called · Issue #132 - GitHub
While the callback is correctly executed if the setWhere is executed after a few seconds. Looking at the code, this seems to happen...
Read more >Callback function "is not defined" - javascript - Stack Overflow
The JSONP/callback system all depends on your code having already defined the callbackFunctionName function, so there's something to be called.
Read more >Failed to fetch from ssh://<repo_url>: authentication required ...
Failed to fetch from ssh://<repo_url>: authentication required but no callback set. When I try "Fetch from origin" on a branch, ...
Read more >Oraclize callback is not called with more data in it
When I try to add functionality inside of callback, callback is not called, but when I delete functionality callback works without problem.
Read more >setwhere on the mboset got by relationship does not work - IBM
Here userinfo can be obtained from multiple ways from MXServer or from MboSet. this will not require a call to reset(). attribute =...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve been able to see this happening, too, at esri-leaflet v2.2.3, described more or less the by the title of #780. One way to repro (and thanks for the idea, @gavinr) is to slow down network traffic speeds with the browser dev tools.
1=1
) and the filtered subset of featuresI think this had to do with network request race conditions prior to v2.4.0. Let’s be sure to look at this issue while investigating #1196.