mapgl
mapgl copied to clipboard
Inconsistent arguments for layer/layer_id in Shiny functions
My assumption was that layer ID would be referred to the same way across functions. However:
set_filter,clear_layer, andmove_layerrefer to layer aslayer_id.set_layout_property,set_paint_property,set_tooltip, andset_sourcerefer to layer aslayer.
If this is something that isn't intentional, I'm happy to submit a PR with the names changed to your choice.
Ah, good catch. The challenge of maintaining a huge codebase.
I'm partial to layer_id, I'll get that fixed (or take a PR).
Since it's kind of an API change, would you want those that have layer as an argument to keep it for now -- just add a layer_id arg? Or are you okay with a breaking change?