You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the strings used to specify the layers of a MapPanel, such as panel.layers = ['coastline', 'borders', 'states']
are maddeningly inconsistent.
Why is coastline singular? borders is vague; why isn't it countries?
I propose that we allow aliases ('coastlines' = 'coastline', 'countries' = 'borders', and perhaps others).
Perhaps a 'default' alias (equivalent to ['coastline', 'borders', 'states']) would be nice as well.
The text was updated successfully, but these errors were encountered:
I really don't like the idea of a "default" that isn't actually...the default value. And we can't change the default until 2.0. I've not been able to come up with a better name, though.
Great questions. Since the current implementation requires a list (or tuple), it seems ['standard'] would be the way to go. I suppose support for a string as an alternative to a list with one item could be added, but that's a separate feature, and you can already do panel.layers = 'states', (or perhaps in the future, panel.layers = 'standard',) and it will work, so I'm not sure it is worth it just to save a comma.
I think it would make sense to support additional items in a list where 'standard' is present, in any order (so ['uscounties', 'standard'] should also work).
Pulled from discussion under #2016:
Currently, the strings used to specify the layers of a MapPanel, such as
panel.layers = ['coastline', 'borders', 'states']
are maddeningly inconsistent.
Why is coastline singular? borders is vague; why isn't it countries?
I propose that we allow aliases ('coastlines' = 'coastline', 'countries' = 'borders', and perhaps others).
Perhaps a 'default' alias (equivalent to
['coastline', 'borders', 'states']
) would be nice as well.The text was updated successfully, but these errors were encountered: