Closed McBen closed 5 years ago
Do you know any real plugin using this function?
P.S.
The issue is known https://github.com/IITC-CE/ingress-intel-total-conversion/issues/163#issuecomment-482785398, but I am going to refactor the whole layerChooser
, in order to get rid of all these supplementary functions (still keeping stubs for compatibility).
Do you know any real plugin using this function?
My private build. I already replaced that code for myself but maybe other authors will face the same problem.
Function is working in iitc but broken in iitc-ce. (even when the bug already exists in the old code)
The issue is known #163 (comment)
Good to hear you'll refactor that part too. Maybe you should change the label of the issue to be more informative.
Thanks for fix. I think we can accept it until johnd0e rewrites layerChooser.
@modos189 Please note that we avoid ES6 in our code. This function is unused, I suppose we don't have heavy need to fix it separately.
Not used by us, but if used by private plugins, we can fix it. But, of course, we need to remake, don't use ES6. Anyway, it's not hard
Well, I am almost sure that nobody uses it, even in private plugins) But I may be wrong, need to check McBen's Layers control.
Well, I am almost sure that nobody uses it, even in private plugins)
atleast me was using it and got reports of user that my plugin won't work with iitc-ce if noone (else) uses it: remove it instead of leave unfunctional code inside.
But I may be wrong, need to check McBen's Layers control.
Thats a complete other topic. I did my layer-control long time ago and if I remember right it's a complete replacement (with still bugs inside)
atleast me was using it and got reports of user that my plugin won't work with iitc-ce
That is another matter. What exactly plugin do you mean?
anyway...you want it, you got it heres a amazing plugins which doesnt work -> https://github.com/McBen/johnd0eExample
works in every iitc version. except iitc-ce
@McBen
In process of refactoring IITC internals inevitable changes, and I do not see any sense to keep every old function interface 'just in case'.
But real plugins using it - another matter, as we trying to maintain compatibility. I have downloaded a lot of plugins for exact this purpose: check real API usage. So my question was about real plugins, not hypothetical ones.
~~BTW, your sample plugin has error in function usage, and unable to work in your own fork.
(And if your have layer instance then you do not need IITC API to remove it, just use leaflet's removeLayer
)~~
sad to here...so I've to keep writing iitc-ce workaround to keep my users happy. 'cause iitc-ce will increase incompabilty with old iitc code.
you don't even mind how many code is out there you will never see. Bad for us all some of these aren't maintained anymore.
I'd be happy to fix any reported incompatibility.
I did here
BTW, your sample plugin has error in function usage, and unable to work in your own fork. (And if your have layer instance then you do not need IITC API to remove it, just use leaflet's
removeLayer
)
as said -5min code- quickly checked. should work (if initialized in correct order)
removeLayer
and removelayergroup
are doing different things
I found use of removelayergroup()
function in this secret resistance plugin
reswue.user.js
could you please add s.t.r.i.k.e code too
and maybe drunkenfrog or riot or what ever none plublic code you know
I have no idea what you're talking about)
yeah..me too..seems totally wired to request fixing a function which is totally bugged in iitc-ce
What? I don't see reason not to fix
it's a bug in the old iitc code. Never arises because the "_leaflet_id" was equal to the entry in the layerchooser. This is no longer the case in leaflet 1+
Bug Fix: