Daniel
Daniel
Thanks, that looks like a likely source. Next time I'm putting some work in on EasyButton, i'll look into it.
I can't put time into new features right now, but I'd be open to accepting patches :+1:
I'd probably create an empty `div` for the third state and update it as you would with any other dom element ``` const _this = this this.searchInArea = this.$leaflet.easyButton({ states:...
Ah, I see. The icon element is created when you initialize the easyButton, but `document.getElementById` will only find elements that are attached to the document. What framework/library handles the `watch`...
That's odd. On [line 316](https://github.com/CliffCloud/Leaflet.EasyButton/blob/730511be0a96fd9d1c3f7351c4f74de05018e10c/src/easy-button.js#L316), `apply` is called on `Function.prototype.bind`, which is vanilla ES5 ([compatibility tables](http://kangax.github.io/compat-table/es5/#test-Function.prototype.bind) and [caniuse](http://caniuse.com/#feat=es5)). Are you running IE8 by any chance? First, try two things: -...
This is pretty odd. sometime this week i'll take a closer look with specific attention to prototype. Have you had any luck in finding a workaround?
Try using `L.Control.EasyButton` instead of `L.EasyButton`. As an extension of `L.Control`, `EasyButton` is nested under that instead of directly under `L`. The factories are at the root just for convenience....
[the docs](http://danielmontague.com/projects/easyButton.js/v1/examples/#font-awesome-star), and the [readme](https://github.com/CliffCloud/Leaflet.EasyButton/blob/master/README.md#hello-world) both have examples that should work for you. is your question related to this thread?
thanks for the extra detail, I'll fix this at the beginning of next week!
To the devs: from an outside perspective this issue (still open and discussing the in-pod repl) looks like support isn't here yet; perhaps there are still aspects that are unsupported?...