Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling setWhere fires the addfeature event twice. #886

Closed
mepdr opened this issue Nov 15, 2016 · 1 comment · Fixed by #893
Closed

Calling setWhere fires the addfeature event twice. #886

mepdr opened this issue Nov 15, 2016 · 1 comment · Fixed by #893
Labels

Comments

@mepdr
Copy link

mepdr commented Nov 15, 2016

Calling setWhere results in firing the addfeature event twice. (seems related to #790)
Example: http://jsbin.com/kiripelipa/edit?html,output

  • Browser and version:

Chrome 54

  • Version of Leaflet (L.version):

1.0.1

  • Version of esri Leaflet (L.esri.VERSION):

2.0.4

@goldenlimit
Copy link
Contributor

goldenlimit commented Dec 8, 2016

Debug this issue and turns out that the problem potentially related to: https://github.com/Esri/esri-leaflet/blob/master/src/Layers/FeatureLayer/FeatureLayer.js#L122-L142

That createLayers & addLayers method fire 'addfeature' event twice and I assume that's the reason the addfeature event triggered twice @jgravois

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants